diff --git a/src/command_modules/azure-cli-network/HISTORY.rst b/src/command_modules/azure-cli-network/HISTORY.rst index df35e0e4219..ac8d399e9d7 100644 --- a/src/command_modules/azure-cli-network/HISTORY.rst +++ b/src/command_modules/azure-cli-network/HISTORY.rst @@ -7,6 +7,8 @@ Release History +++++ * Add `network public-ip prefix` commands to support public IP prefixes features. * Add `network service-endpoint` commands to support service endpoint policy features. +* Add `network lb outbound-rule` commands to support creation of Standard Load Balancer outbound rules. +* Add `--public-ip-prefix` to `network lb frontend-ip create/update` to support frontend IP configurations using public IP prefixes. 2.2.4 +++++ diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py index b306631dbea..f301623e81c 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py @@ -2211,6 +2211,38 @@ """ # endregion +# region Load Balancer outbound rule +helps['network lb outbound-rule'] = """ + type: group + short-summary: Manage outbound rules of a load balancer. +""" + +helps['network lb outbound-rule create'] = """ + type: command + short-summary: Create an outbound-rule. +""" + +helps['network lb outbound-rule delete'] = """ + type: command + short-summary: Delete an outbound-rule. +""" + +helps['network lb outbound-rule list'] = """ + type: command + short-summary: List outbound rules. +""" + +helps['network lb outbound-rule show'] = """ + type: command + short-summary: Get the details of an outbound rule. +""" + +helps['network lb outbound-rule update'] = """ + type: command + short-summary: Update an outbound-rule. +""" +# endregion + # region Load Balancer probe helps['network lb probe'] = """ type: group diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py index c0c6c1d97b5..b5c7be24c25 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py @@ -465,6 +465,7 @@ def load_arguments(self, _): {'name': 'inbound-nat-pool', 'display': 'inbound NAT pool', 'ref': 'inbound_nat_pools'}, {'name': 'rule', 'display': 'load balancing rule', 'ref': 'load_balancing_rules'}, {'name': 'probe', 'display': 'probe', 'ref': 'probes'}, + {'name': 'outbound-rule', 'display': 'outbound rule', 'ref': 'outbound_rules'}, ] for item in lb_subresources: with self.argument_context('network lb {}'.format(item['name'])) as c: @@ -524,6 +525,13 @@ def load_arguments(self, _): c.argument('protocol', help='The protocol to probe.', arg_type=get_enum_type(ProbeProtocol)) c.argument('threshold', help='The number of consecutive probe failures before an instance is deemed unhealthy.') + with self.argument_context('network lb outbound-rule') as c: + c.argument('backend_address_pool', options_list='--address-pool', help='Name or ID of the backend address pool.') + c.argument('frontend_ip_configurations', options_list='--frontend-ip-configs', help='Space-separated list of frontend IP configuration names or IDs.', nargs='+') + c.argument('enable_tcp_reset', arg_type=get_three_state_flag(), help='Receive bidirectional TCP reset on TCP flow idle timeout or unexpected connection termination. Only used when protocol is set to TCP.') + c.argument('protocol', arg_type=get_enum_type(TransportProtocol), help='Network transport protocol.') + c.argument('outbound_ports', type=int, help='The number of outbound ports to be used for NAT.') + with self.argument_context('network lb rule') as c: c.argument('load_distribution', help='Affinity rule settings.', arg_type=get_enum_type(LoadDistribution)) c.argument('probe_name', help='Name of an existing probe to associate with this rule.') @@ -762,6 +770,10 @@ def load_arguments(self, _): c.argument('sku', min_api='2017-08-01', help='Public IP SKU', default=PublicIPAddressSkuName.basic.value if PublicIPAddressSkuName is not None and item == 'create' else None, arg_type=get_enum_type(PublicIPAddressSkuName)) c.argument('version', min_api='2016-09-01', help='IP address type.', arg_type=get_enum_type(IPVersion, 'ipv4')) + for scope in ['public-ip', 'lb frontend-ip']: + with self.argument_context('network {}'.format(scope), min_api='2018-07-01') as c: + c.argument('public_ip_prefix', help='Name or ID of a public IP prefix.') + with self.argument_context('network public-ip prefix') as c: c.argument('public_ip_prefix_name', name_arg_type, completer=get_resource_name_completion_list('Microsoft.Network/publicIPPrefixes'), id_part='name', help='The name of the public IP prefix.') c.argument('location', get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group) diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py index ce5cc30f230..e76bafe5b2c 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py @@ -250,6 +250,19 @@ def validate_ip_tags(cmd, namespace): namespace.ip_tags = ip_tags +def validate_frontend_ip_configs(cmd, namespace): + from msrestazure.tools import is_valid_resource_id + if namespace.frontend_ip_configurations: + config_ids = [] + for item in namespace.frontend_ip_configurations: + if not is_valid_resource_id(item): + config_ids.append(_generate_lb_subproperty_id( + cmd.cli_ctx, namespace, 'frontendIpConfigurations', item)) + else: + config_ids.append(item) + namespace.frontend_ip_configurations = config_ids + + def validate_metadata(namespace): if namespace.metadata: namespace.metadata = dict(x.split('=', 1) for x in namespace.metadata) @@ -606,11 +619,21 @@ def process_lb_create_namespace(cmd, namespace): def process_lb_frontend_ip_namespace(cmd, namespace): + from msrestazure.tools import is_valid_resource_id, resource_id if namespace.subnet and namespace.public_ip_address: raise ValueError( 'incorrect usage: --subnet NAME --vnet-name NAME | ' '--subnet ID | --public-ip NAME_OR_ID') + if namespace.public_ip_prefix: + if not is_valid_resource_id(namespace.public_ip_prefix): + namespace.public_ip_prefix = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), + resource_group=namespace.resource_group_name, + namespace='Microsoft.Network', + type='publicIpPrefixes', + name=namespace.public_ip_prefix) + if namespace.subnet: get_subnet_validator()(cmd, namespace) else: @@ -1095,3 +1118,14 @@ def process_nw_troubleshooting_show_namespace(cmd, namespace): raise resource_usage get_network_watcher_from_resource(cmd, namespace) + + +def process_lb_outbound_rule_namespace(cmd, namespace): + from msrestazure.tools import is_valid_resource_id + + validate_frontend_ip_configs(cmd, namespace) + + if namespace.backend_address_pool: + if not is_valid_resource_id(namespace.backend_address_pool): + namespace.backend_address_pool = _generate_lb_subproperty_id( + cmd.cli_ctx, namespace, 'backendAddressPools', namespace.backend_address_pool) diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py index 0616b47fb14..ad48aa8ca47 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py @@ -46,7 +46,8 @@ process_nw_troubleshooting_start_namespace, process_nw_troubleshooting_show_namespace, process_public_ip_create_namespace, process_tm_endpoint_create_namespace, process_vnet_create_namespace, process_vnet_gateway_create_namespace, process_vnet_gateway_update_namespace, - process_vpn_connection_create_namespace, process_route_table_create_namespace) + process_vpn_connection_create_namespace, process_route_table_create_namespace, + process_lb_outbound_rule_namespace) # pylint: disable=too-many-locals, too-many-statements @@ -425,7 +426,7 @@ def _make_singular(value): 'inbound_nat_pools': 'inbound-nat-pool', 'backend_address_pools': 'address-pool', 'load_balancing_rules': 'rule', - 'probes': 'probe' + 'probes': 'probe', } for subresource, alias in property_map.items(): with self.command_group('network lb {}'.format(alias), network_util) as g: @@ -462,6 +463,15 @@ def _make_singular(value): g.generic_update_command('update', child_collection_prop_name='probes', custom_func_name='set_lb_probe') + with self.command_group('network lb outbound-rule', network_lb_sdk, min_api='2018-07-01') as g: + g.custom_command('create', 'create_lb_outbound_rule', validator=process_lb_outbound_rule_namespace) + g.generic_update_command('update', child_collection_prop_name='outbound_rules', + custom_func_name='set_lb_outbound_rule', validator=process_lb_outbound_rule_namespace) + + with self.command_group('network lb outbound-rule', network_util, min_api='2018-07-01') as g: + g.command('list', list_network_resource_property('load_balancers', 'outbound_rules')) + g.show_command('show', get_network_resource_property_entry('load_balancers', 'outbound_rules')) + g.command('delete', delete_network_resource_property_entry('load_balancers', 'outbound_rules')) # endregion # region LocalGateways diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py index f61b299f74c..45de1a0b34f 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py @@ -1759,17 +1759,18 @@ def set_lb_inbound_nat_pool( def create_lb_frontend_ip_configuration( cmd, resource_group_name, load_balancer_name, item_name, public_ip_address=None, - subnet=None, virtual_network_name=None, private_ip_address=None, + public_ip_prefix=None, subnet=None, virtual_network_name=None, private_ip_address=None, private_ip_address_allocation='dynamic', zone=None): - FrontendIPConfiguration, PublicIPAddress, Subnet = cmd.get_models( - 'FrontendIPConfiguration', 'PublicIPAddress', 'Subnet') + FrontendIPConfiguration, SubResource, Subnet = cmd.get_models( + 'FrontendIPConfiguration', 'SubResource', 'Subnet') ncf = network_client_factory(cmd.cli_ctx) lb = ncf.load_balancers.get(resource_group_name, load_balancer_name) new_config = FrontendIPConfiguration( name=item_name, private_ip_address=private_ip_address, private_ip_allocation_method=private_ip_address_allocation, - public_ip_address=PublicIPAddress(id=public_ip_address) if public_ip_address else None, + public_ip_address=SubResource(id=public_ip_address) if public_ip_address else None, + public_ip_prefix=SubResource(id=public_ip_prefix) if public_ip_prefix else None, subnet=Subnet(id=subnet) if subnet else None) if zone and cmd.supported_api_version(min_api='2017-06-01'): @@ -1815,6 +1816,39 @@ def create_lb_backend_address_pool(cmd, resource_group_name, load_balancer_name, return _get_property(poller.result().backend_address_pools, item_name) +def create_lb_outbound_rule(cmd, resource_group_name, load_balancer_name, item_name, + backend_address_pool, frontend_ip_configurations, outbound_ports=None, + protocol=None, enable_tcp_reset=None, idle_timeout=None): + OutboundRule, SubResource = cmd.get_models('OutboundRule', 'SubResource') + client = network_client_factory(cmd.cli_ctx).load_balancers + lb = client.get(resource_group_name, load_balancer_name) + rule = OutboundRule( + protocol=protocol, enable_tcp_reset=enable_tcp_reset, idle_timeout_in_minutes=idle_timeout, + backend_address_pool=SubResource(id=backend_address_pool), + frontend_ip_configurations=[SubResource(id=x) for x in frontend_ip_configurations] \ + if frontend_ip_configurations else None, + allocated_outbound_ports=outbound_ports, name=item_name) + _upsert(lb, 'outbound_rules', rule, 'name') + poller = client.create_or_update(resource_group_name, load_balancer_name, lb) + return _get_property(poller.result().outbound_rules, item_name) + + +def set_lb_outbound_rule(instance, cmd, parent, item_name, protocol=None, outbound_ports=None, + idle_timeout=None, frontend_ip_configurations=None, enable_tcp_reset=None, + backend_address_pool=None): + SubResource = cmd.get_models('SubResource') + _set_param(instance, 'protocol', protocol) + _set_param(instance, 'allocated_outbound_ports', outbound_ports) + _set_param(instance, 'idle_timeout_in_minutes', idle_timeout) + _set_param(instance, 'enable_tcp_reset', enable_tcp_reset) + _set_param(instance, 'backend_address_pool', SubResource(id=backend_address_pool) \ + if backend_address_pool else None) + _set_param(instance, 'frontend_ip_configurations', \ + [SubResource(x) for x in frontend_ip_configurations] if frontend_ip_configurations else None) + + return parent + + def create_lb_probe(cmd, resource_group_name, load_balancer_name, item_name, protocol, port, path=None, interval=None, threshold=None): Probe = cmd.get_models('Probe') diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/recordings/test_network_load_balancer_outbound_rules.yaml b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/recordings/test_network_load_balancer_outbound_rules.yaml new file mode 100644 index 00000000000..51ad5b8ffc0 --- /dev/null +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/recordings/test_network_load_balancer_outbound_rules.yaml @@ -0,0 +1,1830 @@ +interactions: +- request: + body: '{"location": "eastus2", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-08-21T21:41:35Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['111'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001","name":"test_network_lb_outbound_rules000001","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2018-08-21T21:41:35Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['385'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:41:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001","name":"test_network_lb_outbound_rules000001","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2018-08-21T21:41:35Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['385'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:41:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27test_network_lb_outbound_rules000001%27%20and%20name%20eq%20%27None%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27&api-version=2018-05-01 + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:41:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"apiVersion": "2018-07-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "PublicIPlb1", "location": "eastus2", "tags": {}, "dependsOn": [], "properties": + {"publicIPAllocationMethod": "Static"}, "sku": {"name": "Standard"}}, {"type": + "Microsoft.Network/loadBalancers", "name": "lb1", "location": "eastus2", "tags": + {}, "apiVersion": "2018-07-01", "dependsOn": ["Microsoft.Network/publicIpAddresses/PublicIPlb1"], + "properties": {"backendAddressPools": [{"name": "lb1bepool"}], "frontendIPConfigurations": + [{"name": "LoadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}}}]}, + "sku": {"name": "Standard"}}], "outputs": {"loadBalancer": {"type": "object", + "value": "[reference(\''lb1\'')]"}}}, "parameters": {}, "mode": "Incremental"}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb create] + Connection: [keep-alive] + Content-Length: ['1152'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Resources/deployments/lb_deploy_jhBoCOZBOP5XYYOFDUMYjaESb55XoqBH","name":"lb_deploy_jhBoCOZBOP5XYYOFDUMYjaESb55XoqBH","properties":{"templateHash":"9102375102692223100","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-21T21:41:42.2577041Z","duration":"PT0.5225513S","correlationId":"deee398c-e915-4e97-ac9c-03abc217d09f","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"PublicIPlb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/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/test_network_lb_outbound_rules000001/providers/Microsoft.Resources/deployments/lb_deploy_jhBoCOZBOP5XYYOFDUMYjaESb55XoqBH/operationStatuses/08586667191837424689?api-version=2018-05-01'] + cache-control: [no-cache] + content-length: ['1307'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:41:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586667191837424689?api-version=2018-05-01 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Resources/deployments/lb_deploy_jhBoCOZBOP5XYYOFDUMYjaESb55XoqBH","name":"lb_deploy_jhBoCOZBOP5XYYOFDUMYjaESb55XoqBH","properties":{"templateHash":"9102375102692223100","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-21T21:42:01.5494417Z","duration":"PT19.8142889S","correlationId":"deee398c-e915-4e97-ac9c-03abc217d09f","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus2"]},{"resourceType":"loadBalancers","locations":["eastus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"PublicIPlb1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1","resourceType":"Microsoft.Network/loadBalancers","resourceName":"lb1"}],"outputs":{"loadBalancer":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"b7c80fe4-14db-43c9-baa0-a2d70a7d468f","frontendIPConfigurations":[{"name":"LoadBalancerFrontEnd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd","etag":"W/\"b4665cc4-48f4-4a76-b814-53338fd0039d\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"b4665cc4-48f4-4a76-b814-53338fd0039d\"","properties":{"provisioningState":"Succeeded"},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3140'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip prefix create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001","name":"test_network_lb_outbound_rules000001","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2018-08-21T21:41:35Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['385'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "eastus2", "sku": {"name": "Standard"}, "properties": {"prefixLength": + 30}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip prefix create] + Connection: [keep-alive] + Content-Length: ['88'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"prefix1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\",\r\n + \ \"etag\": \"W/\\\"34cc8b55-9dfb-4094-8108-2fe6fdc9a977\\\"\",\r\n \"type\": + \"Microsoft.Network/publicIPPrefixes\",\r\n \"location\": \"eastus2\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"930ed81f-33da-491c-b316-72b32a2c1177\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"prefixLength\": 30,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"ipTags\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n + \ \"tier\": \"Regional\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/9ff47c21-a942-4510-b9ca-0b15e6f6c7a1?api-version=2018-07-01'] + cache-control: [no-cache] + content-length: ['670'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip prefix create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/9ff47c21-a942-4510-b9ca-0b15e6f6c7a1?api-version=2018-07-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: ['Tue, 21 Aug 2018 21:42:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network public-ip prefix create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"prefix1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\",\r\n + \ \"etag\": \"W/\\\"135d9209-c71d-4851-b847-53653e2123c9\\\"\",\r\n \"type\": + \"Microsoft.Network/publicIPPrefixes\",\r\n \"location\": \"eastus2\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"930ed81f-33da-491c-b316-72b32a2c1177\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"prefixLength\": 30,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"ipPrefix\": \"20.36.232.60/30\",\r\n \"ipTags\": []\r\n },\r\n \"sku\": + {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['707'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:21 GMT'] + etag: [W/"135d9209-c71d-4851-b847-53653e2123c9"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb frontend-ip create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"b4665cc4-48f4-4a76-b814-53338fd0039d\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"b4665cc4-48f4-4a76-b814-53338fd0039d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"b4665cc4-48f4-4a76-b814-53338fd0039d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2121'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:23 GMT'] + etag: [W/"b4665cc4-48f4-4a76-b814-53338fd0039d"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus2", "tags": {}, "sku": {"name": "Standard"}, "properties": + {"frontendIPConfigurations": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}, + "provisioningState": "Succeeded"}, "name": "LoadBalancerFrontEnd", "etag": "W/\\"b4665cc4-48f4-4a76-b814-53338fd0039d\\""}, + {"properties": {"privateIPAllocationMethod": "dynamic", "publicIPPrefix": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIpPrefixes/prefix1"}}, + "name": "prefixFrontEnd"}], "backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "properties": {"provisioningState": "Succeeded"}, "name": "lb1bepool", "etag": + "W/\\"b4665cc4-48f4-4a76-b814-53338fd0039d\\""}], "loadBalancingRules": [], + "probes": [], "inboundNatRules": [], "inboundNatPools": [], "outboundRules": + [], "resourceGuid": "b7c80fe4-14db-43c9-baa0-a2d70a7d468f", "provisioningState": + "Succeeded"}, "etag": "W/\\"b4665cc4-48f4-4a76-b814-53338fd0039d\\""}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb frontend-ip create] + Connection: [keep-alive] + Content-Length: ['1901'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ }\r\n }\r\n },\r\n {\r\n \"name\": \"prefixFrontEnd\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPPrefix\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/5d4ef49c-87f2-48fa-a33c-0662659ef24f?api-version=2018-07-01'] + cache-control: [no-cache] + content-length: ['2955'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb frontend-ip create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/5d4ef49c-87f2-48fa-a33c-0662659ef24f?api-version=2018-07-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: ['Tue, 21 Aug 2018 21:42:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb frontend-ip create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ }\r\n }\r\n },\r\n {\r\n \"name\": \"prefixFrontEnd\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPPrefix\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2955'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:55 GMT'] + etag: [W/"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ }\r\n }\r\n },\r\n {\r\n \"name\": \"prefixFrontEnd\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPPrefix\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2955'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:56 GMT'] + etag: [W/"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus2", "tags": {}, "sku": {"name": "Standard"}, "properties": + {"frontendIPConfigurations": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}, + "provisioningState": "Succeeded"}, "name": "LoadBalancerFrontEnd", "etag": "W/\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\""}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPPrefix": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1"}, + "provisioningState": "Succeeded"}, "name": "prefixFrontEnd", "etag": "W/\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\""}], + "backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "properties": {"provisioningState": "Succeeded"}, "name": "lb1bepool", "etag": + "W/\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\""}], "loadBalancingRules": [], + "probes": [], "inboundNatRules": [], "inboundNatPools": [], "outboundRules": + [{"properties": {"allocatedOutboundPorts": 512, "frontendIPConfigurations": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIpConfigurations/LoadBalancerFrontEnd"}], + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool"}, + "protocol": "Tcp", "enableTcpReset": true}, "name": "rule1"}], "resourceGuid": + "b7c80fe4-14db-43c9-baa0-a2d70a7d468f", "provisioningState": "Succeeded"}, "etag": + "W/\\"67e8f8db-e2e7-4a50-b04a-5d20b189fe6d\\""}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + Content-Length: ['2862'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPPrefix\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/09d3e809-134f-4598-b3f5-505dba1b6bea?api-version=2018-07-01'] + cache-control: [no-cache] + content-length: ['4830'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:42:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/09d3e809-134f-4598-b3f5-505dba1b6bea?api-version=2018-07-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: ['Tue, 21 Aug 2018 21:43:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPPrefix\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['4830'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:43:29 GMT'] + etag: [W/"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPPrefix\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['4830'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:43:29 GMT'] + etag: [W/"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus2", "tags": {}, "sku": {"name": "Standard"}, "properties": + {"frontendIPConfigurations": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}, + "provisioningState": "Succeeded"}, "name": "LoadBalancerFrontEnd", "etag": "W/\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\""}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPPrefix": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1"}, + "provisioningState": "Succeeded"}, "name": "prefixFrontEnd", "etag": "W/\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\""}], + "backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "properties": {"provisioningState": "Succeeded"}, "name": "lb1bepool", "etag": + "W/\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\""}], "loadBalancingRules": [], + "probes": [], "inboundNatRules": [], "inboundNatPools": [], "outboundRules": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1", + "properties": {"allocatedOutboundPorts": 512, "frontendIPConfigurations": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd"}], + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool"}, + "provisioningState": "Succeeded", "protocol": "Tcp", "enableTcpReset": true, + "idleTimeoutInMinutes": 4}, "name": "rule1", "etag": "W/\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\""}, + {"properties": {"frontendIPConfigurations": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIpConfigurations/prefixFrontEnd"}], + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool"}, + "idleTimeoutInMinutes": 20}, "name": "rule2"}], "resourceGuid": "b7c80fe4-14db-43c9-baa0-a2d70a7d468f", + "provisioningState": "Succeeded"}, "etag": "W/\\"1ade8a94-e8b8-4c0c-855d-2e39176aaf7b\\""}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + Content-Length: ['3780'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 20,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/6e85ad2e-6100-4f08-b467-a5afe8181a52?api-version=2018-07-01'] + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:43:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/6e85ad2e-6100-4f08-b467-a5afe8181a52?api-version=2018-07-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: ['Tue, 21 Aug 2018 21:44:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule create] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 20,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:01 GMT'] + etag: [W/"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule update] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 20,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:02 GMT'] + etag: [W/"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus2", "tags": {}, "sku": {"name": "Standard"}, "properties": + {"frontendIPConfigurations": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}, + "provisioningState": "Succeeded"}, "name": "LoadBalancerFrontEnd", "etag": "W/\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\""}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPPrefix": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1"}, + "provisioningState": "Succeeded"}, "name": "prefixFrontEnd", "etag": "W/\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\""}], + "backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "properties": {"provisioningState": "Succeeded"}, "name": "lb1bepool", "etag": + "W/\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\""}], "loadBalancingRules": [], + "probes": [], "inboundNatRules": [], "inboundNatPools": [], "outboundRules": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1", + "properties": {"allocatedOutboundPorts": 512, "frontendIPConfigurations": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd"}], + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool"}, + "provisioningState": "Succeeded", "protocol": "Tcp", "enableTcpReset": true, + "idleTimeoutInMinutes": 4}, "name": "rule1", "etag": "W/\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\""}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2", + "properties": {"allocatedOutboundPorts": 1024, "frontendIPConfigurations": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd"}], + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool"}, + "provisioningState": "Succeeded", "protocol": "Tcp", "enableTcpReset": false, + "idleTimeoutInMinutes": 25}, "name": "rule2", "etag": "W/\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\""}], + "resourceGuid": "b7c80fe4-14db-43c9-baa0-a2d70a7d468f", "provisioningState": + "Succeeded"}, "etag": "W/\\"87b8cf55-2676-4de2-8b8c-16d89ea1c4b6\\""}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule update] + Connection: [keep-alive] + Content-Length: ['4162'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/f35c1184-853c-4ad2-ab05-dedb3100418b?api-version=2018-07-01'] + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule update] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/f35c1184-853c-4ad2-ab05-dedb3100418b?api-version=2018-07-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: ['Tue, 21 Aug 2018 21:44:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule update] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:35 GMT'] + etag: [W/"d0daeccb-8aab-49dd-b010-2f5cf68a73f3"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule list] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:36 GMT'] + etag: [W/"d0daeccb-8aab-49dd-b010-2f5cf68a73f3"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule show] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:37 GMT'] + etag: [W/"d0daeccb-8aab-49dd-b010-2f5cf68a73f3"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule delete] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ },\r\n \"outboundRules\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"prefixFrontEnd\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 512,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + true,\r\n \"idleTimeoutInMinutes\": 4,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['6654'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:37 GMT'] + etag: [W/"d0daeccb-8aab-49dd-b010-2f5cf68a73f3"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus2", "tags": {}, "sku": {"name": "Standard"}, "properties": + {"frontendIPConfigurations": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1"}, + "provisioningState": "Succeeded"}, "name": "LoadBalancerFrontEnd", "etag": "W/\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\""}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd", + "properties": {"privateIPAllocationMethod": "Dynamic", "publicIPPrefix": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1"}, + "provisioningState": "Succeeded"}, "name": "prefixFrontEnd", "etag": "W/\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\""}], + "backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "properties": {"provisioningState": "Succeeded"}, "name": "lb1bepool", "etag": + "W/\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\""}], "loadBalancingRules": [], + "probes": [], "inboundNatRules": [], "inboundNatPools": [], "outboundRules": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2", + "properties": {"allocatedOutboundPorts": 1024, "frontendIPConfigurations": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd"}], + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool"}, + "provisioningState": "Succeeded", "protocol": "Tcp", "enableTcpReset": false, + "idleTimeoutInMinutes": 25}, "name": "rule2", "etag": "W/\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\""}], + "resourceGuid": "b7c80fe4-14db-43c9-baa0-a2d70a7d468f", "provisioningState": + "Succeeded"}, "etag": "W/\\"d0daeccb-8aab-49dd-b010-2f5cf68a73f3\\""}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule delete] + Connection: [keep-alive] + Content-Length: ['3192'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ }\r\n }\r\n },\r\n {\r\n \"name\": \"prefixFrontEnd\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/f663ce20-1f45-45a8-a74c-9c241e009589?api-version=2018-07-01'] + cache-control: [no-cache] + content-length: ['4827'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:44:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule delete] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/f663ce20-1f45-45a8-a74c-9c241e009589?api-version=2018-07-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: ['Tue, 21 Aug 2018 21:45:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule delete] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ }\r\n }\r\n },\r\n {\r\n \"name\": \"prefixFrontEnd\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['4827'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:45:10 GMT'] + etag: [W/"8539118b-f268-4a3b-b07d-d4301c1e8190"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network lb outbound-rule list] + Connection: [keep-alive] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 networkmanagementclient/2.0.1 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2018-07-01 + response: + body: {string: "{\r\n \"name\": \"lb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus2\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"b7c80fe4-14db-43c9-baa0-a2d70a7d468f\",\r\n \"frontendIPConfigurations\": + [\r\n {\r\n \"name\": \"LoadBalancerFrontEnd\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/LoadBalancerFrontEnd\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPAddresses/PublicIPlb1\"\r\n + \ }\r\n }\r\n },\r\n {\r\n \"name\": \"prefixFrontEnd\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"outboundRules\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ],\r\n \"publicIPPrefix\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/publicIPPrefixes/prefix1\"\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/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n + \ }\r\n ],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n + \ \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": + \"rule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule2\",\r\n + \ \"etag\": \"W/\\\"8539118b-f268-4a3b-b07d-d4301c1e8190\\\"\",\r\n + \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": + 1024,\r\n \"protocol\": \"Tcp\",\r\n \"enableTcpReset\": + false,\r\n \"idleTimeoutInMinutes\": 25,\r\n \"backendAddressPool\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool\"\r\n + \ },\r\n \"frontendIPConfigurations\": [\r\n {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_network_lb_outbound_rules000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/prefixFrontEnd\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatPools\": + []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": + \"Regional\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['4827'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 21 Aug 2018 21:45:11 GMT'] + etag: [W/"8539118b-f268-4a3b-b07d-d4301c1e8190"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.1 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 + msrest_azure/0.5.0 resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.45] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_network_lb_outbound_rules000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 21 Aug 2018 21:45:12 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTkVUV09SSzo1RkxCOjVGT1VUQk9VTkQ6NUZSVUxFUzZKWFZOSU1HUHw1RUVFOTIzQTU3ODBBM0VGLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/test_network_commands.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/test_network_commands.py index df28b5d6e28..ab0ccdf214b 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/test_network_commands.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/test_network_commands.py @@ -949,6 +949,53 @@ def test_network_load_balancer_ip_config(self, resource_group): checks=self.check("subnet.contains(id, 'subnet2')", True)) +class NetworkLoadBalancerOutboundRulesScenarioTest(ScenarioTest): + + @ResourceGroupPreparer(name_prefix='test_network_lb_outbound_rules', location='eastus2') + def test_network_load_balancer_outbound_rules(self, resource_group, resource_group_location): + + self.kwargs.update({ + 'loc': resource_group_location, + 'lb': 'lb1', + 'prefix': 'prefix1', + 'frontend1': 'LoadBalancerFrontEnd', + 'frontend2': 'prefixFrontEnd', + 'backend': 'lb1bepool', + 'rule1': 'rule1', + 'rule2': 'rule2' + }) + + self.cmd('network lb create -g {rg} -n {lb} --sku Standard') + self.cmd('network public-ip prefix create -g {rg} -n {prefix} --length 30') + self.cmd('network lb frontend-ip create -g {rg} --lb-name {lb} -n {frontend2} --public-ip-prefix {prefix}') + self.cmd('network lb outbound-rule create -g {rg} --lb-name {lb} -n {rule1} --address-pool {backend} --enable-tcp-reset --frontend-ip-configs {frontend1} --outbound-ports 512 --protocol Tcp', checks=[ + self.check('enableTcpReset', True), + self.check('protocol', 'Tcp'), + self.check('allocatedOutboundPorts', 512), + self.check("contains(backendAddressPool.id, '{backend}')", True), + self.check("contains(frontendIpConfigurations[0].id, '{frontend1}')", True) + ]) + self.cmd('network lb outbound-rule create -g {rg} --lb-name {lb} -n {rule2} --address-pool {backend} --frontend-ip-configs {frontend2} --idle-timeout 20', checks=[ + self.check('idleTimeoutInMinutes', 20), + self.check("contains(backendAddressPool.id, '{backend}')", True), + self.check("contains(frontendIpConfigurations[0].id, '{frontend2}')", True) + ]) + self.cmd('network lb outbound-rule update -g {rg} --lb-name {lb} -n {rule2} --idle-timeout 25', + checks=self.check('idleTimeoutInMinutes', 25)) + self.cmd('network lb outbound-rule list -g {rg} --lb-name {lb}', + checks=self.check('length(@)', 2)) + self.cmd('network lb outbound-rule show -g {rg} --lb-name {lb} -n {rule1}', checks=[ + self.check('enableTcpReset', True), + self.check('protocol', 'Tcp'), + self.check('allocatedOutboundPorts', 512), + self.check("contains(backendAddressPool.id, '{backend}')", True), + self.check("contains(frontendIpConfigurations[0].id, '{frontend1}')", True) + ]) + self.cmd('network lb outbound-rule delete -g {rg} --lb-name {lb} -n {rule1}') + self.cmd('network lb outbound-rule list -g {rg} --lb-name {lb}', + checks=self.check('length(@)', 1)) + + class NetworkLoadBalancerSubresourceScenarioTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_test_lb_nat_rules')