[Network] Add Load Balancer SKU support (#4292)

* Add SKU to LB create and VMSS create.

* Add SKU support to public-ip. Add VMSS create and LB create tests.

* Code review comments.

* Re-record tests and code review feedback.

* Code review comments.
This commit is contained in:
Travis Prescott 2017-08-24 16:14:27 -07:00 коммит произвёл GitHub
Родитель 43114927d1
Коммит d479bd6a04
26 изменённых файлов: 6311 добавлений и 5185 удалений

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

@ -368,7 +368,6 @@
<Compile Include="command_modules\azure-cli-interactive\azclishell\telemetry.py" />
<Compile Include="command_modules\azure-cli-interactive\azclishell\util.py" />
<Compile Include="command_modules\azure-cli-interactive\azclishell\_dump_commands.py" />
<Compile Include="command_modules\azure-cli-interactive\azclishell\_dump_help.py" />
<Compile Include="command_modules\azure-cli-interactive\azclishell\__init__.py" />
<Compile Include="command_modules\azure-cli-interactive\azclishell\__main__.py" />
<Compile Include="command_modules\azure-cli-interactive\azure\cli\command_modules\interactive\commands.py" />

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

@ -7,6 +7,9 @@ unreleased
+++++++++++++++++++
* BC `vnet list-private-access-services`: renamed to `vnet list-endpoint-services`
* BC `vnet subnet create/update`: renamed `--private-access-services` to `--service-endpoints`
* `lb create`: Added support for SKU.
* `public-ip create`: Added support for SKU.
2.0.12 (2017-08-11)
+++++++++++++++++++

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

@ -474,6 +474,8 @@ for item in ['create', 'update']:
register_cli_argument('network public-ip {}'.format(item), 'version', help='IP address type.', default=IPVersion.ipv4.value, **enum_choice_list(IPVersion))
else:
register_cli_argument('network public-ip {}'.format(item), 'version', ignore_type)
with VersionConstraint(ResourceType.MGMT_NETWORK, min_api='2017-08-01') as c:
c.register_cli_argument('network public-ip {}'.format(item), 'sku', help='Public IP SKU', default='Basic') # **model_choice_list(ResourceType.MGMT_NETWORK, 'PublicIPAddressSkuName'))
# Route table
register_cli_argument('network route-table', 'route_table_name', name_arg_type, completer=get_resource_name_completion_list('Microsoft.Network/routeTables'), id_part='name')
@ -556,6 +558,9 @@ register_cli_argument('network lb', 'floating_ip', help='Enable floating IP.', *
register_cli_argument('network lb', 'idle_timeout', help='Idle timeout in minutes.')
register_cli_argument('network lb', 'protocol', help='', **enum_choice_list(TransportProtocol))
with VersionConstraint(ResourceType.MGMT_NETWORK, min_api='2017-08-01') as c:
c.register_cli_argument('network lb', 'sku', help='Load balancer SKU', default='Basic') # **model_choice_list(ResourceType.MGMT_NETWORK, 'LoadBalancerSkuName'))
for item in ['backend_pool_name', 'backend_address_pool_name']:
register_cli_argument('network lb', item, options_list=('--backend-pool-name',), help='The name of the backend address pool.', completer=get_lb_subresource_completion_list('backend_address_pools'))

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

@ -3,10 +3,11 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from collections import OrderedDict
import json
from azure.cli.core.profiles import ResourceType, supported_api_version, get_api_version
class ArmTemplateBuilder(object):
def __init__(self):
@ -90,7 +91,6 @@ def build_application_gateway_resource(name, location, tags, sku_name, sku_tier,
cookie_based_affinity, http_settings_protocol, http_settings_port,
http_listener_protocol, routing_rule_type, public_ip_id, subnet_id,
connection_draining_timeout):
from azure.cli.core.profiles import ResourceType, supported_api_version, get_api_version
# set the default names
frontend_ip_name = 'appGatewayFrontendIP'
@ -207,7 +207,7 @@ def build_application_gateway_resource(name, location, tags, sku_name, sku_tier,
def build_load_balancer_resource(name, location, tags, backend_pool_name, frontend_ip_name, public_ip_id, subnet_id,
private_ip_address, private_ip_allocation):
private_ip_address, private_ip_allocation, sku):
frontend_ip_config = _build_frontend_ip_config(frontend_ip_name, public_ip_id, subnet_id, private_ip_address,
private_ip_allocation)
@ -219,27 +219,28 @@ def build_load_balancer_resource(name, location, tags, backend_pool_name, fronte
],
'frontendIPConfigurations': [frontend_ip_config]
}
lb = {
'type': 'Microsoft.Network/loadBalancers',
'name': name,
'location': location,
'tags': tags,
'apiVersion': '2015-06-15',
'apiVersion': get_api_version(ResourceType.MGMT_NETWORK),
'dependsOn': [],
'properties': lb_properties
}
if sku and supported_api_version(ResourceType.MGMT_NETWORK, min_api='2017-08-01'):
lb['sku'] = {'name': sku}
return lb
def build_public_ip_resource(name, location, tags, address_allocation, dns_name=None):
def build_public_ip_resource(name, location, tags, address_allocation, dns_name, sku):
public_ip_properties = {'publicIPAllocationMethod': address_allocation}
if dns_name:
public_ip_properties['dnsSettings'] = {'domainNameLabel': dns_name}
public_ip = {
'apiVersion': '2015-06-15',
'apiVersion': get_api_version(ResourceType.MGMT_NETWORK),
'type': 'Microsoft.Network/publicIPAddresses',
'name': name,
'location': location,
@ -247,6 +248,8 @@ def build_public_ip_resource(name, location, tags, address_allocation, dns_name=
'dependsOn': [],
'properties': public_ip_properties
}
if sku and supported_api_version(ResourceType.MGMT_NETWORK, min_api='2017-08-01'):
public_ip['sku'] = {'name': sku}
return public_ip
@ -278,7 +281,6 @@ def build_vnet_resource(name, location, tags, vnet_prefix=None, subnet=None, sub
def build_vpn_connection_resource(name, location, tags, gateway1, gateway2, vpn_type, authorization_key, enable_bgp,
routing_weight, shared_key, use_policy_based_traffic_selectors):
from azure.cli.core.profiles import ResourceType, supported_api_version
vpn_properties = {
'virtualNetworkGateway1': {'id': gateway1},
'authorizationKey': authorization_key,

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

@ -200,6 +200,7 @@ def create_application_gateway(application_gateway_name, resource_group_name, lo
master_template.add_resource(build_public_ip_resource(public_ip_address, location,
tags,
public_ip_address_allocation,
None,
None))
public_ip_id = '{}/publicIPAddresses/{}'.format(network_id_template,
public_ip_address)
@ -855,11 +856,11 @@ def list_ag_waf_rule_sets(client, _type=None, version=None, group=None):
def create_load_balancer(load_balancer_name, resource_group_name, location=None, tags=None,
backend_pool_name=None, frontend_ip_name='LoadBalancerFrontEnd',
private_ip_address=None, public_ip_address=None,
public_ip_address_allocation=IPAllocationMethod.dynamic.value,
public_ip_address_allocation=None,
public_ip_dns_name=None, subnet=None, subnet_address_prefix='10.0.0.0/24',
virtual_network_name=None, vnet_address_prefix='10.0.0.0/16',
public_ip_address_type=None, subnet_type=None, validate=False,
no_wait=False):
no_wait=False, sku=None):
from azure.cli.core.util import random_string
from azure.cli.command_modules.network._template_builder import \
(ArmTemplateBuilder, build_load_balancer_resource, build_public_ip_resource,
@ -870,6 +871,9 @@ def create_load_balancer(load_balancer_name, resource_group_name, location=None,
tags = tags or {}
public_ip_address = public_ip_address or 'PublicIP{}'.format(load_balancer_name)
backend_pool_name = backend_pool_name or '{}bepool'.format(load_balancer_name)
if not public_ip_address_allocation:
public_ip_address_allocation = IPAllocationMethod.static.value if (sku and sku.lower() == 'standard') \
else IPAllocationMethod.dynamic.value
# Build up the ARM template
master_template = ArmTemplateBuilder()
@ -898,13 +902,14 @@ def create_load_balancer(load_balancer_name, resource_group_name, location=None,
master_template.add_resource(build_public_ip_resource(public_ip_address, location,
tags,
public_ip_address_allocation,
public_ip_dns_name))
public_ip_dns_name,
sku))
public_ip_id = '{}/publicIPAddresses/{}'.format(network_id_template,
public_ip_address)
load_balancer_resource = build_load_balancer_resource(
load_balancer_name, location, tags, backend_pool_name, frontend_ip_name,
public_ip_id, subnet_id, private_ip_address, private_ip_allocation)
public_ip_id, subnet_id, private_ip_address, private_ip_allocation, sku)
load_balancer_resource['dependsOn'] = lb_dependencies
master_template.add_resource(load_balancer_resource)
master_template.add_output('loadBalancer', load_balancer_name, output_type='object')
@ -1404,9 +1409,12 @@ update_nsg_rule.__doc__ = SecurityRule.__doc__
# region Public IP commands
def create_public_ip(resource_group_name, public_ip_address_name, location=None, tags=None,
allocation_method=IPAllocationMethod.dynamic.value, dns_name=None,
idle_timeout=4, reverse_fqdn=None, version=None):
allocation_method=None, dns_name=None,
idle_timeout=4, reverse_fqdn=None, version=None, sku=None):
client = _network_client_factory().public_ip_addresses
if not allocation_method:
allocation_method = IPAllocationMethod.static.value if (sku and sku.lower() == 'standard') \
else IPAllocationMethod.dynamic.value
public_ip_args = {
'location': location,
@ -1417,6 +1425,8 @@ def create_public_ip(resource_group_name, public_ip_address_name, location=None,
}
if supported_api_version(ResourceType.MGMT_NETWORK, min_api='2016-09-01'):
public_ip_args['public_ip_address_version'] = version
if sku:
public_ip_args['sku'] = {'name': sku}
public_ip = PublicIPAddress(**public_ip_args)
if dns_name or reverse_fqdn:
@ -1427,7 +1437,7 @@ def create_public_ip(resource_group_name, public_ip_address_name, location=None,
def update_public_ip(instance, dns_name=None, allocation_method=None, version=None,
idle_timeout=None, reverse_fqdn=None, tags=None):
idle_timeout=None, reverse_fqdn=None, tags=None, sku=None):
if dns_name is not None or reverse_fqdn is not None:
if instance.dns_settings:
if dns_name is not None:
@ -1444,6 +1454,8 @@ def update_public_ip(instance, dns_name=None, allocation_method=None, version=No
instance.idle_timeout_in_minutes = idle_timeout
if tags is not None:
instance.tags = tags
if sku is not None:
instance.sku.name = sku
return instance

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

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

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

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

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

@ -0,0 +1,255 @@
interactions:
- request:
body: '{"tags": {"use": "az-test"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_lb_sku000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001","name":"cli_test_network_lb_sku000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:57:51 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: [network lb create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?api-version=2017-05-10&$filter=resourceGroup%20eq%20%27cli_test_network_lb_sku000001%27%20and%20name%20eq%20%27pubip1%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27
response:
body: {string: '{"value":[]}'}
headers:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:57:51 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": {"variables": {}, "contentVersion":
"1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"resources": [{"apiVersion": "2017-08-01", "name": "pubip1", "tags": {}, "properties":
{"publicIPAllocationMethod": "Static"}, "type": "Microsoft.Network/publicIPAddresses",
"dependsOn": [], "sku": {"name": "standard"}, "location": "eastus2"}, {"tags":
{}, "name": "lb1", "apiVersion": "2017-08-01", "properties": {"backendAddressPools":
[{"name": "lb1bepool"}], "frontendIPConfigurations": [{"properties": {"publicIPAddress":
{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}},
"name": "LoadBalancerFrontEnd"}]}, "type": "Microsoft.Network/loadBalancers",
"dependsOn": ["Microsoft.Network/publicIpAddresses/pubip1"], "sku": {"name":
"standard"}, "location": "eastus2"}], "parameters": {}, "outputs": {"loadBalancer":
{"type": "object", "value": "[reference(\''lb1\'')]"}}}, "mode": "Incremental"}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [network lb create]
Connection: [keep-alive]
Content-Length: ['1137']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_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_network_lb_sku000001/providers/Microsoft.Resources/deployments/lb_deploy_CiBkqpkmjwIaQaKKXRsswtB09zAzRmhI","name":"lb_deploy_CiBkqpkmjwIaQaKKXRsswtB09zAzRmhI","properties":{"templateHash":"9109166045948272807","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-24T16:57:54.2913174Z","duration":"PT0.5397455S","correlationId":"72cc01ec-68c8-459d-8024-2e49db08bfa2","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"pubip1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}]}}'}
headers:
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_lb_sku000001/providers/Microsoft.Resources/deployments/lb_deploy_CiBkqpkmjwIaQaKKXRsswtB09zAzRmhI/operationStatuses/08586980130117260505?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['1297']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:57:53 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [network lb create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_lb_sku000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980130117260505?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, 24 Aug 2017 16:58:24 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 create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_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_network_lb_sku000001/providers/Microsoft.Resources/deployments/lb_deploy_CiBkqpkmjwIaQaKKXRsswtB09zAzRmhI","name":"lb_deploy_CiBkqpkmjwIaQaKKXRsswtB09zAzRmhI","properties":{"templateHash":"9109166045948272807","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-24T16:57:59.9829821Z","duration":"PT6.2314102S","correlationId":"72cc01ec-68c8-459d-8024-2e49db08bfa2","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"pubip1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"outputs":{"loadBalancer":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"a6a76938-2e4a-43d8-b945-58fda27694f0","frontendIPConfigurations":[{"name":"LoadBalancerFrontEnd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd","etag":"W/\"b2b583ad-38b6-4ce6-a552-595720048443\"","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"b2b583ad-38b6-4ce6-a552-595720048443\"","properties":{"provisioningState":"Succeeded"}}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundNatRules":[],"inboundNatPools":[]}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['2995']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:24 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 show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1\"\
,\r\n \"etag\": \"W/\\\"b2b583ad-38b6-4ce6-a552-595720048443\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"a6a76938-2e4a-43d8-b945-58fda27694f0\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"b2b583ad-38b6-4ce6-a552-595720048443\\\"\"\
,\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_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\
\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_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\
,\r\n \"etag\": \"W/\\\"b2b583ad-38b6-4ce6-a552-595720048443\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": [],\r\n\
\ \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"outboundNatRules\"\
: [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": {\r\n \"name\"\
: \"Standard\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1945']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:25 GMT']
etag: [W/"b2b583ad-38b6-4ce6-a552-595720048443"]
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 show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\
,\r\n \"etag\": \"W/\\\"e6f52b88-74ec-484c-ae80-92d51e16c40a\\\"\",\r\n \
\ \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
\ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"a4bbfbea-2b71-42da-8680-7f64d936d6a3\"\
,\r\n \"ipAddress\": \"40.67.152.8\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['977']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:25 GMT']
etag: [W/"e6f52b88-74ec-484c-ae80-92d51e16c40a"]
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.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_lb_sku000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Thu, 24 Aug 2017 16:58:25 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTkVUV09SSzo1RkxCOjVGU0tVQ0JSTVA1RUhUS1ozWFNISHwzQTUwNDE4MDVCNkZBMjVBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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

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

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

@ -6,11 +6,11 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [f7bc077e-8785-11e7-a2fd-a0b3ccf7272a]
x-ms-client-request-id: [70ab0618-88ed-11e7-a0ce-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_public_ip?api-version=2017-05-10
response:
@ -18,7 +18,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:11 GMT']
Date: ['Thu, 24 Aug 2017 16:58:22 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -26,38 +26,37 @@ interactions:
content-length: ['226']
status: {code: 200, message: OK}
- request:
body: '{"location": "westus", "properties": {"dnsSettings": {"domainNameLabel":
"woot"}, "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Static",
"idleTimeoutInMinutes": 4}}'
body: '{"sku": {"name": "Basic"}, "properties": {"dnsSettings": {"domainNameLabel":
"woot"}, "publicIPAllocationMethod": "Static", "idleTimeoutInMinutes": 4, "publicIPAddressVersion":
"IPv4"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['181']
Content-Length: ['207']
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.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [f7fcf012-8785-11e7-aec4-a0b3ccf7272a]
x-ms-client-request-id: [70c52252-88ed-11e7-a2ce-a0b3ccf7272a]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipdns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns\"\
,\r\n \"etag\": \"W/\\\"e14ec53f-ceb0-4312-ba26-861654dd52f4\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"a9bc4c5e-b8b1-4794-8104-3bd3b28920ad\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Updating\",\r\n \"resourceGuid\": \"2e63a485-1f3c-4431-a1ca-b9eb2ed51daf\"\
: \"Updating\",\r\n \"resourceGuid\": \"78f05e86-e461-43f3-a1ed-1121d02f684c\"\
,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\
: \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\":\
\ {\r\n \"domainNameLabel\": \"woot\",\r\n \"fqdn\": \"woot.westus.cloudapp.azure.com\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/1da96404-6c6c-4a8f-a9b2-541510dca2e8?api-version=2017-08-01']
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/ac83b7f8-0f3a-4ba3-8c27-ce5d49697208?api-version=2017-08-01']
Cache-Control: [no-cache]
Content-Length: ['705']
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:12 GMT']
Date: ['Thu, 24 Aug 2017 16:58:23 GMT']
Expires: ['-1']
Pragma: [no-cache]
Retry-After: ['3']
@ -72,19 +71,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [f7fcf012-8785-11e7-aec4-a0b3ccf7272a]
x-ms-client-request-id: [70c52252-88ed-11e7-a2ce-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1da96404-6c6c-4a8f-a9b2-541510dca2e8?api-version=2017-08-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ac83b7f8-0f3a-4ba3-8c27-ce5d49697208?api-version=2017-08-01
response:
body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:15 GMT']
Date: ['Thu, 24 Aug 2017 16:58:27 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -100,19 +98,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [f7fcf012-8785-11e7-aec4-a0b3ccf7272a]
x-ms-client-request-id: [70c52252-88ed-11e7-a2ce-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipdns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns\"\
,\r\n \"etag\": \"W/\\\"792c1052-867c-49b0-890d-2fc0e30e2f82\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"88b50feb-d0cb-4391-8d35-f6beb6e22e76\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"2e63a485-1f3c-4431-a1ca-b9eb2ed51daf\"\
,\r\n \"ipAddress\": \"40.86.180.169\",\r\n \"publicIPAddressVersion\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"78f05e86-e461-43f3-a1ed-1121d02f684c\"\
,\r\n \"ipAddress\": \"13.91.59.81\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"woot\",\r\n\
\ \"fqdn\": \"woot.westus.cloudapp.azure.com\"\r\n }\r\n },\r\n \
@ -121,15 +118,15 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:16 GMT']
ETag: [W/"792c1052-867c-49b0-890d-2fc0e30e2f82"]
Date: ['Thu, 24 Aug 2017 16:58:28 GMT']
ETag: [W/"88b50feb-d0cb-4391-8d35-f6beb6e22e76"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
content-length: ['741']
content-length: ['739']
status: {code: 200, message: OK}
- request:
body: null
@ -138,11 +135,11 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fae3cb5a-8785-11e7-9894-a0b3ccf7272a]
x-ms-client-request-id: [739413fe-88ed-11e7-9b05-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_public_ip?api-version=2017-05-10
response:
@ -150,7 +147,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:16 GMT']
Date: ['Thu, 24 Aug 2017 16:58:28 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -158,42 +155,41 @@ interactions:
content-length: ['226']
status: {code: 200, message: OK}
- request:
body: '{"location": "westus", "properties": {"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4}}'
body: '{"sku": {"name": "Basic"}, "properties": {"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4, "publicIPAddressVersion": "IPv4"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['138']
Content-Length: ['164']
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.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fb03cc8c-8785-11e7-beee-a0b3ccf7272a]
x-ms-client-request-id: [73b053a2-88ed-11e7-ad28-a0b3ccf7272a]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipnodns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"2a76ae08-1c89-4bfc-bce0-24dabc288858\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"486d8c68-11c1-49e9-a823-60a309656bbc\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Updating\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
: \"Updating\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\
: \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"\
Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"\
Basic\"\r\n }\r\n}"}
headers:
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/fff257c7-7194-4702-9182-e3ce8f8dfb92?api-version=2017-08-01']
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/bc4f9ce4-6db0-46e6-9286-224d921cebab?api-version=2017-08-01']
Cache-Control: [no-cache]
Content-Length: ['598']
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:16 GMT']
Date: ['Thu, 24 Aug 2017 16:58:28 GMT']
Expires: ['-1']
Pragma: [no-cache]
Retry-After: ['3']
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: null
@ -202,19 +198,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fb03cc8c-8785-11e7-beee-a0b3ccf7272a]
x-ms-client-request-id: [73b053a2-88ed-11e7-ad28-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fff257c7-7194-4702-9182-e3ce8f8dfb92?api-version=2017-08-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bc4f9ce4-6db0-46e6-9286-224d921cebab?api-version=2017-08-01
response:
body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:20 GMT']
Date: ['Thu, 24 Aug 2017 16:58:32 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -230,18 +225,17 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fb03cc8c-8785-11e7-beee-a0b3ccf7272a]
x-ms-client-request-id: [73b053a2-88ed-11e7-ad28-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipnodns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"e4f71315-01bd-4e5d-9d4c-1eb48ee6d5f1\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"551996e5-50b5-44a5-aa27-d68eaa9a4f86\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\
: \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"\
Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"\
@ -249,8 +243,8 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:20 GMT']
ETag: [W/"e4f71315-01bd-4e5d-9d4c-1eb48ee6d5f1"]
Date: ['Thu, 24 Aug 2017 16:58:32 GMT']
ETag: [W/"551996e5-50b5-44a5-aa27-d68eaa9a4f86"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -266,18 +260,17 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fdcb4252-8785-11e7-9157-a0b3ccf7272a]
x-ms-client-request-id: [763b9514-88ed-11e7-822f-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipnodns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"e4f71315-01bd-4e5d-9d4c-1eb48ee6d5f1\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"551996e5-50b5-44a5-aa27-d68eaa9a4f86\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\
: \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"\
Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"\
@ -285,8 +278,8 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:21 GMT']
ETag: [W/"e4f71315-01bd-4e5d-9d4c-1eb48ee6d5f1"]
Date: ['Thu, 24 Aug 2017 16:58:32 GMT']
ETag: [W/"551996e5-50b5-44a5-aa27-d68eaa9a4f86"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -296,39 +289,38 @@ interactions:
content-length: ['599']
status: {code: 200, message: OK}
- request:
body: '{"etag": "W/\"e4f71315-01bd-4e5d-9d4c-1eb48ee6d5f1\"", "location": "westus",
"properties": {"dnsSettings": {"domainNameLabel": "wowza"}, "publicIPAddressVersion":
"IPv4", "publicIPAllocationMethod": "Static", "resourceGuid": "03d2e577-e3c1-45f2-9aa1-dcedd081f633",
"idleTimeoutInMinutes": 10, "provisioningState": "Succeeded"}, "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns",
"sku": {"name": "Basic"}}'
body: '{"sku": {"name": "Basic"}, "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns",
"properties": {"provisioningState": "Succeeded", "dnsSettings": {"domainNameLabel":
"wowza"}, "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Static",
"resourceGuid": "2f5c9d56-d135-47e3-b897-c4adaa198b9c", "idleTimeoutInMinutes":
10}, "location": "westus", "etag": "W/\"551996e5-50b5-44a5-aa27-d68eaa9a4f86\""}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['511']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fdfa8b5a-8785-11e7-91ee-a0b3ccf7272a]
x-ms-client-request-id: [7658e6ae-88ed-11e7-a995-a0b3ccf7272a]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipnodns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"56912d6e-d649-460e-bbd2-54da70ec15d0\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"55810dbb-d981-4a67-9f32-78fb9f3caec8\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Updating\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
: \"Updating\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\
: \"Static\",\r\n \"idleTimeoutInMinutes\": 10,\r\n \"dnsSettings\"\
: {\r\n \"domainNameLabel\": \"wowza\",\r\n \"fqdn\": \"wowza.westus.cloudapp.azure.com\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/1c552468-3a64-4679-8de0-72caff21e34b?api-version=2017-08-01']
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/75853abe-d8af-483f-85ab-a79ed87f6929?api-version=2017-08-01']
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:21 GMT']
Date: ['Thu, 24 Aug 2017 16:58:33 GMT']
Expires: ['-1']
Pragma: [no-cache]
Retry-After: ['3']
@ -337,7 +329,7 @@ interactions:
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
content-length: ['712']
x-ms-ratelimit-remaining-subscription-writes: ['1199']
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 200, message: OK}
- request:
body: null
@ -346,19 +338,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fdfa8b5a-8785-11e7-91ee-a0b3ccf7272a]
x-ms-client-request-id: [7658e6ae-88ed-11e7-a995-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1c552468-3a64-4679-8de0-72caff21e34b?api-version=2017-08-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75853abe-d8af-483f-85ab-a79ed87f6929?api-version=2017-08-01
response:
body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:25 GMT']
Date: ['Thu, 24 Aug 2017 16:58:36 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -374,19 +365,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [fdfa8b5a-8785-11e7-91ee-a0b3ccf7272a]
x-ms-client-request-id: [7658e6ae-88ed-11e7-a995-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipnodns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"2242dbe3-895a-46b3-9f2c-2ab8e12a362e\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"e530eb33-fbd8-4fa2-9ed5-00c80c68c10e\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
,\r\n \"ipAddress\": \"40.85.157.150\",\r\n \"publicIPAddressVersion\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"ipAddress\": \"13.91.63.109\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 10,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"wowza\",\r\
\n \"fqdn\": \"wowza.westus.cloudapp.azure.com\"\r\n }\r\n },\r\n\
@ -395,15 +385,15 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:25 GMT']
ETag: [W/"2242dbe3-895a-46b3-9f2c-2ab8e12a362e"]
Date: ['Thu, 24 Aug 2017 16:58:36 GMT']
ETag: [W/"e530eb33-fbd8-4fa2-9ed5-00c80c68c10e"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
content-length: ['748']
content-length: ['747']
status: {code: 200, message: OK}
- request:
body: null
@ -412,30 +402,29 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [009ce25a-8786-11e7-97b1-a0b3ccf7272a]
x-ms-client-request-id: [78a4aafe-88ed-11e7-bce5-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses?api-version=2017-08-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pubipdns\",\r\
\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns\"\
,\r\n \"etag\": \"W/\\\"792c1052-867c-49b0-890d-2fc0e30e2f82\\\"\",\r\
,\r\n \"etag\": \"W/\\\"88b50feb-d0cb-4391-8d35-f6beb6e22e76\\\"\",\r\
\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"\
provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"2e63a485-1f3c-4431-a1ca-b9eb2ed51daf\"\
,\r\n \"ipAddress\": \"40.86.180.169\",\r\n \"publicIPAddressVersion\"\
provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"78f05e86-e461-43f3-a1ed-1121d02f684c\"\
,\r\n \"ipAddress\": \"13.91.59.81\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \
\ \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \
\ \"domainNameLabel\": \"woot\",\r\n \"fqdn\": \"woot.westus.cloudapp.azure.com\"\
\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 \"name\": \"pubipnodns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"2242dbe3-895a-46b3-9f2c-2ab8e12a362e\\\"\",\r\
,\r\n \"etag\": \"W/\\\"e530eb33-fbd8-4fa2-9ed5-00c80c68c10e\\\"\",\r\
\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"\
provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
,\r\n \"ipAddress\": \"40.85.157.150\",\r\n \"publicIPAddressVersion\"\
provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"ipAddress\": \"13.91.63.109\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \
\ \"idleTimeoutInMinutes\": 10,\r\n \"dnsSettings\": {\r\n \
\ \"domainNameLabel\": \"wowza\",\r\n \"fqdn\": \"wowza.westus.cloudapp.azure.com\"\
@ -445,14 +434,14 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:26 GMT']
Date: ['Thu, 24 Aug 2017 16:58:37 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
content-length: ['1693']
content-length: ['1690']
status: {code: 200, message: OK}
- request:
body: null
@ -461,19 +450,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [00cf87c8-8786-11e7-a38f-a0b3ccf7272a]
x-ms-client-request-id: [78cf1e62-88ed-11e7-8788-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubipdns\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns\"\
,\r\n \"etag\": \"W/\\\"792c1052-867c-49b0-890d-2fc0e30e2f82\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"88b50feb-d0cb-4391-8d35-f6beb6e22e76\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"2e63a485-1f3c-4431-a1ca-b9eb2ed51daf\"\
,\r\n \"ipAddress\": \"40.86.180.169\",\r\n \"publicIPAddressVersion\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"78f05e86-e461-43f3-a1ed-1121d02f684c\"\
,\r\n \"ipAddress\": \"13.91.59.81\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"woot\",\r\n\
\ \"fqdn\": \"woot.westus.cloudapp.azure.com\"\r\n }\r\n },\r\n \
@ -482,15 +470,15 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:26 GMT']
ETag: [W/"792c1052-867c-49b0-890d-2fc0e30e2f82"]
Date: ['Thu, 24 Aug 2017 16:58:37 GMT']
ETag: [W/"88b50feb-d0cb-4391-8d35-f6beb6e22e76"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
content-length: ['741']
content-length: ['739']
status: {code: 200, message: OK}
- request:
body: null
@ -500,27 +488,26 @@ interactions:
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [0109100a-8786-11e7-8664-a0b3ccf7272a]
x-ms-client-request-id: [78f4609c-88ed-11e7-bd1f-a0b3ccf7272a]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipdns?api-version=2017-08-01
response:
body: {string: ''}
headers:
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/4e40f233-8c29-423c-b155-b130e66dc057?api-version=2017-08-01']
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operations/ad790323-90db-4fac-aa6c-cae5267b92df?api-version=2017-08-01']
Cache-Control: [no-cache]
Content-Length: ['0']
Date: ['Tue, 22 Aug 2017 22:05:27 GMT']
Date: ['Thu, 24 Aug 2017 16:58:37 GMT']
Expires: ['-1']
Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operationResults/4e40f233-8c29-423c-b155-b130e66dc057?api-version=2017-08-01']
Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/westus/operationResults/ad790323-90db-4fac-aa6c-cae5267b92df?api-version=2017-08-01']
Pragma: [no-cache]
Retry-After: ['10']
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
- request:
body: null
@ -529,19 +516,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [0109100a-8786-11e7-8664-a0b3ccf7272a]
x-ms-client-request-id: [78f4609c-88ed-11e7-bd1f-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4e40f233-8c29-423c-b155-b130e66dc057?api-version=2017-08-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ad790323-90db-4fac-aa6c-cae5267b92df?api-version=2017-08-01
response:
body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:37 GMT']
Date: ['Thu, 24 Aug 2017 16:58:47 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -557,20 +543,19 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.12
msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [080dd03a-8786-11e7-a05d-a0b3ccf7272a]
x-ms-client-request-id: [7fc66f6e-88ed-11e7-b487-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses?api-version=2017-08-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pubipnodns\"\
,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_public_ip/providers/Microsoft.Network/publicIPAddresses/pubipnodns\"\
,\r\n \"etag\": \"W/\\\"2242dbe3-895a-46b3-9f2c-2ab8e12a362e\\\"\",\r\
,\r\n \"etag\": \"W/\\\"e530eb33-fbd8-4fa2-9ed5-00c80c68c10e\\\"\",\r\
\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"\
provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"03d2e577-e3c1-45f2-9aa1-dcedd081f633\"\
,\r\n \"ipAddress\": \"40.85.157.150\",\r\n \"publicIPAddressVersion\"\
provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"2f5c9d56-d135-47e3-b897-c4adaa198b9c\"\
,\r\n \"ipAddress\": \"13.91.63.109\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \
\ \"idleTimeoutInMinutes\": 10,\r\n \"dnsSettings\": {\r\n \
\ \"domainNameLabel\": \"wowza\",\r\n \"fqdn\": \"wowza.westus.cloudapp.azure.com\"\
@ -580,13 +565,13 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Tue, 22 Aug 2017 22:05:39 GMT']
Date: ['Thu, 24 Aug 2017 16:58:48 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
content-length: ['861']
content-length: ['860']
status: {code: 200, message: OK}
version: 1

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

@ -0,0 +1,190 @@
interactions:
- request:
body: '{"tags": {"use": "az-test"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_lb_sku000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001","name":"cli_test_network_lb_sku000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:22 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: '{"properties": {"idleTimeoutInMinutes": 4, "publicIPAllocationMethod":
"Static", "publicIPAddressVersion": "IPv4"}, "location": "eastus2", "sku": {"name":
"standard"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [network public-ip create]
Connection: [keep-alive]
Content-Length: ['167']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\
,\r\n \"etag\": \"W/\\\"abac50f1-d58c-4919-ba60-18f892808eec\\\"\",\r\n \
\ \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Updating\",\r\n \"resourceGuid\": \"dc090d28-f36d-44de-8f6c-105088cf7555\"\
,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\
: \"Static\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"\
Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"\
Standard\"\r\n }\r\n}"}
headers:
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/1f5bb852-cd0e-4652-9cbe-f1e2839d8060?api-version=2017-08-01']
cache-control: [no-cache]
content-length: ['644']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:24 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [network public-ip create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/1f5bb852-cd0e-4652-9cbe-f1e2839d8060?api-version=2017-08-01
response:
body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['29']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:27 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [network public-ip create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\
,\r\n \"etag\": \"W/\\\"6f8211e1-149e-437f-9ca4-358807e02b15\\\"\",\r\n \
\ \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"dc090d28-f36d-44de-8f6c-105088cf7555\"\
,\r\n \"ipAddress\": \"40.67.152.9\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"\
sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['678']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:28 GMT']
etag: [W/"6f8211e1-149e-437f-9ca4-358807e02b15"]
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 show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"pubip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_network_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1\"\
,\r\n \"etag\": \"W/\\\"6f8211e1-149e-437f-9ca4-358807e02b15\\\"\",\r\n \
\ \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"resourceGuid\": \"dc090d28-f36d-44de-8f6c-105088cf7555\"\
,\r\n \"ipAddress\": \"40.67.152.9\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"\
sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['678']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 16:58:28 GMT']
etag: [W/"6f8211e1-149e-437f-9ca4-358807e02b15"]
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.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_network_lb_sku000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Thu, 24 Aug 2017 16:58:28 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTkVUV09SSzo1RkxCOjVGU0tVV0JJQlZMRk9YUjMzNVVVS3wwNjM0REM3QjIyQ0JENjE5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
version: 1

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

@ -20,6 +20,50 @@ from azure.cli.testsdk.vcr_test_base import (VCRTestBase, ResourceGroupVCRTestBa
TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
@api_version_constraint(ResourceType.MGMT_NETWORK, min_api='2017-08-01')
class NetworkLoadBalancerWithSku(ScenarioTest):
@ResourceGroupPreparer(name_prefix='cli_test_network_lb_sku')
def test_network_lb_sku(self, resource_group):
kwargs = {
'rg': resource_group,
'lb': 'lb1',
'sku': 'standard',
'location': 'eastus2',
'ip': 'pubip1'
}
self.cmd('network lb create -g {rg} -l {location} -n {lb} --sku {sku} --public-ip-address {ip}'.format(**kwargs))
self.cmd('network lb show -g {rg} -n {lb}'.format(**kwargs), checks=[
JMESPathCheckV2('sku.name', 'Standard')
])
self.cmd('network public-ip show -g {rg} -n {ip}'.format(**kwargs), checks=[
JMESPathCheckV2('sku.name', 'Standard'),
JMESPathCheckV2('publicIpAllocationMethod', 'Static')
])
@api_version_constraint(ResourceType.MGMT_NETWORK, min_api='2017-08-01')
class NetworkPublicIpWithSku(ScenarioTest):
@ResourceGroupPreparer(name_prefix='cli_test_network_lb_sku')
def test_network_public_ip_sku(self, resource_group):
kwargs = {
'rg': resource_group,
'sku': 'standard',
'location': 'eastus2',
'ip': 'pubip1'
}
self.cmd('network public-ip create -g {rg} -l {location} -n {ip} --sku {sku}'.format(**kwargs))
self.cmd('network public-ip show -g {rg} -n {ip}'.format(**kwargs), checks=[
JMESPathCheckV2('sku.name', 'Standard'),
JMESPathCheckV2('publicIpAllocationMethod', 'Static')
])
class NetworkMultiIdsShowScenarioTest(ResourceGroupVCRTestBase):
def __init__(self, test_method):
super(NetworkMultiIdsShowScenarioTest, self).__init__(__file__, test_method, resource_group='test_multi_id')

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

@ -4,6 +4,7 @@ Release History
===============
unreleased
+++++++++++++++++++
* `vmss create`: Added support for `--lb-sku`
* `vm/vmss create`: remove human names from the admin name blacklist
* `vm/vmss create`: fix issue where the command would throw an error if unable to extract plan information from an image.
* `vmss create`: fix a crash when create a scaleset with an internal LB

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

@ -276,6 +276,8 @@ register_cli_argument('vmss create', 'disable_overprovision', help='Overprovisio
register_cli_argument('vmss create', 'upgrade_policy_mode', help=None, **enum_choice_list(UpgradeMode))
register_cli_argument('vmss create', 'vm_sku', help='Size of VMs in the scale set. See https://azure.microsoft.com/en-us/pricing/details/virtual-machines/ for size info.')
register_cli_argument('vmss create', 'nsg', help='reference to an existing Network Security Group by ID, or name if in the same resource group', arg_group='Network')
with VersionConstraint(ResourceType.MGMT_NETWORK, min_api='2017-08-01') as c:
c.register_cli_argument('vmss create', 'load_balancer_sku', help='SKU when creating a new Load Balancer.', arg_group='Network Balancer', options_list=['--lb-sku'], default='Basic') # **model_choice_list(ResourceType.MGMT_NETWORK, 'LoadBalancerSkuName'))
with VersionConstraint(ResourceType.MGMT_COMPUTE, min_api='2017-03-30') as c:
c.register_cli_argument('vmss create', 'public_ip_per_vm', action='store_true', help="Each VM instance will have a public ip. For security, you can use '--nsg' to apply appropriate rules", arg_group='Network')

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

@ -128,15 +128,14 @@ def build_storage_account_resource(name, location, tags, sku):
return storage_account
def build_public_ip_resource(name, location, tags, address_allocation, dns_name=None):
def build_public_ip_resource(name, location, tags, address_allocation, dns_name, sku):
public_ip_properties = {'publicIPAllocationMethod': address_allocation}
if dns_name:
public_ip_properties['dnsSettings'] = {'domainNameLabel': dns_name}
public_ip = {
'apiVersion': '2015-06-15',
'apiVersion': get_api_version(ResourceType.MGMT_NETWORK),
'type': 'Microsoft.Network/publicIPAddresses',
'name': name,
'location': location,
@ -144,6 +143,8 @@ def build_public_ip_resource(name, location, tags, address_allocation, dns_name=
'dependsOn': [],
'properties': public_ip_properties
}
if sku and supported_api_version(ResourceType.MGMT_NETWORK, min_api='2017-08-01'):
public_ip['sku'] = {'name': sku}
return public_ip
@ -602,7 +603,7 @@ def build_application_gateway_resource(name, location, tags, backend_pool_name,
def build_load_balancer_resource(name, location, tags, backend_pool_name, nat_pool_name,
backend_port, frontend_ip_name, public_ip_id, subnet_id,
private_ip_address, private_ip_allocation):
private_ip_address, private_ip_allocation, sku):
lb_id = "resourceId('Microsoft.Network/loadBalancers', '{}')".format(name)
frontend_ip_config = _build_frontend_ip_config(frontend_ip_name, public_ip_id,
@ -632,16 +633,17 @@ def build_load_balancer_resource(name, location, tags, backend_pool_name, nat_po
],
'frontendIPConfigurations': [frontend_ip_config]
}
lb = {
'type': 'Microsoft.Network/loadBalancers',
'name': name,
'location': location,
'tags': tags,
'apiVersion': '2015-06-15',
'apiVersion': get_api_version(ResourceType.MGMT_NETWORK),
'dependsOn': [],
'properties': lb_properties
}
if sku and supported_api_version(ResourceType.MGMT_NETWORK, min_api='2017-08-01'):
lb['sku'] = {'name': sku}
return lb

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

@ -1628,7 +1628,8 @@ def create_vm(vm_name, resource_group_name, image=None, size='Standard_DS1_v2',
master_template.add_resource(build_public_ip_resource(public_ip_address, location,
tags,
public_ip_address_allocation,
public_ip_address_dns_name))
public_ip_address_dns_name,
None))
subnet_id = subnet if is_valid_resource_id(subnet) else \
'{}/virtualNetworks/{}/subnets/{}'.format(network_id_template, vnet_name, subnet)
@ -1737,11 +1738,11 @@ def create_vmss(vmss_name, resource_group_name, image,
admin_username=DefaultStr(getpass.getuser()), admin_password=None, authentication_type=None,
vm_sku="Standard_D1_v2", no_wait=False,
ssh_dest_key_path=None, ssh_key_value=None, generate_ssh_keys=False,
load_balancer=None, application_gateway=None,
load_balancer=None, load_balancer_sku=None, application_gateway=None,
app_gateway_subnet_address_prefix=None,
app_gateway_sku=DefaultStr('Standard_Large'), app_gateway_capacity=DefaultInt(10),
backend_pool_name=None, nat_pool_name=None, backend_port=None,
public_ip_address=None, public_ip_address_allocation='dynamic',
public_ip_address=None, public_ip_address_allocation=None,
public_ip_address_dns_name=None,
public_ip_per_vm=False, vm_domain_name=None, dns_servers=None, nsg=None,
os_caching=DefaultStr(CachingTypes.read_write.value), data_caching=None,
@ -1822,6 +1823,13 @@ def create_vmss(vmss_name, resource_group_name, image,
else '{}/publicIPAddresses/{}'.format(network_id_template,
public_ip_address))
def _get_public_ip_address_allocation(value, sku):
IPAllocationMethod = get_sdk(ResourceType.MGMT_NETWORK, 'IPAllocationMethod', mod='models')
if not value:
value = IPAllocationMethod.static.value if (sku and sku.lower() == 'standard') \
else IPAllocationMethod.dynamic.value
return value
# Handle load balancer creation
if load_balancer_type == 'new':
vmss_dependencies.append('Microsoft.Network/loadBalancers/{}'.format(load_balancer))
@ -1831,10 +1839,10 @@ def create_vmss(vmss_name, resource_group_name, image,
public_ip_address = public_ip_address or '{}PublicIP'.format(load_balancer)
lb_dependencies.append(
'Microsoft.Network/publicIpAddresses/{}'.format(public_ip_address))
master_template.add_resource(build_public_ip_resource(public_ip_address, location,
tags,
public_ip_address_allocation,
public_ip_address_dns_name))
master_template.add_resource(build_public_ip_resource(
public_ip_address, location, tags,
_get_public_ip_address_allocation(public_ip_address_allocation, load_balancer_sku),
public_ip_address_dns_name, load_balancer_sku))
public_ip_address_id = '{}/publicIPAddresses/{}'.format(network_id_template,
public_ip_address)
@ -1846,7 +1854,7 @@ def create_vmss(vmss_name, resource_group_name, image,
lb_resource = build_load_balancer_resource(
load_balancer, location, tags, backend_pool_name, nat_pool_name, backend_port,
'loadBalancerFrontEnd', public_ip_address_id, subnet_id,
private_ip_address='', private_ip_allocation='Dynamic')
private_ip_address='', private_ip_allocation='Dynamic', sku=load_balancer_sku)
lb_resource['dependsOn'] = lb_dependencies
master_template.add_resource(lb_resource)
@ -1860,10 +1868,10 @@ def create_vmss(vmss_name, resource_group_name, image,
public_ip_address = public_ip_address or '{}PublicIP'.format(app_gateway)
ag_dependencies.append(
'Microsoft.Network/publicIpAddresses/{}'.format(public_ip_address))
master_template.add_resource(build_public_ip_resource(public_ip_address, location,
tags,
public_ip_address_allocation,
public_ip_address_dns_name))
master_template.add_resource(build_public_ip_resource(
public_ip_address, location, tags,
_get_public_ip_address_allocation(public_ip_address_allocation, None), public_ip_address_dns_name,
None))
public_ip_address_id = '{}/publicIPAddresses/{}'.format(network_id_template,
public_ip_address)

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

@ -9,7 +9,7 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 subscriptionclient/1.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5c4f1c0a-8847-11e7-bb87-a0b3ccf7272a]
x-ms-client-request-id: [fb2f5402-88f4-11e7-bc42-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01
response:
@ -43,7 +43,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:32 GMT']
Date: ['Thu, 24 Aug 2017 17:52:22 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -102,22 +102,22 @@ interactions:
Content-Length: ['2235']
Content-Security-Policy: [default-src 'none'; style-src 'unsafe-inline']
Content-Type: [text/plain; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:34 GMT']
Date: ['Thu, 24 Aug 2017 17:52:22 GMT']
ETag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
Expires: ['Wed, 23 Aug 2017 21:14:34 GMT']
Source-Age: ['153']
Expires: ['Thu, 24 Aug 2017 17:57:22 GMT']
Source-Age: ['34']
Strict-Transport-Security: [max-age=31536000]
Vary: ['Authorization,Accept-Encoding']
Via: [1.1 varnish]
X-Cache: [HIT]
X-Cache-Hits: ['2']
X-Cache-Hits: ['1']
X-Content-Type-Options: [nosniff]
X-Fastly-Request-ID: [5bb40dfff0b8e67a81276079d3db150ca6bbe636]
X-Fastly-Request-ID: [298017edaa2931f70b10af91ab036306b090d032]
X-Frame-Options: [deny]
X-Geo-Block-List: ['']
X-GitHub-Request-Id: ['3FEC:1E3AD:541D0:5AE72:599DEE74']
X-Served-By: [cache-sea1038-SEA]
X-Timer: ['S1503522575.508226,VS0,VE0']
X-GitHub-Request-Id: ['8CA0:1E3AE:2EA6F7:3221AE:599F1233']
X-Served-By: [cache-sea1036-SEA]
X-Timer: ['S1503597143.834403,VS0,VE0']
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@ -131,7 +131,7 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5d3b3a4c-8847-11e7-8edd-a0b3ccf7272a]
x-ms-client-request-id: [fb605828-88f4-11e7-bfb3-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network?api-version=2017-05-10
response:
@ -253,7 +253,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:35 GMT']
Date: ['Thu, 24 Aug 2017 17:52:22 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -271,28 +271,28 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5dc85262-8847-11e7-af0e-a0b3ccf7272a]
x-ms-client-request-id: [fb886d92-88f4-11e7-b1f9-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrfvnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet\"\
,\r\n \"etag\": \"W/\\\"097948b1-7abd-44d7-99c1-30b8b702da41\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"b764efa2-4188-45ee-b61d-4692cd938456\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"eabb18ec-d129-4fa4-856d-0d113c956079\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"59dcf241-248f-41e0-b17f-669ff70fca38\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\
10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\
: []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vrfsubnet\"\
,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet\"\
,\r\n \"etag\": \"W/\\\"097948b1-7abd-44d7-99c1-30b8b702da41\\\"\"\
,\r\n \"etag\": \"W/\\\"b764efa2-4188-45ee-b61d-4692cd938456\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"addressPrefix\": \"10.0.0.0/24\"\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": []\r\n }\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:36 GMT']
ETag: [W/"097948b1-7abd-44d7-99c1-30b8b702da41"]
Date: ['Thu, 24 Aug 2017 17:52:22 GMT']
ETag: [W/"b764efa2-4188-45ee-b61d-4692cd938456"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -312,7 +312,7 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5e3d3698-8847-11e7-b0aa-a0b3ccf7272a]
x-ms-client-request-id: [fbb4061e-88f4-11e7-97b0-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network?api-version=2017-05-10
response:
@ -434,7 +434,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:36 GMT']
Date: ['Thu, 24 Aug 2017 17:52:23 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -452,24 +452,24 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5ece342e-8847-11e7-affa-a0b3ccf7272a]
x-ms-client-request-id: [fbecd40c-88f4-11e7-969b-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrflb\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb\"\
,\r\n \"etag\": \"W/\\\"2d07f549-e8ec-4653-99db-8012aeb89168\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"61e07ddf-48b4-4145-942b-c2f66a5d7aeb\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"50eb7fbe-ab4f-4875-aed7-f8d0824cb9d5\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"cfb71e52-ee15-46d6-92ca-03986e4fcb32\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"2d07f549-e8ec-4653-99db-8012aeb89168\\\"\"\
,\r\n \"etag\": \"W/\\\"61e07ddf-48b4-4145-942b-c2f66a5d7aeb\\\"\"\
,\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_create_existing_ids_options/providers/Microsoft.Network/publicIPAddresses/PublicIPvrflb\"\
\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\"\
: [\r\n {\r\n \"name\": \"mybepool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool\"\
,\r\n \"etag\": \"W/\\\"2d07f549-e8ec-4653-99db-8012aeb89168\\\"\"\
,\r\n \"etag\": \"W/\\\"61e07ddf-48b4-4145-942b-c2f66a5d7aeb\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": [],\r\n\
\ \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"outboundNatRules\"\
@ -478,8 +478,8 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:37 GMT']
ETag: [W/"2d07f549-e8ec-4653-99db-8012aeb89168"]
Date: ['Thu, 24 Aug 2017 17:52:23 GMT']
ETag: [W/"61e07ddf-48b4-4145-942b-c2f66a5d7aeb"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -489,36 +489,35 @@ interactions:
content-length: ['1842']
status: {code: 200, message: OK}
- request:
body: '{"properties": {"template": {"variables": {"storageAccountNames": ["vrfvm0a080",
"vrfvm0a081", "vrfvm0a082", "vrfvm0a083", "vrfvm0a084"], "vhdContainers": ["[concat(''https://'',
variables(''storageAccountNames'')[0], ''.blob.core.windows.net/vrfcontainer'')]",
body: '{"properties": {"parameters": {}, "template": {"variables": {"vhdContainers":
["[concat(''https://'', variables(''storageAccountNames'')[0], ''.blob.core.windows.net/vrfcontainer'')]",
"[concat(''https://'', variables(''storageAccountNames'')[1], ''.blob.core.windows.net/vrfcontainer'')]",
"[concat(''https://'', variables(''storageAccountNames'')[2], ''.blob.core.windows.net/vrfcontainer'')]",
"[concat(''https://'', variables(''storageAccountNames'')[3], ''.blob.core.windows.net/vrfcontainer'')]",
"[concat(''https://'', variables(''storageAccountNames'')[4], ''.blob.core.windows.net/vrfcontainer'')]"]},
"resources": [{"location": "westus", "copy": {"count": 5, "name": "storageLoop"},
"type": "Microsoft.Storage/storageAccounts", "tags": {}, "apiVersion": "2015-06-15",
"name": "[variables(''storageAccountNames'')[copyIndex()]]", "properties": {"accountType":
"Standard_LRS"}}, {"location": "westus", "type": "Microsoft.Compute/virtualMachineScaleSets",
"tags": {}, "dependsOn": ["storageLoop"], "sku": {"capacity": 2, "tier": "Standard",
"name": "Standard_A3"}, "apiVersion": "2017-03-30", "name": "vrfvmss", "properties":
{"upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile": {"storageProfile":
{"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "name": "vrfosdisk",
"vhdContainers": "[variables(''vhdContainers'')]"}, "imageReference": {"offer":
"CentOS", "sku": "7.3", "version": "latest", "publisher": "OpenLogic"}}, "networkProfile":
{"networkInterfaceConfigurations": [{"name": "vrfvm0a08Nic", "properties": {"primary":
"true", "ipConfigurations": [{"name": "vrfvm0a08IPConfig", "properties": {"subnet":
{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"},
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}]}}]}}]},
"osProfile": {"linuxConfiguration": {"ssh": {"publicKeys": [{"path": "/home/ubuntu/.ssh/authorized_keys",
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==
test@example.com\n"}]}, "disablePasswordAuthentication": true}, "computerNamePrefix":
"vrfvm0a08", "adminUsername": "ubuntu"}}, "overprovision": true, "singlePlacementGroup":
true}}], "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0", "parameters": {}, "outputs": {"VMSS": {"value":
"[concat(''https://'', variables(''storageAccountNames'')[4], ''.blob.core.windows.net/vrfcontainer'')]"],
"storageAccountNames": ["vrfvm70390", "vrfvm70391", "vrfvm70392", "vrfvm70393",
"vrfvm70394"]}, "contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"parameters": {}, "resources": [{"type": "Microsoft.Storage/storageAccounts",
"location": "westus", "name": "[variables(''storageAccountNames'')[copyIndex()]]",
"copy": {"count": 5, "name": "storageLoop"}, "properties": {"accountType": "Standard_LRS"},
"tags": {}, "apiVersion": "2015-06-15"}, {"type": "Microsoft.Compute/virtualMachineScaleSets",
"location": "westus", "sku": {"capacity": 2, "tier": "Standard", "name": "Standard_A3"},
"name": "vrfvmss", "properties": {"singlePlacementGroup": true, "upgradePolicy":
{"mode": "Manual"}, "virtualMachineProfile": {"networkProfile": {"networkInterfaceConfigurations":
[{"properties": {"primary": "true", "ipConfigurations": [{"properties": {"loadBalancerBackendAddressPools":
[{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}],
"subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"}},
"name": "vrfvm7039IPConfig"}]}, "name": "vrfvm7039Nic"}]}, "storageProfile":
{"osDisk": {"vhdContainers": "[variables(''vhdContainers'')]", "caching": "ReadWrite",
"createOption": "FromImage", "name": "vrfosdisk"}, "imageReference": {"offer":
"CentOS", "publisher": "OpenLogic", "version": "latest", "sku": "7.3"}}, "osProfile":
{"adminUsername": "ubuntu", "linuxConfiguration": {"disablePasswordAuthentication":
true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==
test@example.com\n", "path": "/home/ubuntu/.ssh/authorized_keys"}]}}, "computerNamePrefix":
"vrfvm7039"}}, "overprovision": true}, "dependsOn": ["storageLoop"], "tags":
{}, "apiVersion": "2017-03-30"}], "outputs": {"VMSS": {"type": "object", "value":
"[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', ''vrfvmss''),providers(''Microsoft.Compute'',
''virtualMachineScaleSets'').apiVersions[0])]", "type": "object"}}}, "mode":
"Incremental", "parameters": {}}}'
''virtualMachineScaleSets'').apiVersions[0])]"}}}, "mode": "Incremental"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
@ -529,17 +528,17 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
x-ms-client-request-id: [fc12d9c0-88f4-11e7-b22b-a0b3ccf7272a]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/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_create_existing_ids_options/providers/Microsoft.Resources/deployments/vmss_deploy_WG0plkDwVe551qJyBBfuXjWDOrqyeEao","name":"vmss_deploy_WG0plkDwVe551qJyBBfuXjWDOrqyeEao","properties":{"templateHash":"761033100132607871","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-23T21:09:38.4996077Z","duration":"PT0.2444912S","correlationId":"8d5d1778-f336-4289-9d39-15fa7f5b3552","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a080","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a080"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a081","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a081"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a082","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a082"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a083","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a083"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a084","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a084"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}]}}'}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/vmss_deploy_ogl1scll8FE96BJPrqmasG0o06QCglyo","name":"vmss_deploy_ogl1scll8FE96BJPrqmasG0o06QCglyo","properties":{"templateHash":"3035510573217705009","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-24T17:52:24.9519334Z","duration":"PT0.168925S","correlationId":"b381a264-d130-48e6-80b3-b14a7be11993","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70390","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70390"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70391","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70392","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70392"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70393","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70393"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70394","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70394"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}]}}'}
headers:
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/vmss_deploy_WG0plkDwVe551qJyBBfuXjWDOrqyeEao/operationStatuses/08586980843072225171?api-version=2017-05-10']
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/vmss_deploy_ogl1scll8FE96BJPrqmasG0o06QCglyo/operationStatuses/08586980097406946198?api-version=2017-05-10']
Cache-Control: [no-cache]
Content-Length: ['2338']
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:09:38 GMT']
Date: ['Thu, 24 Aug 2017 17:52:24 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -556,15 +555,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
x-ms-client-request-id: [fc12d9c0-88f4-11e7-b22b-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097406946198?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:10 GMT']
Date: ['Thu, 24 Aug 2017 17:52:54 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -582,15 +581,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
x-ms-client-request-id: [fc12d9c0-88f4-11e7-b22b-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097406946198?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:40 GMT']
Date: ['Thu, 24 Aug 2017 17:53:25 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -608,15 +607,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
x-ms-client-request-id: [fc12d9c0-88f4-11e7-b22b-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097406946198?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:11:11 GMT']
Date: ['Thu, 24 Aug 2017 17:53:55 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -634,93 +633,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
x-ms-client-request-id: [fc12d9c0-88f4-11e7-b22b-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:11:41 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Vary: [Accept-Encoding]
content-length: ['20']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:12 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Vary: [Accept-Encoding]
content-length: ['20']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:42 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Vary: [Accept-Encoding]
content-length: ['20']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980843072225171?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097406946198?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:13:13 GMT']
Date: ['Thu, 24 Aug 2017 17:54:26 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -738,22 +659,22 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [5efb3fb6-8847-11e7-a455-a0b3ccf7272a]
x-ms-client-request-id: [fc12d9c0-88f4-11e7-b22b-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_ids_options/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_create_existing_ids_options/providers/Microsoft.Resources/deployments/vmss_deploy_WG0plkDwVe551qJyBBfuXjWDOrqyeEao","name":"vmss_deploy_WG0plkDwVe551qJyBBfuXjWDOrqyeEao","properties":{"templateHash":"761033100132607871","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-23T21:13:11.0267059Z","duration":"PT3M32.7715894S","correlationId":"8d5d1778-f336-4289-9d39-15fa7f5b3552","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a080","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a080"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a081","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a081"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a082","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a082"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a083","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a083"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a084","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm0a084"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vrfvm0a08","adminUsername":"ubuntu","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/ubuntu/.ssh/authorized_keys","keyData":"ssh-rsa
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Resources/deployments/vmss_deploy_ogl1scll8FE96BJPrqmasG0o06QCglyo","name":"vmss_deploy_ogl1scll8FE96BJPrqmasG0o06QCglyo","properties":{"templateHash":"3035510573217705009","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-24T17:54:20.2453887Z","duration":"PT1M55.4623803S","correlationId":"b381a264-d130-48e6-80b3-b14a7be11993","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70390","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70390"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70391","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70392","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70392"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70393","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70393"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70394","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvm70394"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vrfvm7039","adminUsername":"ubuntu","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/ubuntu/.ssh/authorized_keys","keyData":"ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==
test@example.com\n"}]}},"secrets":[]},"storageProfile":{"osDisk":{"vhdContainers":["https://vrfvm0a080.blob.core.windows.net/vrfcontainer","https://vrfvm0a081.blob.core.windows.net/vrfcontainer","https://vrfvm0a082.blob.core.windows.net/vrfcontainer","https://vrfvm0a083.blob.core.windows.net/vrfcontainer","https://vrfvm0a084.blob.core.windows.net/vrfcontainer"],"name":"vrfosdisk","createOption":"FromImage","caching":"ReadWrite"},"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.3","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vrfvm0a08Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vrfvm0a08IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"c083e69d-85dd-440c-8628-6db01eed3ea0"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a080"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a081"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a082"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a083"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm0a084"}]}}'}
test@example.com\n"}]}},"secrets":[]},"storageProfile":{"osDisk":{"vhdContainers":["https://vrfvm70390.blob.core.windows.net/vrfcontainer","https://vrfvm70391.blob.core.windows.net/vrfcontainer","https://vrfvm70392.blob.core.windows.net/vrfcontainer","https://vrfvm70393.blob.core.windows.net/vrfcontainer","https://vrfvm70394.blob.core.windows.net/vrfcontainer"],"name":"vrfosdisk","createOption":"FromImage","caching":"ReadWrite"},"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.3","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vrfvm7039Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vrfvm7039IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"f5594f31-ee5f-4f87-a9ba-63a645c9e61a"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70390"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70392"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70393"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Storage/storageAccounts/vrfvm70394"}]}}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:13:13 GMT']
Date: ['Thu, 24 Aug 2017 17:54:26 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Vary: [Accept-Encoding]
content-length: ['5849']
content-length: ['5850']
status: {code: 200, message: OK}
- request:
body: null
@ -765,7 +686,7 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 computemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [e01d5412-8847-11e7-a186-a0b3ccf7272a]
x-ms-client-request-id: [45851e94-88f5-11e7-9cd4-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss?api-version=2017-03-30
response:
@ -773,7 +694,7 @@ interactions:
tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\":\
\ {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
\ \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\
\n \"osProfile\": {\r\n \"computerNamePrefix\": \"vrfvm0a08\"\
\n \"osProfile\": {\r\n \"computerNamePrefix\": \"vrfvm7039\"\
,\r\n \"adminUsername\": \"ubuntu\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": true,\r\n \"\
ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \
@ -782,31 +703,31 @@ interactions:
\ test@example.com\\n\"\r\n }\r\n ]\r\n }\r\
\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
: {\r\n \"osDisk\": {\r\n \"vhdContainers\": [\r\n \
\ \"https://vrfvm0a080.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvm0a081.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvm0a082.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvm0a083.blob.core.windows.net/vrfcontainer\",\r\n\
\ \"https://vrfvm0a084.blob.core.windows.net/vrfcontainer\"\r\n\
\ \"https://vrfvm70390.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvm70391.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvm70392.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvm70393.blob.core.windows.net/vrfcontainer\",\r\n\
\ \"https://vrfvm70394.blob.core.windows.net/vrfcontainer\"\r\n\
\ ],\r\n \"name\": \"vrfosdisk\",\r\n \"createOption\"\
: \"FromImage\",\r\n \"caching\": \"ReadWrite\"\r\n },\r\n\
\ \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\
\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.3\",\r\n \
\ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\"\
: {\"networkInterfaceConfigurations\":[{\"name\":\"vrfvm0a08Nic\",\"properties\"\
: {\"networkInterfaceConfigurations\":[{\"name\":\"vrfvm7039Nic\",\"properties\"\
:{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"\
dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"vrfvm0a08IPConfig\",\"\
dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"vrfvm7039IPConfig\",\"\
properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet\"\
},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
:[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool\"\
}]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
overprovision\": true,\r\n \"uniqueId\": \"c083e69d-85dd-440c-8628-6db01eed3ea0\"\
overprovision\": true,\r\n \"uniqueId\": \"f5594f31-ee5f-4f87-a9ba-63a645c9e61a\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss\"\
,\r\n \"name\": \"vrfvmss\"\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:13:13 GMT']
Date: ['Thu, 24 Aug 2017 17:54:27 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -825,30 +746,30 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [e049131e-8847-11e7-a003-a0b3ccf7272a]
x-ms-client-request-id: [45b309ba-88f5-11e7-8ada-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrflb\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb\"\
,\r\n \"etag\": \"W/\\\"2188984e-8587-4770-8a81-a3403ea53c87\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"86aecfe4-3d77-44ac-9109-343fd681def2\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"50eb7fbe-ab4f-4875-aed7-f8d0824cb9d5\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"cfb71e52-ee15-46d6-92ca-03986e4fcb32\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"2188984e-8587-4770-8a81-a3403ea53c87\\\"\"\
,\r\n \"etag\": \"W/\\\"86aecfe4-3d77-44ac-9109-343fd681def2\\\"\"\
,\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_create_existing_ids_options/providers/Microsoft.Network/publicIPAddresses/PublicIPvrflb\"\
\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\"\
: [\r\n {\r\n \"name\": \"mybepool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool\"\
,\r\n \"etag\": \"W/\\\"2188984e-8587-4770-8a81-a3403ea53c87\\\"\"\
,\r\n \"etag\": \"W/\\\"86aecfe4-3d77-44ac-9109-343fd681def2\\\"\"\
,\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_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
\ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\"\
: [],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n\
@ -856,8 +777,8 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:13:14 GMT']
ETag: [W/"2188984e-8587-4770-8a81-a3403ea53c87"]
Date: ['Thu, 24 Aug 2017 17:54:27 GMT']
ETag: [W/"86aecfe4-3d77-44ac-9109-343fd681def2"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -876,33 +797,33 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [e07f79a2-8847-11e7-8a74-a0b3ccf7272a]
x-ms-client-request-id: [45d3bbfe-88f5-11e7-b335-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrfvnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet\"\
,\r\n \"etag\": \"W/\\\"0a55a003-c11d-45a5-9a71-2cc81b599ed9\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"a5b52f35-d7fd-4c24-96f3-df49fcab9c83\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"eabb18ec-d129-4fa4-856d-0d113c956079\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"59dcf241-248f-41e0-b17f-669ff70fca38\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\
10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\
: []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vrfsubnet\"\
,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet\"\
,\r\n \"etag\": \"W/\\\"0a55a003-c11d-45a5-9a71-2cc81b599ed9\\\"\"\
,\r\n \"etag\": \"W/\\\"a5b52f35-d7fd-4c24-96f3-df49fcab9c83\\\"\"\
,\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_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvm0a08Nic/ipConfigurations/vrfvm0a08IPConfig\"\
: [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_ids_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvm7039Nic/ipConfigurations/vrfvm7039IPConfig\"\
\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
\ \"virtualNetworkPeerings\": []\r\n }\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:13:14 GMT']
ETag: [W/"0a55a003-c11d-45a5-9a71-2cc81b599ed9"]
Date: ['Thu, 24 Aug 2017 17:54:27 GMT']
ETag: [W/"a5b52f35-d7fd-4c24-96f3-df49fcab9c83"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]

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

@ -9,7 +9,7 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 subscriptionclient/1.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6d76ad36-8847-11e7-a09e-a0b3ccf7272a]
x-ms-client-request-id: [fc318b10-88f4-11e7-bc82-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01
response:
@ -43,7 +43,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:02 GMT']
Date: ['Thu, 24 Aug 2017 17:52:23 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -102,22 +102,22 @@ interactions:
Content-Length: ['2235']
Content-Security-Policy: [default-src 'none'; style-src 'unsafe-inline']
Content-Type: [text/plain; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:03 GMT']
Date: ['Thu, 24 Aug 2017 17:52:24 GMT']
ETag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
Expires: ['Wed, 23 Aug 2017 21:15:03 GMT']
Source-Age: ['182']
Expires: ['Thu, 24 Aug 2017 17:57:24 GMT']
Source-Age: ['36']
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: [9c635e591de986889669e7a4bce19857e1a76ef7]
X-Fastly-Request-ID: [23443981c690a90c0eb7ff44feca4d3d008d38e3]
X-Frame-Options: [deny]
X-Geo-Block-List: ['']
X-GitHub-Request-Id: ['3FEC:1E3AD:541D0:5AE72:599DEE74']
X-Served-By: [cache-sea1047-SEA]
X-Timer: ['S1503522603.036941,VS0,VE0']
X-GitHub-Request-Id: ['8CA0:1E3AE:2EA6F7:3221AE:599F1233']
X-Served-By: [cache-sea1026-SEA]
X-Timer: ['S1503597145.545176,VS0,VE0']
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@ -131,7 +131,7 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6e26bbf0-8847-11e7-94a3-a0b3ccf7272a]
x-ms-client-request-id: [fc661270-88f4-11e7-b7e9-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network?api-version=2017-05-10
response:
@ -253,7 +253,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:02 GMT']
Date: ['Thu, 24 Aug 2017 17:52:24 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -271,19 +271,19 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6e5f9cac-8847-11e7-85ee-a0b3ccf7272a]
x-ms-client-request-id: [fc8e3b80-88f4-11e7-842d-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrfsubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet\"\
,\r\n \"etag\": \"W/\\\"02edc980-5d57-4e51-970d-70923e15efc2\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"f8c5715f-ef0c-482a-8196-0082e986e758\\\"\",\r\n \
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
addressPrefix\": \"10.0.0.0/24\"\r\n }\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:03 GMT']
ETag: [W/"02edc980-5d57-4e51-970d-70923e15efc2"]
Date: ['Thu, 24 Aug 2017 17:52:24 GMT']
ETag: [W/"f8c5715f-ef0c-482a-8196-0082e986e758"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -303,7 +303,7 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6ea27dae-8847-11e7-9a17-a0b3ccf7272a]
x-ms-client-request-id: [fcbaf918-88f4-11e7-bacc-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network?api-version=2017-05-10
response:
@ -425,7 +425,7 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:03 GMT']
Date: ['Thu, 24 Aug 2017 17:52:24 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -443,24 +443,24 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f11cdd8-8847-11e7-8b82-a0b3ccf7272a]
x-ms-client-request-id: [fce2d3ee-88f4-11e7-9abd-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrflb\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb\"\
,\r\n \"etag\": \"W/\\\"3db7781e-4364-47a6-a6ae-a4d6f1949bcc\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"44c04920-296c-4760-a114-355cda248093\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"766f3348-de84-4e25-b65e-b7da4b7fade6\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"2bbe143e-900d-4466-9a64-0bfaa7a1e60d\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"3db7781e-4364-47a6-a6ae-a4d6f1949bcc\\\"\"\
,\r\n \"etag\": \"W/\\\"44c04920-296c-4760-a114-355cda248093\\\"\"\
,\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_create_existing_options/providers/Microsoft.Network/publicIPAddresses/PublicIPvrflb\"\
\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\"\
: [\r\n {\r\n \"name\": \"mybepool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool\"\
,\r\n \"etag\": \"W/\\\"3db7781e-4364-47a6-a6ae-a4d6f1949bcc\\\"\"\
,\r\n \"etag\": \"W/\\\"44c04920-296c-4760-a114-355cda248093\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": [],\r\n\
\ \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"outboundNatRules\"\
@ -469,8 +469,8 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:04 GMT']
ETag: [W/"3db7781e-4364-47a6-a6ae-a4d6f1949bcc"]
Date: ['Thu, 24 Aug 2017 17:52:25 GMT']
ETag: [W/"44c04920-296c-4760-a114-355cda248093"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -480,36 +480,35 @@ interactions:
content-length: ['1826']
status: {code: 200, message: OK}
- request:
body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"parameters": {}, "resources": [{"name": "[variables(''storageAccountNames'')[copyIndex()]]",
"location": "westus", "copy": {"name": "storageLoop", "count": 5}, "tags": {},
"apiVersion": "2015-06-15", "type": "Microsoft.Storage/storageAccounts", "properties":
{"accountType": "Standard_LRS"}}, {"name": "vrfvmss", "location": "westus",
"tags": {}, "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachineScaleSets",
"sku": {"name": "Standard_A3", "capacity": 2, "tier": "Standard"}, "properties":
{"singlePlacementGroup": true, "upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile":
{"osProfile": {"computerNamePrefix": "vrfvmf188", "adminUsername": "ubuntu",
"linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys":
[{"path": "/home/ubuntu/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==
test@example.com\n"}]}}}, "storageProfile": {"imageReference": {"publisher":
"OpenLogic", "sku": "7.3", "version": "latest", "offer": "CentOS"}, "osDisk":
{"name": "vrfosdisk", "createOption": "FromImage", "vhdContainers": "[variables(''vhdContainers'')]",
"caching": "ReadWrite"}}, "networkProfile": {"networkInterfaceConfigurations":
[{"name": "vrfvmf188Nic", "properties": {"primary": "true", "ipConfigurations":
[{"name": "vrfvmf188IPConfig", "properties": {"loadBalancerBackendAddressPools":
[{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}],
"subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"}}}]}}]}},
"overprovision": true}, "dependsOn": ["storageLoop"]}], "contentVersion": "1.0.0.0",
body: '{"properties": {"mode": "Incremental", "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'',
''vrfvmss''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}},
"variables": {"vhdContainers": ["[concat(''https://'', variables(''storageAccountNames'')[0],
"resources": [{"apiVersion": "2015-06-15", "location": "westus", "name": "[variables(''storageAccountNames'')[copyIndex()]]",
"type": "Microsoft.Storage/storageAccounts", "properties": {"accountType": "Standard_LRS"},
"copy": {"count": 5, "name": "storageLoop"}, "tags": {}}, {"apiVersion": "2017-03-30",
"location": "westus", "name": "vrfvmss", "type": "Microsoft.Compute/virtualMachineScaleSets",
"sku": {"capacity": 2, "name": "Standard_A3", "tier": "Standard"}, "properties":
{"singlePlacementGroup": true, "overprovision": true, "upgradePolicy": {"mode":
"Manual"}, "virtualMachineProfile": {"networkProfile": {"networkInterfaceConfigurations":
[{"name": "vrfvmcd3aNic", "properties": {"ipConfigurations": [{"name": "vrfvmcd3aIPConfig",
"properties": {"loadBalancerBackendAddressPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}],
"subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"}}}],
"primary": "true"}}]}, "storageProfile": {"imageReference": {"publisher": "OpenLogic",
"sku": "7.3", "offer": "CentOS", "version": "latest"}, "osDisk": {"createOption":
"FromImage", "vhdContainers": "[variables(''vhdContainers'')]", "name": "vrfosdisk",
"caching": "ReadWrite"}}, "osProfile": {"linuxConfiguration": {"disablePasswordAuthentication":
true, "ssh": {"publicKeys": [{"path": "/home/ubuntu/.ssh/authorized_keys", "keyData":
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==
test@example.com\n"}]}}, "computerNamePrefix": "vrfvmcd3a", "adminUsername":
"ubuntu"}}}, "dependsOn": ["storageLoop"], "tags": {}}], "parameters": {}, "variables":
{"storageAccountNames": ["vrfvmcd3a0", "vrfvmcd3a1", "vrfvmcd3a2", "vrfvmcd3a3",
"vrfvmcd3a4"], "vhdContainers": ["[concat(''https://'', variables(''storageAccountNames'')[0],
''.blob.core.windows.net/vrfcontainer'')]", "[concat(''https://'', variables(''storageAccountNames'')[1],
''.blob.core.windows.net/vrfcontainer'')]", "[concat(''https://'', variables(''storageAccountNames'')[2],
''.blob.core.windows.net/vrfcontainer'')]", "[concat(''https://'', variables(''storageAccountNames'')[3],
''.blob.core.windows.net/vrfcontainer'')]", "[concat(''https://'', variables(''storageAccountNames'')[4],
''.blob.core.windows.net/vrfcontainer'')]"], "storageAccountNames": ["vrfvmf1880",
"vrfvmf1881", "vrfvmf1882", "vrfvmf1883", "vrfvmf1884"]}}, "parameters": {},
"mode": "Incremental"}}'
''.blob.core.windows.net/vrfcontainer'')]"]}, "contentVersion": "1.0.0.0"},
"parameters": {}}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
@ -520,21 +519,21 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/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_create_existing_options/providers/Microsoft.Resources/deployments/vmss_deploy_8mmWRyE0gzVLbzhTfYLkHLTdtu4zkO2i","name":"vmss_deploy_8mmWRyE0gzVLbzhTfYLkHLTdtu4zkO2i","properties":{"templateHash":"768685622443671522","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-23T21:10:07.0472913Z","duration":"PT0.3082011S","correlationId":"ad743ae8-4a79-478e-9d10-0be401344944","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1880","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1880"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1881","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1881"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1882","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1882"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1883","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1883"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1884","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1884"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}]}}'}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/vmss_deploy_gA91YCwcEDN5rP0M7umCAIMAsObF2VMS","name":"vmss_deploy_gA91YCwcEDN5rP0M7umCAIMAsObF2VMS","properties":{"templateHash":"8737364143868492379","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-24T17:52:26.8013468Z","duration":"PT0.2211542S","correlationId":"85fcf514-9e7e-44e4-bb54-1c71751643a7","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a0","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a1","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a2","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a3","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a3"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a4","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a4"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}]}}'}
headers:
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/vmss_deploy_8mmWRyE0gzVLbzhTfYLkHLTdtu4zkO2i/operationStatuses/08586980842787385398?api-version=2017-05-10']
Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/vmss_deploy_gA91YCwcEDN5rP0M7umCAIMAsObF2VMS/operationStatuses/08586980097388974388?api-version=2017-05-10']
Cache-Control: [no-cache]
Content-Length: ['2310']
Content-Length: ['2311']
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:06 GMT']
Date: ['Thu, 24 Aug 2017 17:52:26 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1181']
x-ms-ratelimit-remaining-subscription-writes: ['1194']
status: {code: 201, message: Created}
- request:
body: null
@ -547,15 +546,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980842787385398?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097388974388?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:10:37 GMT']
Date: ['Thu, 24 Aug 2017 17:52:57 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -573,15 +572,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980842787385398?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097388974388?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:11:07 GMT']
Date: ['Thu, 24 Aug 2017 17:53:27 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -599,15 +598,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980842787385398?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097388974388?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:11:38 GMT']
Date: ['Thu, 24 Aug 2017 17:53:57 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -625,15 +624,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980842787385398?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097388974388?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:08 GMT']
Date: ['Thu, 24 Aug 2017 17:54:27 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -651,15 +650,15 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980842787385398?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097388974388?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:38 GMT']
Date: ['Thu, 24 Aug 2017 17:54:57 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
@ -677,22 +676,22 @@ interactions:
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [6f945b92-8847-11e7-b324-a0b3ccf7272a]
x-ms-client-request-id: [fd0be786-88f4-11e7-a800-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_options/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_create_existing_options/providers/Microsoft.Resources/deployments/vmss_deploy_8mmWRyE0gzVLbzhTfYLkHLTdtu4zkO2i","name":"vmss_deploy_8mmWRyE0gzVLbzhTfYLkHLTdtu4zkO2i","properties":{"templateHash":"768685622443671522","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-23T21:12:15.1297827Z","duration":"PT2M8.3906925S","correlationId":"ad743ae8-4a79-478e-9d10-0be401344944","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1880","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1880"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1881","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1881"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1882","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1882"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1883","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1883"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1884","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmf1884"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vrfvmf188","adminUsername":"ubuntu","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/ubuntu/.ssh/authorized_keys","keyData":"ssh-rsa
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Resources/deployments/vmss_deploy_gA91YCwcEDN5rP0M7umCAIMAsObF2VMS","name":"vmss_deploy_gA91YCwcEDN5rP0M7umCAIMAsObF2VMS","properties":{"templateHash":"8737364143868492379","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-24T17:54:41.3756975Z","duration":"PT2M14.7955049S","correlationId":"85fcf514-9e7e-44e4-bb54-1c71751643a7","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]},{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a0","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a1","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a2","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a3","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a3"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a4","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vrfvmcd3a4"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vrfvmss"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vrfvmcd3a","adminUsername":"ubuntu","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/ubuntu/.ssh/authorized_keys","keyData":"ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==
test@example.com\n"}]}},"secrets":[]},"storageProfile":{"osDisk":{"vhdContainers":["https://vrfvmf1880.blob.core.windows.net/vrfcontainer","https://vrfvmf1881.blob.core.windows.net/vrfcontainer","https://vrfvmf1882.blob.core.windows.net/vrfcontainer","https://vrfvmf1883.blob.core.windows.net/vrfcontainer","https://vrfvmf1884.blob.core.windows.net/vrfcontainer"],"name":"vrfosdisk","createOption":"FromImage","caching":"ReadWrite"},"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.3","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vrfvmf188Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vrfvmf188IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"5d36061d-002e-4d13-bb1f-2de92b51c13b"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1880"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1881"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1882"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1883"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmf1884"}]}}'}
test@example.com\n"}]}},"secrets":[]},"storageProfile":{"osDisk":{"vhdContainers":["https://vrfvmcd3a0.blob.core.windows.net/vrfcontainer","https://vrfvmcd3a1.blob.core.windows.net/vrfcontainer","https://vrfvmcd3a2.blob.core.windows.net/vrfcontainer","https://vrfvmcd3a3.blob.core.windows.net/vrfcontainer","https://vrfvmcd3a4.blob.core.windows.net/vrfcontainer"],"name":"vrfosdisk","createOption":"FromImage","caching":"ReadWrite"},"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.3","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vrfvmcd3aNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vrfvmcd3aIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"655f9c4b-0a4b-45ff-aac9-07d4f73c3381"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a3"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Storage/storageAccounts/vrfvmcd3a4"}]}}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:39 GMT']
Date: ['Thu, 24 Aug 2017 17:54:58 GMT']
Expires: ['-1']
Pragma: [no-cache]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Vary: [Accept-Encoding]
content-length: ['5788']
content-length: ['5790']
status: {code: 200, message: OK}
- request:
body: null
@ -704,7 +703,7 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 computemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [cc11013a-8847-11e7-9c5d-a0b3ccf7272a]
x-ms-client-request-id: [589244a2-88f5-11e7-a1bb-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss?api-version=2017-03-30
response:
@ -712,7 +711,7 @@ interactions:
tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\":\
\ {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
\ \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\
\n \"osProfile\": {\r\n \"computerNamePrefix\": \"vrfvmf188\"\
\n \"osProfile\": {\r\n \"computerNamePrefix\": \"vrfvmcd3a\"\
,\r\n \"adminUsername\": \"ubuntu\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": true,\r\n \"\
ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \
@ -721,31 +720,31 @@ interactions:
\ test@example.com\\n\"\r\n }\r\n ]\r\n }\r\
\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
: {\r\n \"osDisk\": {\r\n \"vhdContainers\": [\r\n \
\ \"https://vrfvmf1880.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvmf1881.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvmf1882.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvmf1883.blob.core.windows.net/vrfcontainer\",\r\n\
\ \"https://vrfvmf1884.blob.core.windows.net/vrfcontainer\"\r\n\
\ \"https://vrfvmcd3a0.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvmcd3a1.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvmcd3a2.blob.core.windows.net/vrfcontainer\",\r\n \
\ \"https://vrfvmcd3a3.blob.core.windows.net/vrfcontainer\",\r\n\
\ \"https://vrfvmcd3a4.blob.core.windows.net/vrfcontainer\"\r\n\
\ ],\r\n \"name\": \"vrfosdisk\",\r\n \"createOption\"\
: \"FromImage\",\r\n \"caching\": \"ReadWrite\"\r\n },\r\n\
\ \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\
\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.3\",\r\n \
\ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\"\
: {\"networkInterfaceConfigurations\":[{\"name\":\"vrfvmf188Nic\",\"properties\"\
: {\"networkInterfaceConfigurations\":[{\"name\":\"vrfvmcd3aNic\",\"properties\"\
:{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"\
dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"vrfvmf188IPConfig\",\"\
dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"vrfvmcd3aIPConfig\",\"\
properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet\"\
},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
:[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool\"\
}]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
overprovision\": true,\r\n \"uniqueId\": \"5d36061d-002e-4d13-bb1f-2de92b51c13b\"\
overprovision\": true,\r\n \"uniqueId\": \"655f9c4b-0a4b-45ff-aac9-07d4f73c3381\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss\"\
,\r\n \"name\": \"vrfvmss\"\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:40 GMT']
Date: ['Thu, 24 Aug 2017 17:54:58 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -764,30 +763,30 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [cc3d2202-8847-11e7-b1d4-a0b3ccf7272a]
x-ms-client-request-id: [58c878fa-88f5-11e7-808a-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrflb\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb\"\
,\r\n \"etag\": \"W/\\\"324e07a6-bc6a-4a14-9170-e255f9440881\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"15a3c3df-9458-4dff-85f7-0276204a8b30\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"766f3348-de84-4e25-b65e-b7da4b7fade6\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"2bbe143e-900d-4466-9a64-0bfaa7a1e60d\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"324e07a6-bc6a-4a14-9170-e255f9440881\\\"\"\
,\r\n \"etag\": \"W/\\\"15a3c3df-9458-4dff-85f7-0276204a8b30\\\"\"\
,\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_create_existing_options/providers/Microsoft.Network/publicIPAddresses/PublicIPvrflb\"\
\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\"\
: [\r\n {\r\n \"name\": \"mybepool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/loadBalancers/vrflb/backendAddressPools/mybepool\"\
,\r\n \"etag\": \"W/\\\"324e07a6-bc6a-4a14-9170-e255f9440881\\\"\"\
,\r\n \"etag\": \"W/\\\"15a3c3df-9458-4dff-85f7-0276204a8b30\\\"\"\
,\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_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
\ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\"\
: [],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n\
@ -795,8 +794,8 @@ interactions:
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:40 GMT']
ETag: [W/"324e07a6-bc6a-4a14-9170-e255f9440881"]
Date: ['Thu, 24 Aug 2017 17:54:59 GMT']
ETag: [W/"15a3c3df-9458-4dff-85f7-0276204a8b30"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -815,33 +814,33 @@ interactions:
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.13+dev]
accept-language: [en-US]
x-ms-client-request-id: [cc7e9400-8847-11e7-aff3-a0b3ccf7272a]
x-ms-client-request-id: [58ee7ea8-88f5-11e7-a2fc-a0b3ccf7272a]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"vrfvnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet\"\
,\r\n \"etag\": \"W/\\\"a3ee6174-abe3-4a31-bfcf-e48eb37ce562\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"9740dd04-64f9-4194-952e-510204a45b79\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"93fce587-fe6c-4dc9-a8d3-e8955bff43fe\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"c86e708c-2c44-429a-bbfc-6e68e9ba6b87\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\
10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\
: []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vrfsubnet\"\
,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Network/virtualNetworks/vrfvnet/subnets/vrfsubnet\"\
,\r\n \"etag\": \"W/\\\"a3ee6174-abe3-4a31-bfcf-e48eb37ce562\\\"\"\
,\r\n \"etag\": \"W/\\\"9740dd04-64f9-4194-952e-510204a45b79\\\"\"\
,\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_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvmf188Nic/ipConfigurations/vrfvmf188IPConfig\"\
: [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/0/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/1/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/2/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_options/providers/Microsoft.Compute/virtualMachineScaleSets/vrfvmss/virtualMachines/3/networkInterfaces/vrfvmcd3aNic/ipConfigurations/vrfvmcd3aIPConfig\"\
\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
\ \"virtualNetworkPeerings\": []\r\n }\r\n}"}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 23 Aug 2017 21:12:40 GMT']
ETag: [W/"a3ee6174-abe3-4a31-bfcf-e48eb37ce562"]
Date: ['Thu, 24 Aug 2017 17:54:59 GMT']
ETag: [W/"9740dd04-64f9-4194-952e-510204a45b79"]
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]

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

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

@ -1,6 +1,6 @@
interactions:
- request:
body: '{"tags": {"use": "az-test"}, "location": "westus"}'
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
@ -20,11 +20,11 @@ interactions:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:33:54 GMT']
date: ['Thu, 24 Aug 2017 17:52:31 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1195']
x-ms-ratelimit-remaining-subscription-writes: ['1194']
status: {code: 201, message: Created}
- request:
body: null
@ -46,7 +46,7 @@ interactions:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:33:55 GMT']
date: ['Thu, 24 Aug 2017 17:52:31 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -65,36 +65,38 @@ interactions:
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27cli_test_vmss_create_existing_lb000001%27%20and%20name%20eq%20%27None%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27&api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?api-version=2017-05-10&$filter=resourceGroup%20eq%20%27cli_test_vmss_create_existing_lb000001%27%20and%20name%20eq%20%27None%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27
response:
body: {string: '{"value":[]}'}
headers:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:33:55 GMT']
date: ['Thu, 24 Aug 2017 17:52:32 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": {"template": {"outputs": {"loadBalancer": {"value": "[reference(\''lb1\'')]",
"type": "object"}}, "parameters": {}, "contentVersion": "1.0.0.0", "resources":
[{"tags": {}, "name": "PublicIPlb1", "dependsOn": [], "apiVersion": "2015-06-15",
"properties": {"publicIPAllocationMethod": "Dynamic"}, "type": "Microsoft.Network/publicIPAddresses",
"location": "westus"}, {"tags": {}, "name": "lb1", "dependsOn": ["Microsoft.Network/publicIpAddresses/PublicIPlb1"],
"apiVersion": "2015-06-15", "properties": {"frontendIPConfigurations": [{"name":
"LoadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}}}],
"backendAddressPools": [{"name": "test"}]}, "type": "Microsoft.Network/loadBalancers",
"location": "westus"}], "variables": {}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"},
"mode": "Incremental", "parameters": {}}}'''
body: 'b''{"properties": {"mode": "Incremental", "template": {"contentVersion":
"1.0.0.0", "parameters": {}, "variables": {}, "outputs": {"loadBalancer": {"value":
"[reference(\''lb1\'')]", "type": "object"}}, "resources": [{"properties": {"publicIPAllocationMethod":
"Dynamic"}, "name": "PublicIPlb1", "sku": {"name": "Basic"}, "tags": {}, "dependsOn":
[], "apiVersion": "2017-08-01", "location": "westus", "type": "Microsoft.Network/publicIPAddresses"},
{"properties": {"frontendIPConfigurations": [{"properties": {"publicIPAddress":
{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}},
"name": "LoadBalancerFrontEnd"}], "backendAddressPools": [{"name": "test"}]},
"name": "lb1", "sku": {"name": "Basic"}, "tags": {}, "dependsOn": ["Microsoft.Network/publicIpAddresses/PublicIPlb1"],
"apiVersion": "2017-08-01", "location": "westus", "type": "Microsoft.Network/loadBalancers"}],
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"},
"parameters": {}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [network lb create]
Connection: [keep-alive]
Content-Length: ['1088']
Content-Length: ['1140']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
@ -103,17 +105,17 @@ interactions:
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/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_create_existing_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_fqRV2l9FfkM2V9WlfZFXkGOJli2gn96x","name":"lb_deploy_fqRV2l9FfkM2V9WlfZFXkGOJli2gn96x","properties":{"templateHash":"8350082235069143562","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-23T21:33:56.8412589Z","duration":"PT0.3080157S","correlationId":"9aa10bf5-2649-4b69-95b4-f73a8fb7fc2c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"PublicIPlb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}]}}'}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_MMSxCpPSxSuZIyBaVXV5Wa4zQtccGobk","name":"lb_deploy_MMSxCpPSxSuZIyBaVXV5Wa4zQtccGobk","properties":{"templateHash":"15235590016028274740","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-24T17:52:33.835179Z","duration":"PT0.1904092S","correlationId":"cc0b163c-4323-40f7-adc9-0d84e515496b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"PublicIPlb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}]}}'}
headers:
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_fqRV2l9FfkM2V9WlfZFXkGOJli2gn96x/operationStatuses/08586980828489443829?api-version=2017-05-10']
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_MMSxCpPSxSuZIyBaVXV5Wa4zQtccGobk/operationStatuses/08586980097318328421?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['1305']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:33:56 GMT']
date: ['Thu, 24 Aug 2017 17:52:33 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1193']
x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 201, message: Created}
- request:
body: null
@ -128,14 +130,14 @@ interactions:
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980828489443829?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980097318328421?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, 23 Aug 2017 21:34:26 GMT']
date: ['Thu, 24 Aug 2017 17:53:03 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -156,12 +158,12 @@ interactions:
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/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_create_existing_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_fqRV2l9FfkM2V9WlfZFXkGOJli2gn96x","name":"lb_deploy_fqRV2l9FfkM2V9WlfZFXkGOJli2gn96x","properties":{"templateHash":"8350082235069143562","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-23T21:34:02.2045759Z","duration":"PT5.6713327S","correlationId":"9aa10bf5-2649-4b69-95b4-f73a8fb7fc2c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"PublicIPlb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"outputs":{"loadBalancer":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"fdf8cbc2-01eb-46d3-8f67-920aafc87862","frontendIPConfigurations":[{"name":"LoadBalancerFrontEnd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd","etag":"W/\"5e122d58-5224-450d-aa0a-8589b868fd64\"","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}}}],"backendAddressPools":[{"name":"test","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test","etag":"W/\"5e122d58-5224-450d-aa0a-8589b868fd64\"","properties":{"provisioningState":"Succeeded"}}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundNatRules":[],"inboundNatPools":[]}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}]}}'}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_MMSxCpPSxSuZIyBaVXV5Wa4zQtccGobk","name":"lb_deploy_MMSxCpPSxSuZIyBaVXV5Wa4zQtccGobk","properties":{"templateHash":"15235590016028274740","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-24T17:52:49.0103427Z","duration":"PT15.3655729S","correlationId":"cc0b163c-4323-40f7-adc9-0d84e515496b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"PublicIPlb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"outputs":{"loadBalancer":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"30ef09b3-c82e-4f77-9bbb-4e70fea220ff","frontendIPConfigurations":[{"name":"LoadBalancerFrontEnd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd","etag":"W/\"20f0907c-3fa5-4068-ae9f-9216c5252d95\"","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}}}],"backendAddressPools":[{"name":"test","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test","etag":"W/\"20f0907c-3fa5-4068-ae9f-9216c5252d95\"","properties":{"provisioningState":"Succeeded"}}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundNatRules":[],"inboundNatPools":[]}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['3003']
content-length: ['3005']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:26 GMT']
date: ['Thu, 24 Aug 2017 17:53:03 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -187,7 +189,7 @@ interactions:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:27 GMT']
date: ['Thu, 24 Aug 2017 17:53:05 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -245,22 +247,22 @@ interactions:
content-length: ['2235']
content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
content-type: [text/plain; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:28 GMT']
date: ['Thu, 24 Aug 2017 17:53:05 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
expires: ['Wed, 23 Aug 2017 21:39:28 GMT']
source-age: ['234']
expires: ['Thu, 24 Aug 2017 17:58:05 GMT']
source-age: ['77']
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: [d8e1542c679df62a010403df9f36cfbab5b4a4fe]
x-fastly-request-id: [1d88fb932bd52e7811ec17b3b1276d3580b6d49c]
x-frame-options: [deny]
x-geo-block-list: ['']
x-github-request-id: ['70BA:1E3AD:5FD5A:678CE:599DF3F9']
x-served-by: [cache-sea1020-SEA]
x-timer: ['S1503524068.254774,VS0,VE0']
x-github-request-id: ['8CA0:1E3AE:2EA6F7:3221AE:599F1233']
x-served-by: [cache-sea1024-SEA]
x-timer: ['S1503597185.374603,VS0,VE0']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@ -282,7 +284,7 @@ interactions:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:27 GMT']
date: ['Thu, 24 Aug 2017 17:53:05 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -422,7 +424,7 @@ interactions:
cache-control: [no-cache]
content-length: ['17135']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:28 GMT']
date: ['Thu, 24 Aug 2017 17:53:05 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -444,19 +446,19 @@ interactions:
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1\"\
,\r\n \"etag\": \"W/\\\"5e122d58-5224-450d-aa0a-8589b868fd64\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"20f0907c-3fa5-4068-ae9f-9216c5252d95\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"fdf8cbc2-01eb-46d3-8f67-920aafc87862\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"30ef09b3-c82e-4f77-9bbb-4e70fea220ff\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"5e122d58-5224-450d-aa0a-8589b868fd64\\\"\"\
,\r\n \"etag\": \"W/\\\"20f0907c-3fa5-4068-ae9f-9216c5252d95\\\"\"\
,\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_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\
\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\"\
: [\r\n {\r\n \"name\": \"test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test\"\
,\r\n \"etag\": \"W/\\\"5e122d58-5224-450d-aa0a-8589b868fd64\\\"\"\
,\r\n \"etag\": \"W/\\\"20f0907c-3fa5-4068-ae9f-9216c5252d95\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": [],\r\n\
\ \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"outboundNatRules\"\
@ -466,8 +468,8 @@ interactions:
cache-control: [no-cache]
content-length: ['1936']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:28 GMT']
etag: [W/"5e122d58-5224-450d-aa0a-8589b868fd64"]
date: ['Thu, 24 Aug 2017 17:53:05 GMT']
etag: [W/"20f0907c-3fa5-4068-ae9f-9216c5252d95"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -490,19 +492,19 @@ interactions:
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2017-08-01
response:
body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1\"\
,\r\n \"etag\": \"W/\\\"5e122d58-5224-450d-aa0a-8589b868fd64\\\"\",\r\n \
,\r\n \"etag\": \"W/\\\"20f0907c-3fa5-4068-ae9f-9216c5252d95\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"fdf8cbc2-01eb-46d3-8f67-920aafc87862\"\
\ \"Succeeded\",\r\n \"resourceGuid\": \"30ef09b3-c82e-4f77-9bbb-4e70fea220ff\"\
,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"\
LoadBalancerFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\
,\r\n \"etag\": \"W/\\\"5e122d58-5224-450d-aa0a-8589b868fd64\\\"\"\
,\r\n \"etag\": \"W/\\\"20f0907c-3fa5-4068-ae9f-9216c5252d95\\\"\"\
,\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_create_existing_lb000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\
\r\n }\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\"\
: [\r\n {\r\n \"name\": \"test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test\"\
,\r\n \"etag\": \"W/\\\"5e122d58-5224-450d-aa0a-8589b868fd64\\\"\"\
,\r\n \"etag\": \"W/\\\"20f0907c-3fa5-4068-ae9f-9216c5252d95\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": [],\r\n\
\ \"probes\": [],\r\n \"inboundNatRules\": [],\r\n \"outboundNatRules\"\
@ -512,8 +514,8 @@ interactions:
cache-control: [no-cache]
content-length: ['1936']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:28 GMT']
etag: [W/"5e122d58-5224-450d-aa0a-8589b868fd64"]
date: ['Thu, 24 Aug 2017 17:53:05 GMT']
etag: [W/"20f0907c-3fa5-4068-ae9f-9216c5252d95"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@ -522,28 +524,29 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: 'b''{"properties": {"template": {"outputs": {"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
\''vmss1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]",
"type": "object"}}, "parameters": {}, "contentVersion": "1.0.0.0", "resources":
[{"tags": {}, "name": "vmss1VNET", "dependsOn": [], "apiVersion": "2015-06-15",
"properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets":
[{"name": "vmss1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]},
"type": "Microsoft.Network/virtualNetworks", "location": "westus"}, {"sku":
{"name": "Standard_D1_v2", "capacity": 2, "tier": "Standard"}, "tags": {}, "name":
"vmss1", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET"], "apiVersion":
"2017-03-30", "properties": {"virtualMachineProfile": {"osProfile": {"computerNamePrefix":
"vmss1c188", "adminPassword": "TestTest12#$", "adminUsername": "clitester"},
"storageProfile": {"imageReference": {"sku": "16.04-LTS", "version": "latest",
"offer": "UbuntuServer", "publisher": "Canonical"}, "osDisk": {"caching": "ReadWrite",
"managedDisk": {"storageAccountType": null}, "createOption": "FromImage"}},
"networkProfile": {"networkInterfaceConfigurations": [{"name": "vmss1c188Nic",
"properties": {"primary": "true", "ipConfigurations": [{"name": "vmss1c188IPConfig",
"properties": {"subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test"}]}}]}}]}},
"singlePlacementGroup": true, "upgradePolicy": {"mode": "Manual"}, "overprovision":
true}, "type": "Microsoft.Compute/virtualMachineScaleSets", "location": "westus"}],
"variables": {}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"},
"mode": "Incremental", "parameters": {}}}'''
body: 'b''{"properties": {"mode": "Incremental", "template": {"contentVersion":
"1.0.0.0", "parameters": {}, "variables": {}, "outputs": {"VMSS": {"value":
"[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', \''vmss1\''),providers(\''Microsoft.Compute\'',
\''virtualMachineScaleSets\'').apiVersions[0])]", "type": "object"}}, "resources":
[{"properties": {"subnets": [{"properties": {"addressPrefix": "10.0.0.0/24"},
"name": "vmss1Subnet"}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}},
"name": "vmss1VNET", "tags": {}, "dependsOn": [], "apiVersion": "2015-06-15",
"location": "westus", "type": "Microsoft.Network/virtualNetworks"}, {"properties":
{"overprovision": true, "virtualMachineProfile": {"networkProfile": {"networkInterfaceConfigurations":
[{"properties": {"ipConfigurations": [{"properties": {"loadBalancerBackendAddressPools":
[{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test"}],
"subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"}},
"name": "vmss1aaddIPConfig"}], "primary": "true"}, "name": "vmss1aaddNic"}]},
"osProfile": {"adminPassword": "TestTest12#$", "computerNamePrefix": "vmss1aadd",
"adminUsername": "clitester"}, "storageProfile": {"imageReference": {"offer":
"UbuntuServer", "publisher": "Canonical", "sku": "16.04-LTS", "version": "latest"},
"osDisk": {"managedDisk": {"storageAccountType": null}, "caching": "ReadWrite",
"createOption": "FromImage"}}}, "singlePlacementGroup": true, "upgradePolicy":
{"mode": "Manual"}}, "name": "vmss1", "sku": {"tier": "Standard", "name": "Standard_D1_v2",
"capacity": 2}, "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET"],
"apiVersion": "2017-03-30", "location": "westus", "type": "Microsoft.Compute/virtualMachineScaleSets"}],
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"},
"parameters": {}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
@ -558,17 +561,17 @@ interactions:
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/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_create_existing_lb000001/providers/Microsoft.Resources/deployments/vmss_deploy_1MLrGbfVZXtTnc572xftvB03KXe07vyP","name":"vmss_deploy_1MLrGbfVZXtTnc572xftvB03KXe07vyP","properties":{"templateHash":"3599047489982515675","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-23T21:34:30.6065036Z","duration":"PT0.5372555S","correlationId":"f4112e2d-7bea-4752-9259-ed5d8b340b6f","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/vmss_deploy_j4cBRghFNrFdQl2P2TXYsW19wJyp9nDF","name":"vmss_deploy_j4cBRghFNrFdQl2P2TXYsW19wJyp9nDF","properties":{"templateHash":"6682064864800548856","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-24T17:53:07.3418341Z","duration":"PT0.2616873S","correlationId":"ebb6e4f0-59d1-4f94-986a-b8b784006101","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/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_create_existing_lb000001/providers/Microsoft.Resources/deployments/vmss_deploy_1MLrGbfVZXtTnc572xftvB03KXe07vyP/operationStatuses/08586980828154083706?api-version=2017-05-10']
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/vmss_deploy_j4cBRghFNrFdQl2P2TXYsW19wJyp9nDF/operationStatuses/08586980096983974701?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['1385']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:34:30 GMT']
date: ['Thu, 24 Aug 2017 17:53:07 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: ['1197']
status: {code: 201, message: Created}
- request:
body: null
@ -583,14 +586,14 @@ interactions:
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980828154083706?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980096983974701?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, 23 Aug 2017 21:35:00 GMT']
date: ['Thu, 24 Aug 2017 17:53:37 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -609,14 +612,14 @@ interactions:
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980828154083706?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980096983974701?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, 23 Aug 2017 21:35:30 GMT']
date: ['Thu, 24 Aug 2017 17:54:07 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -635,14 +638,14 @@ interactions:
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980828154083706?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980096983974701?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, 23 Aug 2017 21:36:01 GMT']
date: ['Thu, 24 Aug 2017 17:54:37 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -661,14 +664,14 @@ interactions:
AZURECLI/2.0.13+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980828154083706?api-version=2017-05-10
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586980096983974701?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, 23 Aug 2017 21:36:30 GMT']
date: ['Thu, 24 Aug 2017 17:55:07 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -689,12 +692,12 @@ interactions:
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_create_existing_lb000001/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_create_existing_lb000001/providers/Microsoft.Resources/deployments/vmss_deploy_1MLrGbfVZXtTnc572xftvB03KXe07vyP","name":"vmss_deploy_1MLrGbfVZXtTnc572xftvB03KXe07vyP","properties":{"templateHash":"3599047489982515675","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-23T21:36:12.9164622Z","duration":"PT1M42.8472141S","correlationId":"f4112e2d-7bea-4752-9259-ed5d8b340b6f","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1c188","adminUsername":"clitester","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":"vmss1c188Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss1c188IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"35fb9c73-335f-4d2c-b236-8b564615f9d6"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Resources/deployments/vmss_deploy_j4cBRghFNrFdQl2P2TXYsW19wJyp9nDF","name":"vmss_deploy_j4cBRghFNrFdQl2P2TXYsW19wJyp9nDF","properties":{"templateHash":"6682064864800548856","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-24T17:54:48.3372891Z","duration":"PT1M41.2571423S","correlationId":"ebb6e4f0-59d1-4f94-986a-b8b784006101","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1aadd","adminUsername":"clitester","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":"vmss1aaddNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss1aaddIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/test"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"5a353ce1-13ea-42e1-8caf-334acc88db60"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_create_existing_lb000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['3214']
content-type: [application/json; charset=utf-8]
date: ['Wed, 23 Aug 2017 21:36:31 GMT']
date: ['Thu, 24 Aug 2017 17:55:08 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@ -720,11 +723,11 @@ interactions:
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Wed, 23 Aug 2017 21:36:33 GMT']
date: ['Thu, 24 Aug 2017 17:55:09 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RkNSRUFURTo1RkVYSVNUSU5HOjVGTEJaVUVKWXw1RjRGQTBEOUVFNUNGNTY2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RkNSRUFURTo1RkVYSVNUSU5HOjVGTEJJSUdGU3xBMjgyNkNDN0M5M0Q3MUU2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1186']
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
version: 1

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

@ -0,0 +1,841 @@
interactions:
- request:
body: '{"tags": {"use": "az-test"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_lb_sku000001","name":"cli_test_vmss_lb_sku000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:51 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:
Connection: [close]
Host: [raw.githubusercontent.com]
User-Agent: [Python-urllib/3.5]
method: GET
uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
response:
body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\
:{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\
type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\
CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\
:\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\
\n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\
,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \
\ \"version\":\"latest\"\n },\n \"Debian\":{\n\
\ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\
,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \
\ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\
,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\
,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\
\ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\
\ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \
\ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \
\ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \
\ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \
\ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\
,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\
\ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\
:{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \
\ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\
:{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\
\ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\
:{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \
\ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\
:{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \
\ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\
}\n"}
headers:
accept-ranges: [bytes]
access-control-allow-origin: ['*']
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
content-type: [text/plain; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:53 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
expires: ['Thu, 24 Aug 2017 19:38:53 GMT']
source-age: ['248']
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: [528469ea084e52ca510332b66aff3ce94c887649]
x-frame-options: [deny]
x-geo-block-list: ['']
x-github-request-id: ['E8CC:1E3AC:124054:13B035:599F2928']
x-served-by: [cache-sea1025-SEA]
x-timer: ['S1503603233.447303,VS0,VE1']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
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-08-01
response:
body: {string: '{"value":[]}'}
headers:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:54 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network","namespace":"Microsoft.Network","authorization":{"applicationId":"2cf9eb86-36b5-49dc-86ae-9a63135dfa8c","roleDefinitionId":"13ba9ab4-19f0-4804-adc4-14ece36cc7a1"},"resourceTypes":[{"resourceType":"virtualNetworks","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"publicIPAddresses","locations":["West
US","East US","North Europe","East Asia","Southeast Asia","North Central US","South
Central US","Japan East","Japan 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","West Europe","Central US","East US 2","Central US EUAP","East US 2
EUAP"],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"zoneMappings":[{"location":"East
US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West
Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2"]},{"location":"Central
US EUAP","zones":["1","2"]}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"networkInterfaces","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"loadBalancers","locations":["West
US","East US","North Europe","East Asia","Southeast Asia","North Central US","South
Central US","Japan East","Japan 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","West Europe","Central US","East US 2","Central US EUAP","East US 2
EUAP"],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"zoneMappings":[{"location":"East
US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West
Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2"]},{"location":"Central
US EUAP","zones":["1","2"]}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"networkSecurityGroups","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"routeTables","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"networkWatchers","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30"],"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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"localNetworkGateways","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"connections","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"applicationGateways","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"SystemAssignedResourceIdentity"},{"resourceType":"locations","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/operations","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/CheckDnsNameAvailability","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"locations/usages","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/virtualNetworkAvailableEndpointServices","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
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-08-01","2017-06-01","2017-04-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"dnszones","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-04-01"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"dnsOperationResults","locations":["global"],"apiVersions":["2016-04-01"]},{"resourceType":"dnsOperationStatuses","locations":["global"],"apiVersions":["2016-04-01"]},{"resourceType":"dnszones/A","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/AAAA","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/CNAME","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/PTR","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/MX","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/TXT","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/SRV","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/SOA","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/NS","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"trafficmanagerprofiles","locations":["global"],"apiVersions":["2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"checkTrafficManagerNameAvailability","locations":["global"],"apiVersions":["2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"]},{"resourceType":"trafficManagerGeographicHierarchies","locations":["global"],"apiVersions":["2017-05-01","2017-03-01"]},{"resourceType":"expressRouteCircuits","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"expressRouteServiceProviders","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"applicationGatewayAvailableWafRuleSets","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01"]},{"resourceType":"applicationGatewayAvailableSslOptions","locations":[],"apiVersions":["2017-08-01","2017-06-01"]},{"resourceType":"routeFilters","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"],"capabilities":"None"},{"resourceType":"bgpServiceCommunities","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"]}],"registrationState":"Registered"}'}
headers:
cache-control: [no-cache]
content-length: ['17135']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:54 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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-08-01
response:
body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/loadBalancers/lb1''
under resource group ''cli_test_vmss_lb_sku000001'' was not found."}}'}
headers:
cache-control: [no-cache]
content-length: ['214']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:54 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-failure-cause: [gateway]
status: {code: 404, message: Not Found}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network","namespace":"Microsoft.Network","authorization":{"applicationId":"2cf9eb86-36b5-49dc-86ae-9a63135dfa8c","roleDefinitionId":"13ba9ab4-19f0-4804-adc4-14ece36cc7a1"},"resourceTypes":[{"resourceType":"virtualNetworks","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"publicIPAddresses","locations":["West
US","East US","North Europe","East Asia","Southeast Asia","North Central US","South
Central US","Japan East","Japan 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","West Europe","Central US","East US 2","Central US EUAP","East US 2
EUAP"],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"zoneMappings":[{"location":"East
US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West
Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2"]},{"location":"Central
US EUAP","zones":["1","2"]}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"networkInterfaces","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"loadBalancers","locations":["West
US","East US","North Europe","East Asia","Southeast Asia","North Central US","South
Central US","Japan East","Japan 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","West Europe","Central US","East US 2","Central US EUAP","East US 2
EUAP"],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"zoneMappings":[{"location":"East
US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West
Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2"]},{"location":"Central
US EUAP","zones":["1","2"]}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"networkSecurityGroups","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"routeTables","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"networkWatchers","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30"],"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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"localNetworkGateways","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"connections","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"applicationGateways","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"SystemAssignedResourceIdentity"},{"resourceType":"locations","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/operations","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/CheckDnsNameAvailability","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"locations/usages","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/virtualNetworkAvailableEndpointServices","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
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-08-01","2017-06-01","2017-04-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"dnszones","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-04-01"}],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"dnsOperationResults","locations":["global"],"apiVersions":["2016-04-01"]},{"resourceType":"dnsOperationStatuses","locations":["global"],"apiVersions":["2016-04-01"]},{"resourceType":"dnszones/A","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/AAAA","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/CNAME","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/PTR","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/MX","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/TXT","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/SRV","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/SOA","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/NS","locations":["global"],"apiVersions":["2016-04-01","2015-05-04-preview"]},{"resourceType":"trafficmanagerprofiles","locations":["global"],"apiVersions":["2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"],"capabilities":"CrossResourceGroupResourceMove,
CrossSubscriptionResourceMove"},{"resourceType":"checkTrafficManagerNameAvailability","locations":["global"],"apiVersions":["2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"]},{"resourceType":"trafficManagerGeographicHierarchies","locations":["global"],"apiVersions":["2017-05-01","2017-03-01"]},{"resourceType":"expressRouteCircuits","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"expressRouteServiceProviders","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"applicationGatewayAvailableWafRuleSets","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01"]},{"resourceType":"applicationGatewayAvailableSslOptions","locations":[],"apiVersions":["2017-08-01","2017-06-01"]},{"resourceType":"routeFilters","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
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-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"],"capabilities":"None"},{"resourceType":"bgpServiceCommunities","locations":[],"apiVersions":["2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"]}],"registrationState":"Registered"}'}
headers:
cache-control: [no-cache]
content-length: ['17135']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33: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/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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-08-01
response:
body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/publicIPAddresses/pubip1''
under resource group ''cli_test_vmss_lb_sku000001'' was not found."}}'}
headers:
cache-control: [no-cache]
content-length: ['221']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:55 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": {"parameters": {}, "mode": "Incremental", "template":
{"parameters": {}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"resources": [{"properties": {"subnets": [{"name": "vmss1Subnet", "properties":
{"addressPrefix": "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}},
"dependsOn": [], "location": "eastus2", "name": "vmss1VNET", "tags": {}, "apiVersion":
"2015-06-15", "type": "Microsoft.Network/virtualNetworks"}, {"properties": {"publicIPAllocationMethod":
"Static"}, "dependsOn": [], "location": "eastus2", "name": "pubip1", "tags":
{}, "apiVersion": "2017-08-01", "type": "Microsoft.Network/publicIPAddresses",
"sku": {"name": "standard"}}, {"properties": {"backendAddressPools": [{"name":
"lb1BEPool"}], "inboundNatPools": [{"name": "lb1NatPool", "properties": {"frontendPortRangeEnd":
"50119", "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'',
\''lb1\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"},
"backendPort": 22, "frontendPortRangeStart": "50000", "protocol": "tcp"}}],
"frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", "properties":
{"publicIPAddress": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/publicIPAddresses/pubip1"}}}]},
"dependsOn": ["Microsoft.Network/publicIpAddresses/pubip1"], "location": "eastus2",
"name": "lb1", "tags": {}, "apiVersion": "2017-08-01", "type": "Microsoft.Network/loadBalancers",
"sku": {"name": "standard"}}, {"properties": {"upgradePolicy": {"mode": "Manual"},
"singlePlacementGroup": true, "virtualMachineProfile": {"storageProfile": {"imageReference":
{"sku": "16.04-LTS", "offer": "UbuntuServer", "version": "latest", "publisher":
"Canonical"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage",
"managedDisk": {"storageAccountType": null}}}, "networkProfile": {"networkInterfaceConfigurations":
[{"name": "vmss1f777Nic", "properties": {"primary": "true", "ipConfigurations":
[{"name": "vmss1f777IPConfig", "properties": {"subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1BEPool"}],
"loadBalancerInboundNatPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_lb_sku000001/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/lb1NatPool"}]}}]}}]},
"osProfile": {"adminPassword": "PasswordPassword1!", "adminUsername": "admin123",
"computerNamePrefix": "vmss1f777"}}, "overprovision": true}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET",
"Microsoft.Network/loadBalancers/lb1"], "location": "eastus2", "name": "vmss1",
"tags": {}, "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachineScaleSets",
"sku": {"name": "Standard_D1_v2", "capacity": 2, "tier": "Standard"}}], "outputs":
{"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
\''vmss1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]",
"type": "object"}}, "variables": {}, "contentVersion": "1.0.0.0"}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Length: ['3637']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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_0EiaxXfTkYwNoiBkHB6aOVpCFCOxOams","name":"vmss_deploy_0EiaxXfTkYwNoiBkHB6aOVpCFCOxOams","properties":{"templateHash":"15977610099433103914","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-08-24T19:33:58.118089Z","duration":"PT0.7587809S","correlationId":"528349c0-f0d2-4624-863b-4e19cd3351b7","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/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"}]}}'}
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_0EiaxXfTkYwNoiBkHB6aOVpCFCOxOams/operationStatuses/08586980036481183236?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['2337']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:33:57 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.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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/08586980036481183236?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, 24 Aug 2017 19:34:28 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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/08586980036481183236?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, 24 Aug 2017 19:34:58 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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/08586980036481183236?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, 24 Aug 2017 19:35:28 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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/08586980036481183236?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, 24 Aug 2017 19:35:59 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [vmss create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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/08586980036481183236?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, 24 Aug 2017 19:36: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/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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_0EiaxXfTkYwNoiBkHB6aOVpCFCOxOams","name":"vmss_deploy_0EiaxXfTkYwNoiBkHB6aOVpCFCOxOams","properties":{"templateHash":"15977610099433103914","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-08-24T19:36:07.2422289Z","duration":"PT2M9.8829208S","correlationId":"528349c0-f0d2-4624-863b-4e19cd3351b7","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/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"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1f777","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":"vmss1f777Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss1f777IPConfig","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":"571421f6-b6ff-48d0-b2be-ba46d76d5abe"}}},"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"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['4830']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:36: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: [network lb show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
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-08-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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\"\
,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\
\ \"Succeeded\",\r\n \"resourceGuid\": \"5deac100-b17c-4e82-ad5d-fbae63d478cb\"\
,\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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 {\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\"\
\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/lb1/inboundNatPools/lb1NatPool\"\
\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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/vmss1f777Nic/ipConfigurations/vmss1f777IPConfig\"\
\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/\\\"94f82d1c-a77c-49e9-8a65-91de0d2c54cc\\\"\"\
,\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 \"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 }\r\n }\r\n ]\r\n },\r\n \"sku\": {\r\
\n \"name\": \"Standard\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['10775']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:36:32 GMT']
etag: [W/"94f82d1c-a77c-49e9-8a65-91de0d2c54cc"]
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 show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.13+dev]
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-08-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/\\\"c919f74c-dd1d-4700-8b71-78738eb7734e\\\"\",\r\n \
\ \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
\ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"c40784d5-042a-4f98-9d28-6ae533668e3f\"\
,\r\n \"ipAddress\": \"40.67.152.11\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\
: 4,\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\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['978']
content-type: [application/json; charset=utf-8]
date: ['Thu, 24 Aug 2017 19:36:33 GMT']
etag: [W/"c919f74c-dd1d-4700-8b71-78738eb7734e"]
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.15063-SP0) requests/2.9.1 msrest/0.4.13
msrest_azure/0.4.11 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
AZURECLI/2.0.13+dev]
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
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Thu, 24 Aug 2017 19:36:34 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk1TUzo1RkxCOjVGU0tVUDNLS0VGRU02MlJXQ0IzVVk2M3w3NDc4N0NDRkNCQzEwODk5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
version: 1

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

@ -14,12 +14,13 @@ import mock
import uuid
import six
from azure.cli.core.profiles import ResourceType
from azure.cli.core.util import CLIError
from azure.cli.testsdk.vcr_test_base import (VCRTestBase,
ResourceGroupVCRTestBase,
JMESPathCheck,
NoneCheck, MOCKED_SUBSCRIPTION_ID)
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, LiveScenarioTest
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, LiveScenarioTest, api_version_constraint
from azure.cli.testsdk import JMESPathCheck as JMESPathCheckV2
from azure.cli.testsdk.checkers import NoneCheck as NoneCheckV2
@ -1912,6 +1913,31 @@ class VMSSILBSceanrioTest(ScenarioTest):
self.assertTrue('internal load balancer' in str(err.exception))
@api_version_constraint(ResourceType.MGMT_NETWORK, min_api='2017-08-01')
class VMSSLoadBalancerWithSku(ScenarioTest):
@ResourceGroupPreparer(name_prefix='cli_test_vmss_lb_sku')
def test_vmss_lb_sku(self, resource_group):
kwargs = {
'rg': resource_group,
'vmss': 'vmss1',
'lb': 'lb1',
'ip': 'pubip1',
'sku': 'standard',
'location': 'eastus2'
}
self.cmd('vmss create -g {rg} -l {location} -n {vmss} --lb {lb} --lb-sku {sku} --public-ip-address {ip} --image UbuntuLTS --admin-username admin123 --admin-password PasswordPassword1!'.format(**kwargs))
self.cmd('network lb show -g {rg} -n {lb}'.format(**kwargs), checks=[
JMESPathCheckV2('sku.name', 'Standard')
])
self.cmd('network public-ip show -g {rg} -n {ip}'.format(**kwargs), checks=[
JMESPathCheckV2('sku.name', 'Standard'),
JMESPathCheckV2('publicIpAllocationMethod', 'Static')
])
class MSIScenarioTest(ScenarioTest):
@ResourceGroupPreparer()