diff --git a/src/command_modules/azure-cli-vm/HISTORY.rst b/src/command_modules/azure-cli-vm/HISTORY.rst index 705c0408de9..2fdddc8f3c4 100644 --- a/src/command_modules/azure-cli-vm/HISTORY.rst +++ b/src/command_modules/azure-cli-vm/HISTORY.rst @@ -5,6 +5,8 @@ Release History 2.0.24 ++++++ +* vmss:(PREVIEW) cross zone support +* vmss:(BREAKING CHANGE)single zone scale-set will default to "Standard" load balancer instead of "Basic" * vm/vmss: use right term of "userAssignedIdentity" for EMSI * vm: (PREVIEW) support os disk swap * vm: support use image from other subscriptions diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py index ad27ce7297a..83ddd41d5f4 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py @@ -107,6 +107,6 @@ def transform_sku_for_table_output(skus): def get_vmss_table_output_transformer(loader, for_list=True): transform = '{Name:name, ResourceGroup:resourceGroup, Location:location, $zone$Capacity:sku.capacity, ' \ 'Overprovision:overprovision, UpgradePolicy:upgradePolicy.mode}' - transform = transform.replace('$zone$', 'Zones: (!zones && \' \') || join(` `, zones), ' + transform = transform.replace('$zone$', 'Zones: (!zones && \' \') || join(\' \', zones), ' if loader.supported_api_version(min_api='2017-03-30') else ' ') return transform if not for_list else '[].' + transform diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py index 48ff7d79d14..cb2f8d35e2a 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py @@ -277,7 +277,7 @@ def load_arguments(self, _): c.argument('backend_pool_name', help='Name to use for the backend pool when creating a new load balancer or application gateway.') c.argument('backend_port', help='When creating a new load balancer, backend port to open with NAT rules (Defaults to 22 on Linux and 3389 on Windows). When creating an application gateway, the backend port to use for the backend HTTP settings.', type=int) c.argument('load_balancer', help='Name to use when creating a new load balancer (default) or referencing an existing one. Can also reference an existing load balancer by ID or specify "" for none.', options_list=['--load-balancer', '--lb']) - c.argument('load_balancer_sku', resource_type=ResourceType.MGMT_NETWORK, min_api='2017-08-01', help='SKU when creating a new Load Balancer.', options_list=['--lb-sku'], arg_type=get_enum_type(LoadBalancerSkuName, default='Basic')) + c.argument('load_balancer_sku', resource_type=ResourceType.MGMT_NETWORK, min_api='2017-08-01', help="SKU when creating a new Load Balancer. Default to 'Basic' for any non-zonal scaleset and 'Standard' otherwise", options_list=['--lb-sku'], arg_type=get_enum_type(LoadBalancerSkuName)) c.argument('nat_pool_name', help='Name to use for the NAT pool when creating a new load balancer.', options_list=['--lb-nat-pool-name', '--nat-pool-name']) with self.argument_context('vmss create', min_api='2017-03-30', arg_group='Network') as c: diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py index c2c22b54b95..3f20f804524 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py @@ -143,8 +143,12 @@ def build_public_ip_resource(cmd, name, location, tags, address_allocation, dns_ 'dependsOn': [], 'properties': public_ip_properties } - if zone: + + # when multiple zones are provided(through a x-zone scale set), we don't propagate to PIP becasue it doesn't + # support x-zone; rather we will rely on the Standard LB to work with such scale sets + if zone and len(zone) == 1: public_ip['zones'] = zone + if sku and cmd.supported_api_version(ResourceType.MGMT_NETWORK, min_api='2017-08-01'): public_ip['sku'] = {'name': sku} return public_ip @@ -661,6 +665,24 @@ def build_load_balancer_resource(cmd, name, location, tags, backend_pool_name, n } if sku and cmd.supported_api_version(ResourceType.MGMT_NETWORK, min_api='2017-08-01'): lb['sku'] = {'name': sku} + # LB rule is the way to enable SNAT so outbound connections are possible + if sku.lower() == 'standard': + lb_properties['loadBalancingRules'] = [{ + "name": "LBRule", + "properties": { + "frontendIPConfiguration": { + 'id': "[concat({}, '/frontendIPConfigurations/', '{}')]".format(lb_id, frontend_ip_name) + }, + "backendAddressPool": { + "id": "[concat({}, '/backendAddressPools/', '{}')]".format(lb_id, backend_pool_name) + }, + "protocol": "tcp", + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": False, + "idleTimeoutInMinutes": 5, + } + }] return lb diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py index a7537059bd6..27497fe569a 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py @@ -1682,7 +1682,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image, build_load_balancer_resource, build_vmss_storage_account_pool_resource, build_application_gateway_resource, - build_msi_role_assignment) + build_msi_role_assignment, build_nsg_resource) subscription_id = get_subscription_id(cmd.cli_ctx) network_id_template = resource_id( subscription=subscription_id, resource_group=resource_group_name, @@ -1747,6 +1747,10 @@ def _get_public_ip_address_allocation(value, sku): # Handle load balancer creation if load_balancer_type == 'new': + # Defaults SKU to 'Standard' for zonal scale set + if load_balancer_sku is None: + load_balancer_sku = 'Standard' if zones else 'Basic' + vmss_dependencies.append('Microsoft.Network/loadBalancers/{}'.format(load_balancer)) lb_dependencies = [] @@ -1850,6 +1854,14 @@ def _get_public_ip_address_allocation(value, sku): if secrets: secrets = _merge_secrets([validate_file_or_dict(secret) for secret in secrets]) + if nsg is None and zones: + # Per https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-overview#nsg + nsg_name = '{}NSG'.format(vmss_name) + master_template.add_resource(build_nsg_resource( + None, nsg_name, location, tags, 'rdp' if os_type.lower() == 'windows' else 'ssh')) + nsg = "[resourceId('Microsoft.Network/networkSecurityGroups', '{}')]".format(nsg_name) + vmss_dependencies.append('Microsoft.Network/networkSecurityGroups/{}'.format(nsg_name)) + vmss_resource = build_vmss_resource(cmd, vmss_name, naming_prefix, location, tags, not disable_overprovision, upgrade_policy_mode, vm_sku, instance_count, diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_single_zone.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_single_zone.yaml new file mode 100644 index 00000000000..a7349f76ef3 --- /dev/null +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_single_zone.yaml @@ -0,0 +1,754 @@ +interactions: +- request: + body: '{"tags": {"use": "az-test"}, "location": "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001","name":"cli_test_vmss_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 18:58:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001","name":"cli_test_vmss_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 18:59:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Connection: [close] + Host: [raw.githubusercontent.com] + User-Agent: [Python-urllib/3.5] + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ + ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\ + :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\ + type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\ + CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\ + :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\ + \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\ + ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \ + \ \"version\":\"latest\"\n },\n \"Debian\":{\n\ + \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\ + ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \ + \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\ + ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\ + ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\ + \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\ + \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \ + \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \ + \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \ + \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \ + \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\ + ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\ + \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\ + \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \ + \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\ + }\n"} + headers: + accept-ranges: [bytes] + access-control-allow-origin: ['*'] + cache-control: [max-age=300] + connection: [close] + content-length: ['2235'] + content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] + content-type: [text/plain; charset=utf-8] + date: ['Wed, 10 Jan 2018 18:59:02 GMT'] + etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] + expires: ['Wed, 10 Jan 2018 19:04:02 GMT'] + source-age: ['35'] + strict-transport-security: [max-age=31536000] + vary: ['Authorization,Accept-Encoding'] + via: [1.1 varnish] + x-cache: [HIT] + x-cache-hits: ['2'] + x-content-type-options: [nosniff] + x-fastly-request-id: [fd36c9b3e7eb695b4a95d4c46b95fa386525f831] + x-frame-options: [deny] + x-geo-block-list: [''] + x-github-request-id: ['5C22:2D6E9:4C4BF:4F7A2:5A566252'] + x-served-by: [cache-mdw17325-MDW] + x-timer: ['S1515610742.083188,VS0,VE0'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 18:59:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"mode": "Incremental", "template": {"outputs": {"VMSS": + {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', + \''vmss123\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]", + "type": "object"}}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "resources": [{"properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "subnets": [{"properties": {"addressPrefix": "10.0.0.0/24"}, + "name": "vmss123Subnet"}]}, "type": "Microsoft.Network/virtualNetworks", "dependsOn": + [], "apiVersion": "2015-06-15", "tags": {}, "name": "vmss123VNET", "location": + "eastus2"}, {"properties": {"publicIPAllocationMethod": "Static"}, "sku": {"name": + "Standard"}, "tags": {}, "dependsOn": [], "name": "vmss123LBPublicIP", "type": + "Microsoft.Network/publicIPAddresses", "apiVersion": "2017-11-01", "zones": + ["2"], "location": "eastus2"}, {"properties": {"frontendIPConfigurations": [{"properties": + {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP"}}, + "name": "loadBalancerFrontEnd"}], "backendAddressPools": [{"name": "vmss123LBBEPool"}], + "loadBalancingRules": [{"properties": {"frontendPort": 80, "backendPort": 80, + "idleTimeoutInMinutes": 5, "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''vmss123LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, + "enableFloatingIP": false, "backendAddressPool": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''vmss123LB\''), \''/backendAddressPools/\'', \''vmss123LBBEPool\'')]"}, "protocol": + "tcp"}, "name": "LBRule"}], "inboundNatPools": [{"properties": {"frontendIPConfiguration": + {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss123LB\''), + \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, "backendPort": + 22, "frontendPortRangeStart": "50000", "protocol": "tcp", "frontendPortRangeEnd": + "50119"}, "name": "vmss123LBNatPool"}]}, "sku": {"name": "Standard"}, "tags": + {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss123VNET", "Microsoft.Network/publicIpAddresses/vmss123LBPublicIP"], + "apiVersion": "2017-11-01", "type": "Microsoft.Network/loadBalancers", "name": + "vmss123LB", "location": "eastus2"}, {"properties": {"securityRules": [{"properties": + {"direction": "Inbound", "priority": 1000, "destinationPortRange": "22", "sourcePortRange": + "*", "access": "Allow", "destinationAddressPrefix": "*", "protocol": "Tcp", + "sourceAddressPrefix": "*"}, "name": "default-allow-ssh"}]}, "tags": {}, "dependsOn": + [], "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkSecurityGroups", + "name": "vmss123NSG", "location": "eastus2"}, {"properties": {"virtualMachineProfile": + {"networkProfile": {"networkInterfaceConfigurations": [{"properties": {"ipConfigurations": + [{"properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet"}, + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool"}], + "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool"}]}, + "name": "vmss15fafIPConfig"}], "primary": "true", "networkSecurityGroup": {"id": + "[resourceId(\''Microsoft.Network/networkSecurityGroups\'', \''vmss123NSG\'')]"}}, + "name": "vmss15fafNic"}]}, "storageProfile": {"imageReference": {"publisher": + "credativ", "sku": "8", "version": "latest", "offer": "Debian"}, "osDisk": {"caching": + "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": + null}}}, "osProfile": {"adminPassword": "PasswordPassword1!", "computerNamePrefix": + "vmss15faf", "adminUsername": "clitester"}}, "upgradePolicy": {"mode": "manual"}, + "singlePlacementGroup": true, "overprovision": true}, "sku": {"capacity": 2, + "name": "Standard_D1_v2"}, "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss123VNET", + "Microsoft.Network/loadBalancers/vmss123LB", "Microsoft.Network/networkSecurityGroups/vmss123NSG"], + "name": "vmss123", "type": "Microsoft.Compute/virtualMachineScaleSets", "apiVersion": + "2017-12-01", "zones": ["2"], "location": "eastus2"}], "variables": {}, "parameters": + {}}, "parameters": {}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Length: ['4855'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_pmLpOObXRJF7s4pEJ8EcynfJwtK5IoTD","name":"vmss_deploy_pmLpOObXRJF7s4pEJ8EcynfJwtK5IoTD","properties":{"templateHash":"1198616256032514009","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-01-10T18:59:05.0975269Z","duration":"PT1.0881723S","correlationId":"12f37de1-1dff-4cfe-bf1a-aa5feca63212","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]},{"resourceType":"networkSecurityGroups","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss123LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss123NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss123"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_pmLpOObXRJF7s4pEJ8EcynfJwtK5IoTD/operationStatuses/08586859961414682778?api-version=2017-05-10'] + cache-control: [no-cache] + content-length: ['3042'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 18:59:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859961414682778?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 18:59:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859961414682778?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:00:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859961414682778?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:00:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859961414682778?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859961414682778?api-version=2017-05-10 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_pmLpOObXRJF7s4pEJ8EcynfJwtK5IoTD","name":"vmss_deploy_pmLpOObXRJF7s4pEJ8EcynfJwtK5IoTD","properties":{"templateHash":"1198616256032514009","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-01-10T19:01:15.4404464Z","duration":"PT2M11.4310918S","correlationId":"12f37de1-1dff-4cfe-bf1a-aa5feca63212","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]},{"resourceType":"networkSecurityGroups","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss123LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss123NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss123"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss15faf","adminUsername":"clitester","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"credativ","offer":"Debian","sku":"8","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss15fafNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG"},"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss15fafIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"2ff25ead-9e24-4d26-b549-71098d1eb94f"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['6073'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123?api-version=2017-12-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \ + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\ + : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ + \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \ + \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \ + \ \"computerNamePrefix\": \"vmss15faf\",\r\n \"adminUsername\"\ + : \"clitester\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ + : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\ + : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ + ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\ + \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\ + \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\ + credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\ + ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\ + networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss15fafNic\"\ + ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\ + networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG\"\ + },\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ + :[{\"name\":\"vmss15fafIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ + },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ + :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + overprovision\": true,\r\n \"uniqueId\": \"2ff25ead-9e24-4d26-b549-71098d1eb94f\"\ + \r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\"\ + ,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ + ,\r\n \"name\": \"vmss123\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2732'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;983'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123?api-version=2017-12-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \ + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\ + : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ + \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \ + \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \ + \ \"computerNamePrefix\": \"vmss15faf\",\r\n \"adminUsername\"\ + : \"clitester\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ + : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\ + : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ + ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\ + \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\ + \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\ + credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\ + ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\ + networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss15fafNic\"\ + ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\ + networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG\"\ + },\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ + :[{\"name\":\"vmss15fafIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ + },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ + :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + overprovision\": true,\r\n \"uniqueId\": \"2ff25ead-9e24-4d26-b549-71098d1eb94f\"\ + \r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\"\ + ,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ + ,\r\n \"name\": \"vmss123\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2732'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;982'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2017-12-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"\ + name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \ + \ \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\"\ + : true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\ + ,\r\n \"automaticOSUpgrade\": false\r\n },\r\n \"virtualMachineProfile\"\ + : {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": \"\ + vmss15faf\",\r\n \"adminUsername\": \"clitester\",\r\n \ + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ + : false\r\n },\r\n \"secrets\": []\r\n },\r\ + \n \"storageProfile\": {\r\n \"osDisk\": {\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"\ + ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n }\r\n },\r\n \"\ + imageReference\": {\r\n \"publisher\": \"credativ\",\r\n \ + \ \"offer\": \"Debian\",\r\n \"sku\": \"8\",\r\n \ + \ \"version\": \"latest\"\r\n }\r\n },\r\n \ + \ \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\"\ + :\"vmss15fafNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\ + :false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG\"\ + },\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ + :[{\"name\":\"vmss15fafIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ + },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ + :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\ + \n \"overprovision\": true,\r\n \"uniqueId\": \"2ff25ead-9e24-4d26-b549-71098d1eb94f\"\ + \r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"\ + type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\"\ + : \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ + ,\r\n \"name\": \"vmss123\"\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2961'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostGetVMScaleSet3Min;198,Microsoft.Compute/HighCostGetVMScaleSet30Min;993'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss123LB\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\",\r\ + \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ + : \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"\ + e9668818-e61d-484c-9bd4-60c3f98e9b1d\",\r\n \"frontendIPConfigurations\"\ + : [\r\n {\r\n \"name\": \"loadBalancerFrontEnd\",\r\n\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ + ,\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/loadBalancingRules/LBRule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.0\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.1\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.2\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.3\"\ + \r\n }\r\n ],\r\n \"inboundNatPools\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ + \ \"name\": \"vmss123LBBEPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"backendIPConfigurations\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/0/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/1/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/2/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/3/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n }\r\n ],\r\n \"loadBalancingRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/loadBalancingRules/LBRule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"name\": \"LBRule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/loadBalancingRules/LBRule\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \ + \ \"backendPort\": 80,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 5,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"loadDistribution\": \"Default\",\r\n \ + \ \"disableOutboundSnat\": false,\r\n \"backendAddressPool\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"probes\": [],\r\n \"inboundNatRules\": [\r\n {\r\n\ + \ \"name\": \"vmss123LBNatPool.0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.0\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50000,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/0/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss123LBNatPool.1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.1\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50001,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/1/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss123LBNatPool.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.2\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50002,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/2/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss123LBNatPool.3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.3\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50003,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/3/networkInterfaces/vmss15fafNic/ipConfigurations/vmss15fafIPConfig\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"outboundNatRules\": [],\r\n \"inboundNatPools\": [\r\n \ + \ {\r\n \"name\": \"vmss123LBNatPool\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + ,\r\n \"etag\": \"W/\\\"68988674-142c-46c9-9853-f98fb9ee6a63\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendPortRangeStart\": 50000,\r\n \ + \ \"frontendPortRangeEnd\": 50119,\r\n \"backendPort\"\ + : 22,\r\n \"protocol\": \"Tcp\",\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"enableFloatingIP\": false,\r\n \"frontendIPConfiguration\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n }\r\n }\r\n }\r\n ]\r\n \ + \ },\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n\ + \ }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['13881'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss123LBPublicIP\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP\"\ + ,\r\n \"etag\": \"W/\\\"f59abf6e-a76c-4e88-a3fc-9135b0710057\\\"\",\r\ + \n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"zones\"\ + : [\r\n \"2\"\r\n ],\r\n \"properties\": {\r\n \"\ + provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"79bc022d-712f-4c38-a2ea-20ba7e8b8871\"\ + ,\r\n \"ipAddress\": \"40.67.128.81\",\r\n \"publicIPAddressVersion\"\ + : \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \ + \ \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"\ + ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n \ + \ }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1183'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:01:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Wed, 10 Jan 2018 19:01:47 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RlpPTkVTR0U3N0pVTUxHQVBaM0dVRFZWRkI1WXwyQ0U3NjE0ODhCQjRBNjE1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1189'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_x_zones.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_x_zones.yaml new file mode 100644 index 00000000000..8d134ab4374 --- /dev/null +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_x_zones.yaml @@ -0,0 +1,801 @@ +interactions: +- request: + body: '{"location": "eastus2", "tags": {"use": "az-test"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001","name":"cli_test_vmss_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:29:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001","name":"cli_test_vmss_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:29:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Connection: [close] + Host: [raw.githubusercontent.com] + User-Agent: [Python-urllib/3.5] + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ + ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\ + :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\ + type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\ + CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\ + :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\ + \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\ + ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \ + \ \"version\":\"latest\"\n },\n \"Debian\":{\n\ + \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\ + ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \ + \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\ + ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\ + ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\ + \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\ + \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \ + \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \ + \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \ + \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \ + \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\ + ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\ + \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\ + \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \ + \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\ + }\n"} + headers: + accept-ranges: [bytes] + access-control-allow-origin: ['*'] + cache-control: [max-age=300] + connection: [close] + content-length: ['2235'] + content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] + content-type: [text/plain; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:29:06 GMT'] + etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] + expires: ['Wed, 10 Jan 2018 19:34:06 GMT'] + source-age: ['39'] + strict-transport-security: [max-age=31536000] + vary: ['Authorization,Accept-Encoding'] + via: [1.1 varnish] + x-cache: [HIT] + x-cache-hits: ['1'] + x-content-type-options: [nosniff] + x-fastly-request-id: [44a606693bd14a90454462a882bbcd7dbed51974] + x-frame-options: [deny] + x-geo-block-list: [''] + x-github-request-id: ['8280:2D6E8:20C13:22385:5A56695B'] + x-served-by: [cache-mdw17325-MDW] + x-timer: ['S1515612547.631637,VS0,VE1'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:29:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template": + {"contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "parameters": {}, "outputs": {"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', + \''vmss123\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]", + "type": "object"}}, "variables": {}, "resources": [{"apiVersion": "2015-06-15", + "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": + [{"name": "vmss123Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}, + "dependsOn": [], "tags": {}, "type": "Microsoft.Network/virtualNetworks", "name": + "vmss123VNET", "location": "eastus2"}, {"apiVersion": "2017-11-01", "properties": + {"publicIPAllocationMethod": "Static"}, "dependsOn": [], "tags": {}, "type": + "Microsoft.Network/publicIPAddresses", "name": "vmss123LBPublicIP", "sku": {"name": + "Standard"}, "location": "eastus2"}, {"apiVersion": "2017-11-01", "properties": + {"frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", "properties": + {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP"}}}], + "loadBalancingRules": [{"name": "LBRule", "properties": {"frontendPort": 80, + "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''vmss123LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, + "idleTimeoutInMinutes": 5, "protocol": "tcp", "enableFloatingIP": false, "backendPort": + 80, "backendAddressPool": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''vmss123LB\''), \''/backendAddressPools/\'', \''vmss123LBBEPool\'')]"}}}], + "backendAddressPools": [{"name": "vmss123LBBEPool"}], "inboundNatPools": [{"name": + "vmss123LBNatPool", "properties": {"frontendPortRangeEnd": "50119", "protocol": + "tcp", "frontendPortRangeStart": "50000", "backendPort": 22, "frontendIPConfiguration": + {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss123LB\''), + \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}}}]}, "dependsOn": + ["Microsoft.Network/virtualNetworks/vmss123VNET", "Microsoft.Network/publicIpAddresses/vmss123LBPublicIP"], + "tags": {}, "type": "Microsoft.Network/loadBalancers", "name": "vmss123LB", + "sku": {"name": "Standard"}, "location": "eastus2"}, {"apiVersion": "2015-06-15", + "properties": {"securityRules": [{"name": "default-allow-ssh", "properties": + {"priority": 1000, "sourcePortRange": "*", "access": "Allow", "destinationAddressPrefix": + "*", "direction": "Inbound", "sourceAddressPrefix": "*", "protocol": "Tcp", + "destinationPortRange": "22"}}]}, "dependsOn": [], "tags": {}, "type": "Microsoft.Network/networkSecurityGroups", + "name": "vmss123NSG", "location": "eastus2"}, {"apiVersion": "2017-12-01", "sku": + {"name": "Standard_D1_v2", "capacity": 2}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss123VNET", + "Microsoft.Network/loadBalancers/vmss123LB", "Microsoft.Network/networkSecurityGroups/vmss123NSG"], + "tags": {}, "type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss123", + "properties": {"overprovision": true, "singlePlacementGroup": true, "upgradePolicy": + {"mode": "manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": + "vmss1b74a", "adminUsername": "clitester", "adminPassword": "PasswordPassword1!"}, + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmss1b74aNic", + "properties": {"ipConfigurations": [{"name": "vmss1b74aIPConfig", "properties": + {"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool"}], + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet"}, + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool"}]}}], + "primary": "true", "networkSecurityGroup": {"id": "[resourceId(\''Microsoft.Network/networkSecurityGroups\'', + \''vmss123NSG\'')]"}}}]}, "storageProfile": {"osDisk": {"managedDisk": {"storageAccountType": + null}, "createOption": "FromImage", "caching": "ReadWrite"}, "imageReference": + {"sku": "8", "publisher": "credativ", "version": "latest", "offer": "Debian"}}}}, + "location": "eastus2", "zones": ["1", "2", "3"]}]}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Length: ['4849'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_VNxF2JKpr2onoLqblqhZL1y8b0j584hm","name":"vmss_deploy_VNxF2JKpr2onoLqblqhZL1y8b0j584hm","properties":{"templateHash":"10720674975894451155","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-01-10T19:29:10.1419935Z","duration":"PT1.130049S","correlationId":"3f6662f9-203b-4a7b-8c54-6118106b5c2d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]},{"resourceType":"networkSecurityGroups","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss123LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss123NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss123"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_VNxF2JKpr2onoLqblqhZL1y8b0j584hm/operationStatuses/08586859943364656874?api-version=2017-05-10'] + cache-control: [no-cache] + content-length: ['3042'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:29:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:29:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:30:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:30:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:31:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:31:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:32:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:32:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859943364656874?api-version=2017-05-10 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_VNxF2JKpr2onoLqblqhZL1y8b0j584hm","name":"vmss_deploy_VNxF2JKpr2onoLqblqhZL1y8b0j584hm","properties":{"templateHash":"10720674975894451155","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-01-10T19:33:18.3452676Z","duration":"PT4M9.3333231S","correlationId":"3f6662f9-203b-4a7b-8c54-6118106b5c2d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]},{"resourceType":"networkSecurityGroups","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss123LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss123NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss123"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1b74a","adminUsername":"clitester","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"credativ","offer":"Debian","sku":"8","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1b74aNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG"},"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss1b74aIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"1d80c2d4-e135-41e7-bdbf-65ab90271837","zoneBalance":false}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['6093'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123?api-version=2017-12-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \ + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\ + : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ + \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \ + \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \ + \ \"computerNamePrefix\": \"vmss1b74a\",\r\n \"adminUsername\"\ + : \"clitester\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ + : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\ + : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ + ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\ + \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\ + \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\ + credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\ + ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\ + networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1b74aNic\"\ + ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\ + networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG\"\ + },\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ + :[{\"name\":\"vmss1b74aIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ + },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ + :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + overprovision\": true,\r\n \"uniqueId\": \"1d80c2d4-e135-41e7-bdbf-65ab90271837\"\ + ,\r\n \"zoneBalance\": false\r\n },\r\n \"zones\": [\r\n \"1\",\r\n\ + \ \"2\",\r\n \"3\"\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\"\ + ,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ + ,\r\n \"name\": \"vmss123\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2779'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;975'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123?api-version=2017-12-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \ + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\ + : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ + \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \ + \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \ + \ \"computerNamePrefix\": \"vmss1b74a\",\r\n \"adminUsername\"\ + : \"clitester\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ + : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\ + : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ + ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\ + \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\ + \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\ + credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\ + ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\ + networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1b74aNic\"\ + ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\ + networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/networkSecurityGroups/vmss123NSG\"\ + },\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ + :[{\"name\":\"vmss1b74aIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ + },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ + :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + overprovision\": true,\r\n \"uniqueId\": \"1d80c2d4-e135-41e7-bdbf-65ab90271837\"\ + ,\r\n \"zoneBalance\": false\r\n },\r\n \"zones\": [\r\n \"1\",\r\n\ + \ \"2\",\r\n \"3\"\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\"\ + ,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ + ,\r\n \"name\": \"vmss123\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2779'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;974'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss123LB\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\",\r\ + \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ + : \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"\ + ddd81d1d-a9be-4fc0-be09-e683120134ec\",\r\n \"frontendIPConfigurations\"\ + : [\r\n {\r\n \"name\": \"loadBalancerFrontEnd\",\r\n\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ + ,\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/loadBalancingRules/LBRule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.0\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.2\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.3\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.4\"\ + \r\n }\r\n ],\r\n \"inboundNatPools\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ + \ \"name\": \"vmss123LBBEPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"backendIPConfigurations\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/0/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/2/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/3/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/4/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n }\r\n ],\r\n \"loadBalancingRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/loadBalancingRules/LBRule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"name\": \"LBRule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/loadBalancingRules/LBRule\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \ + \ \"backendPort\": 80,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 5,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"loadDistribution\": \"Default\",\r\n \ + \ \"disableOutboundSnat\": false,\r\n \"backendAddressPool\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"probes\": [],\r\n \"inboundNatRules\": [\r\n {\r\n\ + \ \"name\": \"vmss123LBNatPool.0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.0\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50000,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/0/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss123LBNatPool.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.2\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50002,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/2/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss123LBNatPool.3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.3\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50003,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/3/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss123LBNatPool.4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatRules/vmss123LBNatPool.4\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50004,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123/virtualMachines/4/networkInterfaces/vmss1b74aNic/ipConfigurations/vmss1b74aIPConfig\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"outboundNatRules\": [],\r\n \"inboundNatPools\": [\r\n \ + \ {\r\n \"name\": \"vmss123LBNatPool\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ + ,\r\n \"etag\": \"W/\\\"35ddc592-627c-4e7c-bc7f-6e50ca6bc03b\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendPortRangeStart\": 50000,\r\n \ + \ \"frontendPortRangeEnd\": 50119,\r\n \"backendPort\"\ + : 22,\r\n \"protocol\": \"Tcp\",\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"enableFloatingIP\": false,\r\n \"frontendIPConfiguration\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n }\r\n }\r\n }\r\n ]\r\n \ + \ },\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n\ + \ }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['13881'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss123LBPublicIP\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP\"\ + ,\r\n \"etag\": \"W/\\\"75ca73c9-97b2-474f-96f9-fc9aa35a2643\\\"\",\r\ + \n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\"\ + : \"c23eee4d-4072-4064-8702-5655090c4977\",\r\n \"ipAddress\": \"40.67.159.141\"\ + ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ + : \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\"\ + : [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n \ + \ }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1143'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 10 Jan 2018 19:33:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Wed, 10 Jan 2018 19:33:53 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RlpPTkVTSzY1RDY2M1ZRTTZZT0hUWTJOSE9KWHwxODc2RkQxMTMxODY4OTNGLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_zones.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_zones.yaml deleted file mode 100644 index c8fb15ec228..00000000000 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_create_zones.yaml +++ /dev/null @@ -1,561 +0,0 @@ -interactions: -- request: - body: !!python/unicode '{"location": "eastus2", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['51'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001","name":"cli_test_vmss_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:20:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001","name":"cli_test_vmss_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:20:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [close] - Host: [raw.githubusercontent.com] - User-Agent: [Python-urllib/2.7] - method: GET - uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json - response: - body: {string: !!python/unicode "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ - ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\ - :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\ - type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\ - CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\ - :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\ - \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\ - ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \ - \ \"version\":\"latest\"\n },\n \"Debian\":{\n\ - \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\ - ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \ - \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\ - ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\ - ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\ - \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\ - \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \ - \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \ - \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \ - \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \ - \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\ - ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\ - \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\ - :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ - offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \ - \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\ - :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ - offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\ - \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\ - :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ - offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \ - \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\ - :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ - offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \ - \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\ - }\n"} - headers: - accept-ranges: [bytes] - access-control-allow-origin: ['*'] - cache-control: [max-age=300] - connection: [close] - content-length: ['2235'] - content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] - content-type: [text/plain; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:20:40 GMT'] - etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] - expires: ['Thu, 21 Dec 2017 22:25:40 GMT'] - source-age: ['0'] - strict-transport-security: [max-age=31536000] - vary: ['Authorization,Accept-Encoding'] - via: [1.1 varnish] - x-cache: [MISS] - x-cache-hits: ['0'] - x-content-type-options: [nosniff] - x-fastly-request-id: [fa865a04203a59d9ee46d59cfa3858796785a19d] - x-frame-options: [deny] - x-geo-block-list: [''] - x-github-request-id: ['6DEE:5F84:5CE7B9:630497:5A3C33B8'] - x-served-by: [cache-sea1051-SEA] - x-timer: ['S1513894841.503597,VS0,VE25'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 - response: - body: {string: !!python/unicode '{"value":[]}'} - headers: - cache-control: [no-cache] - content-length: ['12'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:20:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: !!python/unicode '{"properties": {"mode": "Incremental", "parameters": {}, - "template": {"parameters": {}, "outputs": {"VMSS": {"type": "object", "value": - "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', ''vmss123''),providers(''Microsoft.Compute'', - ''virtualMachineScaleSets'').apiVersions[0])]"}}, "variables": {}, "contentVersion": - "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "resources": [{"name": "vmss123VNET", "tags": {}, "apiVersion": "2015-06-15", - "location": "eastus2", "dependsOn": [], "type": "Microsoft.Network/virtualNetworks", - "properties": {"subnets": [{"name": "vmss123Subnet", "properties": {"addressPrefix": - "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}}, {"sku": - {"name": "Basic"}, "name": "vmss123LBPublicIP", "tags": {}, "apiVersion": "2017-11-01", - "zones": ["2"], "location": "eastus2", "dependsOn": [], "type": "Microsoft.Network/publicIPAddresses", - "properties": {"publicIPAllocationMethod": "Dynamic"}}, {"sku": {"name": "Basic"}, - "name": "vmss123LB", "tags": {}, "apiVersion": "2017-11-01", "location": "eastus2", - "dependsOn": ["Microsoft.Network/virtualNetworks/vmss123VNET", "Microsoft.Network/publicIpAddresses/vmss123LBPublicIP"], - "type": "Microsoft.Network/loadBalancers", "properties": {"frontendIPConfigurations": - [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP"}}}], - "inboundNatPools": [{"name": "vmss123LBNatPool", "properties": {"protocol": - "tcp", "backendPort": 22, "frontendIPConfiguration": {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', - ''vmss123LB''), ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, - "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119"}}], "backendAddressPools": - [{"name": "vmss123LBBEPool"}]}}, {"sku": {"capacity": 2, "name": "Standard_D1_v2"}, - "name": "vmss123", "tags": {}, "apiVersion": "2017-12-01", "zones": ["2"], "location": - "eastus2", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss123VNET", "Microsoft.Network/loadBalancers/vmss123LB"], - "type": "Microsoft.Compute/virtualMachineScaleSets", "properties": {"overprovision": - true, "virtualMachineProfile": {"storageProfile": {"imageReference": {"sku": - "8", "publisher": "credativ", "version": "latest", "offer": "Debian"}, "osDisk": - {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null}, "createOption": - "FromImage"}}, "osProfile": {"computerNamePrefix": "vmss1373f", "adminUsername": - "clitester", "adminPassword": "PasswordPassword1!"}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vmss1373fNic", "properties": {"primary": "true", "ipConfigurations": - [{"name": "vmss1373fIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet"}, - "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool"}], - "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool"}]}}]}}]}}, - "singlePlacementGroup": true, "upgradePolicy": {"mode": "manual"}}}]}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Length: ['3780'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_IWNJk9vxyvunrPt5DzYPMP7t9JDsc2VL","name":"vmss_deploy_IWNJk9vxyvunrPt5DzYPMP7t9JDsc2VL","properties":{"templateHash":"7562868262050340493","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-12-21T22:20:53.9476786Z","duration":"PT1.8948699S","correlationId":"16a6183b-f41a-4d4b-883e-e15ab60f05c1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss123LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss123"}]}}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_IWNJk9vxyvunrPt5DzYPMP7t9JDsc2VL/operationStatuses/08586877120334248204?api-version=2017-05-10'] - cache-control: [no-cache] - content-length: ['2679'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:20:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586877120334248204?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:21:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586877120334248204?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:21:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586877120334248204?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:22:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586877120334248204?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:23:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586877120334248204?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:23:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Resources/deployments/vmss_deploy_IWNJk9vxyvunrPt5DzYPMP7t9JDsc2VL","name":"vmss_deploy_IWNJk9vxyvunrPt5DzYPMP7t9JDsc2VL","properties":{"templateHash":"7562868262050340493","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-12-21T22:23:09.1582634Z","duration":"PT2M17.1054547S","correlationId":"16a6183b-f41a-4d4b-883e-e15ab60f05c1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss123LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss123VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss123LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss123"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1373f","adminUsername":"clitester","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"credativ","offer":"Debian","sku":"8","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1373fNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss1373fIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"22edb692-b36e-4cdf-ab30-b53a35b89459"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/publicIPAddresses/vmss123LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['5261'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:23:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123?api-version=2017-12-01 - response: - body: {string: !!python/unicode "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\"\ - ,\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\ - : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ - \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \ - \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \ - \ \"computerNamePrefix\": \"vmss1373f\",\r\n \"adminUsername\"\ - : \"clitester\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ - : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\ - : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ - ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\ - \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\ - \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\ - credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\ - ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\ - networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1373fNic\"\ - ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\ - dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ - :[{\"name\":\"vmss1373fIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ - },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ - :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ - }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ - }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ - overprovision\": true,\r\n \"uniqueId\": \"22edb692-b36e-4cdf-ab30-b53a35b89459\"\ - \r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\"\ - ,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ - ,\r\n \"name\": \"vmss123\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['2496'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:23:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;989'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123?api-version=2017-12-01 - response: - body: {string: !!python/unicode "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\"\ - ,\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\ - : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ - \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \ - \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \ - \ \"computerNamePrefix\": \"vmss1373f\",\r\n \"adminUsername\"\ - : \"clitester\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ - : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\ - : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ - ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\ - \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\ - \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\ - credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\ - ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\ - networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1373fNic\"\ - ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\ - dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\"\ - :[{\"name\":\"vmss1373fIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ - },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ - :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ - }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ - }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ - overprovision\": true,\r\n \"uniqueId\": \"22edb692-b36e-4cdf-ab30-b53a35b89459\"\ - \r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\"\ - ,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ - ,\r\n \"name\": \"vmss123\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['2496'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:23:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;988'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [vmss list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2017-12-01 - response: - body: {string: !!python/unicode "{\r\n \"value\": [\r\n {\r\n \"sku\"\ - : {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\ - ,\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \ - \ \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\ - \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\ - \n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\"\ - : {\r\n \"computerNamePrefix\": \"vmss1373f\",\r\n \"\ - adminUsername\": \"clitester\",\r\n \"linuxConfiguration\": {\r\ - \n \"disablePasswordAuthentication\": false\r\n },\r\ - \n \"secrets\": []\r\n },\r\n \"storageProfile\"\ - : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\ - ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\ - : {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n \ - \ }\r\n },\r\n \"imageReference\": {\r\n \ - \ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\"\ - ,\r\n \"sku\": \"8\",\r\n \"version\": \"latest\"\ - \r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\"\ - :[{\"name\":\"vmss1373fNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\ - :false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"\ - ipConfigurations\":[{\"name\":\"vmss1373fIPConfig\",\"properties\":{\"subnet\"\ - :{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/virtualNetworks/vmss123VNET/subnets/vmss123Subnet\"\ - },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\ - :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/backendAddressPools/vmss123LBBEPool\"\ - }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Network/loadBalancers/vmss123LB/inboundNatPools/vmss123LBNatPool\"\ - }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\ - \n \"overprovision\": true,\r\n \"uniqueId\": \"22edb692-b36e-4cdf-ab30-b53a35b89459\"\ - \r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"\ - type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\"\ - : \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_zones000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss123\"\ - ,\r\n \"name\": \"vmss123\"\r\n }\r\n ]\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['2725'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 22:23:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostGetVMScaleSet3Min;198,Microsoft.Compute/HighCostGetVMScaleSet30Min;998'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_zones000001?api-version=2017-05-10 - response: - body: {string: !!python/unicode ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 21 Dec 2017 22:23:58 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RlpPTkVTMzRIMlFBQkFQV0tFR0c3UjZRVVdJRXwyMDFGMDNDQTZDNkYxNTY0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_lb_sku.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_lb_sku.yaml index 7fa9fb0e972..f18f992cf9a 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_lb_sku.yaml +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vmss_lb_sku.yaml @@ -8,9 +8,9 @@ interactions: Connection: [keep-alive] Content-Length: ['50'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001?api-version=2017-05-10 @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:30 GMT'] + date: ['Thu, 11 Jan 2018 03:47:43 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1187'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -78,9 +78,483 @@ interactions: content-length: ['2235'] content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] content-type: [text/plain; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:32 GMT'] + date: ['Thu, 11 Jan 2018 03:47:47 GMT'] etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] - expires: ['Tue, 19 Dec 2017 04:37:32 GMT'] + expires: ['Thu, 11 Jan 2018 03:52:47 GMT'] + source-age: ['168'] + strict-transport-security: [max-age=31536000] + vary: ['Authorization,Accept-Encoding'] + via: [1.1 varnish] + x-cache: [HIT] + x-cache-hits: ['1'] + x-content-type-options: [nosniff] + x-fastly-request-id: [ed3f9bc945782c43381b3fb838f5e48ec1ba9f29] + x-frame-options: [deny] + x-geo-block-list: [''] + x-github-request-id: ['8F14:2F945:C79E8:CC624:5A56DDBB'] + x-served-by: [cache-sea1042-SEA] + x-timer: ['S1515642468.696887,VS0,VE1'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:47:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"parameters": {}, "template": {"outputs": {"VMSS": {"value": + "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', \''vmss0\''),providers(\''Microsoft.Compute\'', + \''virtualMachineScaleSets\'').apiVersions[0])]", "type": "object"}}, "parameters": + {}, "resources": [{"name": "vmss0VNET", "apiVersion": "2015-06-15", "type": + "Microsoft.Network/virtualNetworks", "location": "eastus2", "tags": {}, "dependsOn": + [], "properties": {"subnets": [{"name": "vmss0Subnet", "properties": {"addressPrefix": + "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}}, {"name": + "vmss0LBPublicIP", "apiVersion": "2017-11-01", "type": "Microsoft.Network/publicIPAddresses", + "location": "eastus2", "tags": {}, "dependsOn": [], "sku": {"name": "Basic"}, + "properties": {"publicIPAllocationMethod": "Dynamic"}}, {"name": "vmss0LB", + "apiVersion": "2017-11-01", "type": "Microsoft.Network/loadBalancers", "location": + "eastus2", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss0VNET", + "Microsoft.Network/publicIpAddresses/vmss0LBPublicIP"], "sku": {"name": "Basic"}, + "properties": {"backendAddressPools": [{"name": "vmss0LBBEPool"}], "inboundNatPools": + [{"name": "vmss0LBNatPool", "properties": {"frontendPortRangeEnd": "50119", + "backendPort": 22, "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''vmss0LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, + "frontendPortRangeStart": "50000", "protocol": "tcp"}}], "frontendIPConfigurations": + [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/vmss0LBPublicIP"}}}]}}, + {"name": "vmss0", "apiVersion": "2017-12-01", "type": "Microsoft.Compute/virtualMachineScaleSets", + "location": "eastus2", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss0VNET", + "Microsoft.Network/loadBalancers/vmss0LB"], "sku": {"capacity": 2, "name": "Standard_D1_v2"}, + "properties": {"overprovision": true, "upgradePolicy": {"mode": "manual"}, "singlePlacementGroup": + true, "virtualMachineProfile": {"networkProfile": {"networkInterfaceConfigurations": + [{"name": "vmss03eb8Nic", "properties": {"primary": "true", "ipConfigurations": + [{"name": "vmss03eb8IPConfig", "properties": {"loadBalancerBackendAddressPools": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/backendAddressPools/vmss0LBBEPool"}], + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET/subnets/vmss0Subnet"}, + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatPools/vmss0LBNatPool"}]}}]}}]}, + "storageProfile": {"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}, "createOption": "FromImage"}, "imageReference": {"sku": "16.04-LTS", + "publisher": "Canonical", "version": "latest", "offer": "UbuntuServer"}}, "osProfile": + {"adminUsername": "admin123", "computerNamePrefix": "vmss03eb8", "adminPassword": + "PasswordPassword1!"}}}}], "variables": {}, "contentVersion": "1.0.0.0", "$schema": + "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}, + "mode": "Incremental"}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Length: ['3722'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_qZpRd0UNhS1FQfi9WbvFAnYlw7Zdpo4G","name":"vmss_deploy_qZpRd0UNhS1FQfi9WbvFAnYlw7Zdpo4G","properties":{"templateHash":"1527587465959826208","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-01-11T03:47:51.0990411Z","duration":"PT0.9272147S","correlationId":"90736b7f-21f2-47f5-a1e1-4ea04cb6d7bd","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss0VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/vmss0LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss0LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss0LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss0VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss0LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss0"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_qZpRd0UNhS1FQfi9WbvFAnYlw7Zdpo4G/operationStatuses/08586859644153057984?api-version=2017-05-10'] + cache-control: [no-cache] + content-length: ['2655'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:47:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859644153057984?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:48:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859644153057984?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:48:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859644153057984?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:49:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859644153057984?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:49:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859644153057984?api-version=2017-05-10 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:50:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_qZpRd0UNhS1FQfi9WbvFAnYlw7Zdpo4G","name":"vmss_deploy_qZpRd0UNhS1FQfi9WbvFAnYlw7Zdpo4G","properties":{"templateHash":"1527587465959826208","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-01-11T03:49:59.5085243Z","duration":"PT2M9.3366979S","correlationId":"90736b7f-21f2-47f5-a1e1-4ea04cb6d7bd","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss0VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/vmss0LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss0LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss0LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss0VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss0LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss0"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss03eb8","adminUsername":"admin123","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss03eb8Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss03eb8IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET/subnets/vmss0Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/backendAddressPools/vmss0LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatPools/vmss0LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"a48bbc49-e953-4220-b996-1e1e7147bc7c"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/vmss0LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['5230'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:50:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss0LB\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\",\r\ + \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ + : \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"\ + 2002e6f2-f3c7-4791-8a3f-bbb5ca66e2b0\",\r\n \"frontendIPConfigurations\"\ + : [\r\n {\r\n \"name\": \"loadBalancerFrontEnd\",\r\n\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ + ,\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/vmss0LBPublicIP\"\ + \r\n },\r\n \"inboundNatRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.0\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.1\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.2\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.3\"\ + \r\n }\r\n ],\r\n \"inboundNatPools\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatPools/vmss0LBNatPool\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ + \ \"name\": \"vmss0LBBEPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/backendAddressPools/vmss0LBBEPool\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"backendIPConfigurations\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/0/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/1/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/2/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/3/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\"\ + : [],\r\n \"inboundNatRules\": [\r\n {\r\n \"name\"\ + : \"vmss0LBNatPool.0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.0\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50000,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/0/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss0LBNatPool.1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.1\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50001,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/1/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss0LBNatPool.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.2\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50002,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/2/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n }\r\n }\r\n },\r\n {\r\n \ + \ \"name\": \"vmss0LBNatPool.3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatRules/vmss0LBNatPool.3\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 50003,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\ + \n \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"backendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/3/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"outboundNatRules\": [],\r\n \"inboundNatPools\": [\r\n \ + \ {\r\n \"name\": \"vmss0LBNatPool\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/inboundNatPools/vmss0LBNatPool\"\ + ,\r\n \"etag\": \"W/\\\"d05ae558-4bda-48b2-acda-7e53f9789f57\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendPortRangeStart\": 50000,\r\n \ + \ \"frontendPortRangeEnd\": 50119,\r\n \"backendPort\"\ + : 22,\r\n \"protocol\": \"Tcp\",\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"enableFloatingIP\": false,\r\n \"frontendIPConfiguration\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n }\r\n }\r\n }\r\n ]\r\n \ + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n \ + \ }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['11714'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:50:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss0LBPublicIP\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/vmss0LBPublicIP\"\ + ,\r\n \"etag\": \"W/\\\"70a69f4b-a4ad-4ebb-b8b4-03f1ee1949bc\\\"\",\r\ + \n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\"\ + : \"0fd3a69b-6b56-47e2-914e-d54d203b0859\",\r\n \"ipAddress\": \"40.70.5.144\"\ + ,\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_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/vmss0LB/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n }\r\ + \n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1133'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:50:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Connection: [close] + Host: [raw.githubusercontent.com] + User-Agent: [Python-urllib/3.5] + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ + ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\ + :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\ + type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\ + CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\ + :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\ + \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\ + ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \ + \ \"version\":\"latest\"\n },\n \"Debian\":{\n\ + \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\ + ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \ + \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\ + ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\ + ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\ + \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\ + \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \ + \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \ + \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \ + \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \ + \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\ + ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\ + \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\ + \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \ + \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\ + }\n"} + headers: + accept-ranges: [bytes] + access-control-allow-origin: ['*'] + cache-control: [max-age=300] + connection: [close] + content-length: ['2235'] + content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] + content-type: [text/plain; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:50:28 GMT'] + etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] + expires: ['Thu, 11 Jan 2018 03:55:28 GMT'] source-age: ['0'] strict-transport-security: [max-age=31536000] vary: ['Authorization,Accept-Encoding'] @@ -88,12 +562,12 @@ interactions: x-cache: [MISS] x-cache-hits: ['0'] x-content-type-options: [nosniff] - x-fastly-request-id: [720b2f7de9c90856e5edb2a0043851bff793cc4c] + x-fastly-request-id: [7767f37402b92ca6de0fdff197d662d0f3e910c8] x-frame-options: [deny] x-geo-block-list: [''] - x-github-request-id: ['1170:5F8A:C0424:CBF1B:5A389660'] - x-served-by: [cache-sea1025-SEA] - x-timer: ['S1513657952.345539,VS0,VE37'] + x-github-request-id: ['F836:2F947:1E2181:1ED32E:5A56DF04'] + x-served-by: [cache-sea1029-SEA] + x-timer: ['S1515642628.389422,VS0,VE38'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -104,21 +578,47 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 response: - body: {string: '{"value":[]}'} + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss0VNET\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET\"\ + ,\r\n \"etag\": \"W/\\\"8d0d3ca1-da16-4578-8e13-19c9998d7ec7\\\"\",\r\ + \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\ + : \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"\ + bd1b19af-2607-4ec7-9a94-7ee4ed240321\",\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\": \"vmss0Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET/subnets/vmss0Subnet\"\ + ,\r\n \"etag\": \"W/\\\"8d0d3ca1-da16-4578-8e13-19c9998d7ec7\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\ + \ \"ipConfigurations\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/0/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/1/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/2/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss0/virtualMachines/3/networkInterfaces/vmss03eb8Nic/ipConfigurations/vmss03eb8IPConfig\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\ + \ ]\r\n}"} headers: cache-control: [no-cache] - content-length: ['12'] + content-length: ['2806'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:31 GMT'] + date: ['Thu, 11 Jan 2018 03:50:28 GMT'] expires: ['-1'] pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: @@ -129,8 +629,8 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2017-11-01 @@ -141,7 +641,7 @@ interactions: cache-control: [no-cache] content-length: ['214'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:31 GMT'] + date: ['Thu, 11 Jan 2018 03:50:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -155,9 +655,9 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network?api-version=2017-05-10 @@ -227,7 +727,8 @@ interactions: West","Brazil South","Australia East","Australia Southeast","Central India","South India","West India","Canada Central","Canada East","West Central US","West US 2","UK West","UK South","Korea Central","Korea South","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-11-01","2017-10-01","2017-09-01"]},{"resourceType":"virtualNetworkGateways","locations":["West + US 2 EUAP"],"apiVersions":["2017-11-01","2017-10-01","2017-09-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"virtualNetworkGateways","locations":["West US","East US","North Europe","West Europe","East Asia","Southeast Asia","North Central US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","Central India","South @@ -289,9 +790,9 @@ interactions: US 2 EUAP"],"apiVersions":["2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"],"capabilities":"None"},{"resourceType":"bgpServiceCommunities","locations":[],"apiVersions":["2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"]}],"registrationState":"Registered"}'} headers: cache-control: [no-cache] - content-length: ['19977'] + content-length: ['20056'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:32 GMT'] + date: ['Thu, 11 Jan 2018 03:50:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -305,9 +806,9 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1?api-version=2017-11-01 @@ -318,74 +819,74 @@ interactions: cache-control: [no-cache] content-length: ['221'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:32 GMT'] + date: ['Thu, 11 Jan 2018 03:50:31 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-failure-cause: [gateway] status: {code: 404, message: Not Found} - request: - body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "parameters": {}, "variables": {}, "contentVersion": "1.0.0.0", "resources": - [{"tags": {}, "properties": {"subnets": [{"properties": {"addressPrefix": "10.0.0.0/24"}, - "name": "vmss1Subnet"}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}, - "type": "Microsoft.Network/virtualNetworks", "name": "vmss1VNET", "location": - "eastus2", "apiVersion": "2015-06-15", "dependsOn": []}, {"tags": {}, "properties": - {"publicIPAllocationMethod": "Static"}, "type": "Microsoft.Network/publicIPAddresses", - "name": "pubip1", "sku": {"name": "Standard"}, "location": "eastus2", "apiVersion": - "2017-11-01", "dependsOn": []}, {"tags": {}, "properties": {"inboundNatPools": - [{"properties": {"frontendPortRangeEnd": "50119", "frontendPortRangeStart": - "50000", "backendPort": 22, "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + body: 'b''{"properties": {"parameters": {}, "template": {"outputs": {"VMSS": {"value": + "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', \''vmss1\''),providers(\''Microsoft.Compute\'', + \''virtualMachineScaleSets\'').apiVersions[0])]", "type": "object"}}, "parameters": + {}, "resources": [{"name": "pubip1", "apiVersion": "2017-11-01", "type": "Microsoft.Network/publicIPAddresses", + "location": "eastus2", "tags": {}, "dependsOn": [], "sku": {"name": "Standard"}, + "properties": {"publicIPAllocationMethod": "Static"}}, {"name": "lb1", "apiVersion": + "2017-11-01", "type": "Microsoft.Network/loadBalancers", "location": "eastus2", + "tags": {}, "dependsOn": ["Microsoft.Network/publicIpAddresses/pubip1"], "sku": + {"name": "Standard"}, "properties": {"backendAddressPools": [{"name": "lb1BEPool"}], + "loadBalancingRules": [{"name": "LBRule", "properties": {"backendAddressPool": + {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''lb1\''), + \''/backendAddressPools/\'', \''lb1BEPool\'')]"}, "backendPort": 80, "protocol": + "tcp", "idleTimeoutInMinutes": 5, "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''lb1\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, + "frontendPort": 80, "enableFloatingIP": false}}], "inboundNatPools": [{"name": + "lb1NatPool", "properties": {"frontendPortRangeEnd": "50119", "backendPort": + 22, "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''lb1\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, - "protocol": "tcp"}, "name": "lb1NatPool"}], "backendAddressPools": [{"name": - "lb1BEPool"}], "frontendIPConfigurations": [{"properties": {"publicIPAddress": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}}, - "name": "loadBalancerFrontEnd"}]}, "type": "Microsoft.Network/loadBalancers", - "name": "lb1", "sku": {"name": "Standard"}, "location": "eastus2", "apiVersion": - "2017-11-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", "Microsoft.Network/publicIpAddresses/pubip1"]}, - {"tags": {}, "properties": {"singlePlacementGroup": true, "upgradePolicy": {"mode": - "manual"}, "overprovision": true, "virtualMachineProfile": {"networkProfile": - {"networkInterfaceConfigurations": [{"properties": {"ipConfigurations": [{"properties": - {"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool"}], - "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/lb1NatPool"}], - "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"}}, - "name": "vmss16dddIPConfig"}], "primary": "true"}, "name": "vmss16dddNic"}]}, - "storageProfile": {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", - "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": - "Canonical", "version": "latest", "offer": "UbuntuServer", "sku": "16.04-LTS"}}, - "osProfile": {"adminPassword": "PasswordPassword1!", "computerNamePrefix": "vmss16ddd", - "adminUsername": "admin123"}}}, "type": "Microsoft.Compute/virtualMachineScaleSets", - "name": "vmss1", "sku": {"capacity": 2, "name": "Standard_D1_v2"}, "location": - "eastus2", "apiVersion": "2017-12-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", - "Microsoft.Network/loadBalancers/lb1"]}], "outputs": {"VMSS": {"type": "object", - "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', - \''vmss1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]"}}}, - "mode": "Incremental", "parameters": {}}}''' + "frontendPortRangeStart": "50000", "protocol": "tcp"}}], "frontendIPConfigurations": + [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}}}]}}, + {"name": "vmss1", "apiVersion": "2017-12-01", "type": "Microsoft.Compute/virtualMachineScaleSets", + "location": "eastus2", "tags": {}, "dependsOn": ["Microsoft.Network/loadBalancers/lb1"], + "sku": {"capacity": 2, "name": "Standard_D1_v2"}, "properties": {"overprovision": + true, "upgradePolicy": {"mode": "manual"}, "singlePlacementGroup": true, "virtualMachineProfile": + {"networkProfile": {"networkInterfaceConfigurations": [{"name": "vmss1a1f6Nic", + "properties": {"primary": "true", "ipConfigurations": [{"name": "vmss1a1f6IPConfig", + "properties": {"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool"}], + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET/subnets/vmss0Subnet"}, + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/lb1NatPool"}]}}]}}]}, + "storageProfile": {"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}, "createOption": "FromImage"}, "imageReference": {"sku": "16.04-LTS", + "publisher": "Canonical", "version": "latest", "offer": "UbuntuServer"}}, "osProfile": + {"adminUsername": "admin123", "computerNamePrefix": "vmss1a1f6", "adminPassword": + "PasswordPassword1!"}}}}], "variables": {}, "contentVersion": "1.0.0.0", "$schema": + "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}, + "mode": "Incremental"}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [vmss create] Connection: [keep-alive] - Content-Length: ['3664'] + Content-Length: ['3727'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_lY4wI8yvBbF8wUenjSMo3aGjyh3XVpy1","name":"vmss_deploy_lY4wI8yvBbF8wUenjSMo3aGjyh3XVpy1","properties":{"templateHash":"4944564824667843403","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-12-19T04:32:35.1890801Z","duration":"PT0.8638598S","correlationId":"c09e7f8a-19d9-46e3-8bbb-9f21394b312a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"pubip1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_kBa6PkKbpgSr9K2G9LLhUlJsixBSsWvT","name":"vmss_deploy_kBa6PkKbpgSr9K2G9LLhUlJsixBSsWvT","properties":{"templateHash":"15561937659775073340","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-01-11T03:50:33.8469594Z","duration":"PT0.7486714S","correlationId":"bb3b8dce-9bf5-4bde-8d8a-fa2705b5d16c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"pubip1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/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_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_lY4wI8yvBbF8wUenjSMo3aGjyh3XVpy1/operationStatuses/08586879489311524116?api-version=2017-05-10'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_kBa6PkKbpgSr9K2G9LLhUlJsixBSsWvT/operationStatuses/08586859642523793319?api-version=2017-05-10'] cache-control: [no-cache] - content-length: ['2621'] + content-length: ['1995'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:32:35 GMT'] + date: ['Thu, 11 Jan 2018 03:50:33 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1186'] + x-ms-ratelimit-remaining-subscription-writes: ['1181'] status: {code: 201, message: Created} - request: body: null @@ -395,19 +896,19 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586879489311524116?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859642523793319?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:33:05 GMT'] + date: ['Thu, 11 Jan 2018 03:51:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -421,19 +922,19 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586879489311524116?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859642523793319?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:33:36 GMT'] + date: ['Thu, 11 Jan 2018 03:51:34 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -447,19 +948,19 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586879489311524116?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859642523793319?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:34:06 GMT'] + date: ['Thu, 11 Jan 2018 03:52:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -473,19 +974,19 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586879489311524116?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859642523793319?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:34:36 GMT'] + date: ['Thu, 11 Jan 2018 03:52:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -499,19 +1000,45 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586879489311524116?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859642523793319?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 11 Jan 2018 03:53:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vmss create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.25] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586859642523793319?api-version=2017-05-10 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:35:11 GMT'] + date: ['Thu, 11 Jan 2018 03:53:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -525,19 +1052,19 @@ interactions: CommandName: [vmss create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_lY4wI8yvBbF8wUenjSMo3aGjyh3XVpy1","name":"vmss_deploy_lY4wI8yvBbF8wUenjSMo3aGjyh3XVpy1","properties":{"templateHash":"4944564824667843403","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-12-19T04:34:59.4908353Z","duration":"PT2M25.165615S","correlationId":"c09e7f8a-19d9-46e3-8bbb-9f21394b312a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2"]},{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"pubip1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss16ddd","adminUsername":"admin123","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss16dddNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss16dddIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/lb1NatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"04849ca2-e222-4165-a943-1852c993dc62"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Resources/deployments/vmss_deploy_kBa6PkKbpgSr9K2G9LLhUlJsixBSsWvT","name":"vmss_deploy_kBa6PkKbpgSr9K2G9LLhUlJsixBSsWvT","properties":{"templateHash":"15561937659775073340","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-01-11T03:53:18.978861Z","duration":"PT2M45.880573S","correlationId":"bb3b8dce-9bf5-4bde-8d8a-fa2705b5d16c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"pubip1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1a1f6","adminUsername":"admin123","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1a1f6Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss1a1f6IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss0VNET/subnets/vmss0Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/lb1NatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"8f6eb9f5-00e6-4782-aa30-aa4caa27e02a"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}]}}'} headers: cache-control: [no-cache] - content-length: ['5167'] + content-length: ['4334'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:35:11 GMT'] + date: ['Thu, 11 Jan 2018 03:53:37 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -551,25 +1078,27 @@ interactions: CommandName: [network lb show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2017-11-01 response: body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\"\ ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ - \ \"Succeeded\",\r\n \"resourceGuid\": \"fa41fbe0-a90b-460a-9f47-6e71b1e101ff\"\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"79b650e5-e1cf-464b-8ee8-f1c65af8153e\"\ ,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\ loadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\ - \r\n },\r\n \"inboundNatRules\": [\r\n {\r\n\ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.0\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n {\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/loadBalancingRules/LBRule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n\ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.0\"\ \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.1\"\ \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.2\"\ \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.3\"\ @@ -578,55 +1107,67 @@ interactions: \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"lb1BEPool\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"backendIPConfigurations\": [\r\n {\r\n \ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ - \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ - \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ - \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ + \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ + \r\n }\r\n ],\r\n \"loadBalancingRules\": [\r\ + \n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/loadBalancingRules/LBRule\"\ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ - \ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\"\ - : [\r\n {\r\n \"name\": \"lb1NatPool.0\",\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.0\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + \ \"loadBalancingRules\": [\r\n {\r\n \"name\": \"LBRule\",\r\n\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/loadBalancingRules/LBRule\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \"backendPort\"\ + : 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 5,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\"\ + : \"Default\",\r\n \"disableOutboundSnat\": false,\r\n \"\ + backendAddressPool\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\ + \n \"inboundNatRules\": [\r\n {\r\n \"name\": \"lb1NatPool.0\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.0\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ \r\n },\r\n \"frontendPort\": 50000,\r\n \"backendPort\"\ : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ : 4,\r\n \"protocol\": \"Tcp\",\r\n \"backendIPConfiguration\"\ - : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ \r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"\ lb1NatPool.1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.1\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ \r\n },\r\n \"frontendPort\": 50001,\r\n \"backendPort\"\ : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ : 4,\r\n \"protocol\": \"Tcp\",\r\n \"backendIPConfiguration\"\ - : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ \r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"\ lb1NatPool.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.2\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ \r\n },\r\n \"frontendPort\": 50002,\r\n \"backendPort\"\ : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ : 4,\r\n \"protocol\": \"Tcp\",\r\n \"backendIPConfiguration\"\ - : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ \r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"\ lb1NatPool.3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/lb1NatPool.3\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ \r\n },\r\n \"frontendPort\": 50003,\r\n \"backendPort\"\ : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ : 4,\r\n \"protocol\": \"Tcp\",\r\n \"backendIPConfiguration\"\ - : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss16dddNic/ipConfigurations/vmss16dddIPConfig\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1a1f6Nic/ipConfigurations/vmss1a1f6IPConfig\"\ \r\n }\r\n }\r\n }\r\n ],\r\n \"outboundNatRules\"\ : [],\r\n \"inboundNatPools\": [\r\n {\r\n \"name\": \"lb1NatPool\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/lb1NatPool\"\ - ,\r\n \"etag\": \"W/\\\"dae6c3b0-70e8-4b95-be41-6db256c1869b\\\"\"\ + ,\r\n \"etag\": \"W/\\\"65f53873-b4cb-44da-9cc8-9f8197f2c4a2\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendPortRangeStart\": 50000,\r\n \"frontendPortRangeEnd\"\ : 50119,\r\n \"backendPort\": 22,\r\n \"protocol\": \"Tcp\"\ @@ -637,10 +1178,10 @@ interactions: \n \"name\": \"Standard\"\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['10851'] + content-length: ['12761'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:35:13 GMT'] - etag: [W/"dae6c3b0-70e8-4b95-be41-6db256c1869b"] + date: ['Thu, 11 Jan 2018 03:53:38 GMT'] + etag: [W/"65f53873-b4cb-44da-9cc8-9f8197f2c4a2"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -656,17 +1197,17 @@ interactions: CommandName: [network public-ip show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.25] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1?api-version=2017-11-01 response: body: {string: "{\r\n \"name\": \"pubip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\ - ,\r\n \"etag\": \"W/\\\"d5e7ce19-fd3a-4624-9af3-d69aa081239d\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"166e9002-9a5f-4684-8e9c-f8ccd935909e\\\"\",\r\n \ \ \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\ - \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"3b9c109e-e978-4176-9adb-53a5b6c32eb1\"\ - ,\r\n \"ipAddress\": \"40.67.155.61\",\r\n \"publicIPAddressVersion\"\ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"998e45e3-a99f-4490-9f12-6ae8d50b054a\"\ + ,\r\n \"ipAddress\": \"40.67.159.178\",\r\n \"publicIPAddressVersion\"\ : \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\ : 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/loadBalancerFrontEnd\"\ @@ -674,10 +1215,10 @@ interactions: \n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['997'] + content-length: ['998'] content-type: [application/json; charset=utf-8] - date: ['Tue, 19 Dec 2017 04:35:14 GMT'] - etag: [W/"d5e7ce19-fd3a-4624-9af3-d69aa081239d"] + date: ['Thu, 11 Jan 2018 03:53:40 GMT'] + etag: [W/"166e9002-9a5f-4684-8e9c-f8ccd935909e"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -694,9 +1235,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.23 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + AZURECLI/2.0.25] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_lb_sku000001?api-version=2017-05-10 @@ -705,11 +1246,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 19 Dec 2017 04:35:16 GMT'] + date: ['Thu, 11 Jan 2018 03:53:42 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RkxCOjVGU0tVQVFGMk5aVFJBQ1BRQkRPTTVEQXw4OUUyMUFCMzcxMjg5QzBDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RkxCOjVGU0tVRlVWMlhaUUlOSUNHWk9ZWEM0Vnw0RDUxRDg4RTVFRjEzNDlGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1189'] + x-ms-ratelimit-remaining-subscription-writes: ['1154'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py index 54c0a9060aa..7e9af10af7f 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py @@ -1748,6 +1748,7 @@ class VMSSLoadBalancerWithSku(ScenarioTest): def test_vmss_lb_sku(self, resource_group): self.kwargs.update({ + 'vmss0': 'vmss0', 'vmss': 'vmss1', 'lb': 'lb1', 'ip': 'pubip1', @@ -1755,6 +1756,15 @@ def test_vmss_lb_sku(self, resource_group): 'loc': 'eastus2' }) + # default to Basic + self.cmd('vmss create -g {rg} -l {loc} -n {vmss0} --image UbuntuLTS --admin-username admin123 --admin-password PasswordPassword1!') + self.cmd('network lb list -g {rg}', checks=self.check('[0].sku.name', 'Basic')) + self.cmd('network public-ip list -g {rg}', checks=[ + self.check('[0].sku.name', 'Basic'), + self.check('[0].publicIpAllocationMethod', 'Dynamic') + ]) + + # but you can overrides the defaults self.cmd('vmss create -g {rg} -l {loc} -n {vmss} --lb {lb} --lb-sku {sku} --public-ip-address {ip} --image UbuntuLTS --admin-username admin123 --admin-password PasswordPassword1!') self.cmd('network lb show -g {rg} -n {lb}', checks=self.check('sku.name', 'Standard')) @@ -2087,7 +2097,7 @@ def test_vm_create_zones(self, resource_group, resource_group_location): self.assertTrue(set([resource_group_location, self.kwargs['zones']]).issubset(table_output)) @ResourceGroupPreparer(name_prefix='cli_test_vmss_zones', location='eastus2') - def test_vmss_create_zones(self, resource_group, resource_group_location): + def test_vmss_create_single_zone(self, resource_group, resource_group_location): self.kwargs.update({ 'zones': '2', @@ -2103,6 +2113,36 @@ def test_vmss_create_zones(self, resource_group, resource_group_location): table_output = set(result.output.splitlines()[2].split()) self.assertTrue(set([resource_group_location, self.kwargs['vmss'], self.kwargs['zones']]).issubset(table_output)) + self.cmd('network lb list -g {rg}', checks=[ + self.check('[0].sku.name', 'Standard') + ]) + self.cmd('network public-ip list -g {rg}', checks=[ + self.check('[0].sku.name', 'Standard'), + self.check('[0].zones', ['2']) + ]) + + @ResourceGroupPreparer(name_prefix='cli_test_vmss_zones', location='eastus2') + def test_vmss_create_x_zones(self, resource_group, resource_group_location): + + self.kwargs.update({ + 'zones': '1 2 3', + 'vmss': 'vmss123' + }) + self.cmd('vmss create -g {rg} -n {vmss} --admin-username clitester --admin-password PasswordPassword1! --image debian --zones {zones}') + self.cmd('vmss show -g {rg} -n {vmss}', + checks=self.check('zones', ['1', '2', '3'])) + result = self.cmd('vmss show -g {rg} -n {vmss} -otable') + table_output = set(result.output.splitlines()[2].split()) + self.assertTrue(set([resource_group_location, self.kwargs['vmss']] + self.kwargs['zones'].split()).issubset(table_output)) + + self.cmd('network lb list -g {rg}', checks=[ + self.check('[0].sku.name', 'Standard') + ]) + self.cmd('network public-ip list -g {rg}', checks=[ + self.check('[0].sku.name', 'Standard'), + self.check('[0].zones', None) + ]) + @ResourceGroupPreparer(name_prefix='cli_test_disk_zones', location='eastus2') def test_disk_create_zones(self, resource_group, resource_group_location):