diff --git a/src/azure-cli/azure/cli/command_modules/network/_client_factory.py b/src/azure-cli/azure/cli/command_modules/network/_client_factory.py index 81182f90bed..8946ad06042 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/network/_client_factory.py @@ -252,6 +252,18 @@ def cf_virtual_router(cli_ctx, _): return network_client_factory(cli_ctx).virtual_routers +def cf_virtual_hub(cli_ctx, _): + return network_client_factory(cli_ctx).virtual_hubs + + +def cf_virtual_hub_bgp_connection(cli_ctx, _): + return network_client_factory(cli_ctx).virtual_hub_bgp_connection + + +def cf_virtual_hub_bgp_connections(cli_ctx, _): + return network_client_factory(cli_ctx).virtual_hub_bgp_connections + + def cf_virtual_router_peering(cli_ctx, _): return network_client_factory(cli_ctx).virtual_router_peerings diff --git a/src/azure-cli/azure/cli/command_modules/network/_help.py b/src/azure-cli/azure/cli/command_modules/network/_help.py index efa96f80ac3..9ecd7e8de86 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_help.py +++ b/src/azure-cli/azure/cli/command_modules/network/_help.py @@ -5803,6 +5803,85 @@ short-summary: Delete a virtual router peering. """ +helps['network routeserver'] = """ +type: group +short-summary: Manage the virtual hub router. +""" + +helps['network routeserver create'] = """ +type: command +short-summary: Create a virtual hub router. +examples: + - name: Create a virtual hub router. + text: | + az network routeserver create --resource-group myresourcegroup --name myvirtualrouter --hosted-subnet my_subnet_id +""" + +helps['network routeserver update'] = """ +type: command +short-summary: Update a virtual hub router. +examples: + - name: Update a virtual hub router. (autogenerated) + text: | + az network routeserver update --name myvirtualrouter --resource-group myresourcegroup --tags super_secure no_80 no_22 + crafted: true +""" + +helps['network routeserver show'] = """ +type: command +short-summary: Show a virtual hub router. +""" + +helps['network routeserver list'] = """ +type: command +short-summary: List all virtual hub routers under a subscription or a resource group. +""" + +helps['network routeserver delete'] = """ +type: command +short-summary: Delete a virtual hub router under a resource group. +""" + +helps['network routeserver peering'] = """ +type: group +short-summary: Manage the virtual hub router peering. +""" + +helps['network routeserver peering create'] = """ +type: command +short-summary: Create a virtual hub router peering. +""" + +helps['network routeserver peering update'] = """ +type: command +short-summary: Update a virtual hub router peering. +""" + +helps['network routeserver peering list'] = """ +type: command +short-summary: List all virtual hub router peerings under a resource group. +""" + +helps['network routeserver peering show'] = """ +type: command +short-summary: Show a virtual hub router peering +""" + +helps['network routeserver peering delete'] = """ +type: command +short-summary: Delete a virtual hub router peering. +""" + +helps['network routeserver peering list-learned-routes'] = """ +type: command +short-summary: List all routes the virtual hub bgp connection has learned. +""" + +helps['network routeserver peering list-advertised-routes'] = """ +type: command +short-summary: List all routes the virtual hub bgp connection is advertising to the specified peer. +""" + helps['network watcher'] = """ type: group short-summary: Manage the Azure Network Watcher. diff --git a/src/azure-cli/azure/cli/command_modules/network/_params.py b/src/azure-cli/azure/cli/command_modules/network/_params.py index 6f908ad72f8..ca486d495a9 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_params.py +++ b/src/azure-cli/azure/cli/command_modules/network/_params.py @@ -1942,6 +1942,31 @@ def load_arguments(self, _): c.argument('peer_asn', type=int, help='Peer ASN. Its range is from 1 to 4294967295.') c.argument('peer_ip', help='Peer IP address.') + with self.argument_context('network routeserver') as c: + c.argument('virtual_hub_name', options_list=['--name', '-n'], id_part='name', + help='The name of the Virtual Hub Router.') + c.argument('hosted_subnet', help='The ID of a subnet where Virtual Hub Router would be deployed') + c.argument('allow_branch_to_branch_traffic', options_list=['--allow-b2b-traffic'], + arg_type=get_three_state_flag(), help='Allow branch to branch traffic.') + + with self.argument_context('network routeserver create') as c: + c.argument('virtual_hub_name', id_part=None) + + with self.argument_context('network routeserver peering') as c: + c.argument('virtual_hub_name', options_list=['--vrouter-name'], id_part='name', + help='The name of the Virtual Hub Router.') + c.argument('connection_name', options_list=['--name', '-n'], id_part='child_name_1', + help='The name of the Virtual Hub Router Peering') + c.argument('peer_asn', type=int, help='Peer ASN. Its range is from 1 to 4294967295.') + c.argument('peer_ip', help='Peer IP address.') + + with self.argument_context('network routeserver peering create') as c: + c.argument('virtual_hub_name', id_part=None) + c.argument('connection_name', id_part=None) + + with self.argument_context('network routeserver peering list') as c: + c.argument('virtual_hub_name', id_part=None) + param_map = { 'dh_group': 'DhGroup', 'ike_encryption': 'IkeEncryption', diff --git a/src/azure-cli/azure/cli/command_modules/network/commands.py b/src/azure-cli/azure/cli/command_modules/network/commands.py index 6174cf306c2..f25babb5097 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -29,7 +29,8 @@ cf_service_tags, cf_private_link_services, cf_private_endpoint_types, cf_peer_express_route_circuit_connections, cf_virtual_router, cf_virtual_router_peering, cf_service_aliases, cf_bastion_hosts, cf_flow_logs, cf_private_dns_zone_groups, cf_security_partner_providers, cf_load_balancer_backend_pools, - cf_network_virtual_appliances, cf_virtual_appliance_skus, cf_virtual_appliance_sites) + cf_network_virtual_appliances, cf_virtual_appliance_skus, cf_virtual_appliance_sites, cf_virtual_hub, + cf_virtual_hub_bgp_connection, cf_virtual_hub_bgp_connections) from azure.cli.command_modules.network._util import ( list_network_resource_property, get_network_resource_property_entry, delete_network_resource_property_entry) from azure.cli.command_modules.network._format import ( @@ -63,6 +64,8 @@ process_appgw_waf_policy_update, process_cross_region_lb_frontend_ip_namespace, process_cross_region_lb_create_namespace) ROUTE_TABLE_DEPRECATION_INFO = 'network vhub route-table' +NETWORK_VROUTER_DEPRECATION_INFO = 'network routeserver' +NETWORK_VROUTER_PEERING_DEPRECATION_INFO = 'network routeserver peering' # pylint: disable=too-many-locals, too-many-statements @@ -345,6 +348,42 @@ def load_command_table(self, _): min_api='2018-07-01' ) + network_virtual_hub_sdk = CliCommandType( + operations_tmpl='azure.mgmt.network.operations#VirtualHubsOperations.{}', + client_factory=cf_virtual_hub, + min_api='2020-07-01' + ) + + network_virtual_hub_update_sdk = CliCommandType( + operations_tmpl='azure.cli.command_modules.network.custom#{}', + client_factory=cf_virtual_hub, + min_api='2020-07-01' + ) + + network_virtual_hub_bgp_connection_sdk = CliCommandType( + operations_tmpl='azure.mgmt.network.operations#VirtualHubBgpConnectionOperations.{}', + client_factory=cf_virtual_hub_bgp_connection, + min_api='2020-07-01' + ) + + network_virtual_hub_bgp_connection_update_sdk = CliCommandType( + operations_tmpl='azure.cli.command_modules.network.custom#{}', + client_factory=cf_virtual_hub_bgp_connection, + min_api='2020-07-01' + ) + + network_virtual_hub_bgp_connections_sdk = CliCommandType( + operations_tmpl='azure.mgmt.network.operations#VirtualHubBgpConnectionsOperations.{}', + client_factory=cf_virtual_hub_bgp_connections, + min_api='2020-07-01' + ) + + network_virtual_hub_bgp_connections_update_sdk = CliCommandType( + operations_tmpl='azure.cli.command_modules.network.custom#{}', + client_factory=cf_virtual_hub_bgp_connections, + min_api='2020-07-01' + ) + network_vrouter_sdk = CliCommandType( operations_tmpl='azure.mgmt.network.operations#VirtualRoutersOperations.{}', client_factory=cf_virtual_router, @@ -1309,7 +1348,8 @@ def _make_singular(value): # endregion # region VirtualRouter - with self.command_group('network vrouter', network_vrouter_sdk) as g: + with self.command_group('network vrouter', network_vrouter_sdk, + deprecate_info=self.deprecate(redirect=NETWORK_VROUTER_DEPRECATION_INFO, hide=True)) as g: g.custom_command('create', 'create_virtual_router') g.generic_update_command('update', getter_name='virtual_router_update_getter', @@ -1321,7 +1361,9 @@ def _make_singular(value): g.custom_show_command('show', 'show_virtual_router') g.custom_command('list', 'list_virtual_router') - with self.command_group('network vrouter peering', network_vrouter_peering_sdk) as g: + with self.command_group( + 'network vrouter peering', network_vrouter_peering_sdk, + deprecate_info=self.deprecate(redirect=NETWORK_VROUTER_PEERING_DEPRECATION_INFO, hide=True)) as g: g.custom_command('create', 'create_virtual_router_peering') g.generic_update_command('update', getter_name='virtual_router_peering_update_getter', @@ -1334,6 +1376,35 @@ def _make_singular(value): g.custom_command('list', 'list_virtual_router_peering') # endregion + # region VirtualHub + with self.command_group('network routeserver', network_virtual_hub_sdk, + custom_command_type=network_virtual_hub_update_sdk) as g: + g.custom_command('create', 'create_virtual_hub') + g.generic_update_command('update', + setter_name='virtual_hub_update_setter', + setter_type=network_virtual_hub_update_sdk, + custom_func_name='update_virtual_hub') + g.custom_command('delete', 'delete_virtual_hub', supports_no_wait=True, confirmation=True) + g.show_command('show', 'get') + g.custom_command('list', 'list_virtual_hub') + + with self.command_group('network routeserver peering', network_virtual_hub_bgp_connection_sdk, + custom_command_type=network_virtual_hub_bgp_connection_update_sdk) as g: + g.custom_command('create', 'create_virtual_hub_bgp_connection', supports_no_wait=True) + g.generic_update_command('update', + setter_name='virtual_hub_bgp_connection_update_setter', + setter_type=network_virtual_hub_bgp_connection_update_sdk, + custom_func_name='update_virtual_hub_bgp_connection') + g.custom_command('delete', 'delete_virtual_hub_bgp_connection', supports_no_wait=True, confirmation=True) + g.show_command('show', 'get') + + with self.command_group('network routeserver peering', network_virtual_hub_bgp_connections_sdk, + custom_command_type=network_virtual_hub_bgp_connections_update_sdk) as g: + g.command('list', 'list') + g.custom_command('list-learned-routes', 'list_virtual_hub_bgp_connection_learned_routes') + g.custom_command('list-advertised-routes', 'list_virtual_hub_bgp_connection_advertised_routes') + # endregion + # region Bastion with self.command_group('network bastion', network_bastion_hosts_sdk, is_preview=True) as g: g.custom_command('create', 'create_bastion_host') diff --git a/src/azure-cli/azure/cli/command_modules/network/custom.py b/src/azure-cli/azure/cli/command_modules/network/custom.py index e3614c8463d..fe0eec91ed3 100644 --- a/src/azure-cli/azure/cli/command_modules/network/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/custom.py @@ -6496,6 +6496,113 @@ def remove_vnet_gateway_aad(cmd, resource_group_name, gateway_name, no_wait=Fals # endregion +# region VirtualHub +def create_virtual_hub(cmd, client, + resource_group_name, + virtual_hub_name, + hosted_subnet=None, + location=None, + tags=None): + from azure.core.exceptions import HttpResponseError + from azure.cli.core.commands import LongRunningOperation + + try: + client.get(resource_group_name, virtual_hub_name) + raise CLIError('The VirtualHub "{}" under resource group "{}" exists'.format( + virtual_hub_name, resource_group_name)) + except HttpResponseError: + pass + + SubResource = cmd.get_models('SubResource') + + VirtualHub, HubIpConfiguration = cmd.get_models('VirtualHub', 'HubIpConfiguration') + + hub = VirtualHub(tags=tags, location=location, + virtual_wan=None, + sku='Standard') + vhub_poller = client.begin_create_or_update(resource_group_name, virtual_hub_name, hub) + LongRunningOperation(cmd.cli_ctx)(vhub_poller) + + ip_config = HubIpConfiguration(subnet=SubResource(id=hosted_subnet)) + vhub_ip_config_client = network_client_factory(cmd.cli_ctx).virtual_hub_ip_configuration + try: + vhub_ip_poller = vhub_ip_config_client.begin_create_or_update( + resource_group_name, virtual_hub_name, 'Default', ip_config) + LongRunningOperation(cmd.cli_ctx)(vhub_ip_poller) + except Exception as ex: + logger.error(ex) + try: + vhub_ip_config_client.begin_delete(resource_group_name, virtual_hub_name, 'Default') + except HttpResponseError: + pass + client.begin_delete(resource_group_name, virtual_hub_name) + raise ex + + return client.get(resource_group_name, virtual_hub_name) + + +def virtual_hub_update_setter(client, resource_group_name, virtual_hub_name, parameters): + return client.begin_create_or_update(resource_group_name, virtual_hub_name, parameters) + + +def update_virtual_hub(cmd, instance, + tags=None, + allow_branch_to_branch_traffic=None): + with cmd.update_context(instance) as c: + c.set_param('tags', tags) + c.set_param('allow_branch_to_branch_traffic', allow_branch_to_branch_traffic) + return instance + + +def delete_virtual_hub(cmd, client, resource_group_name, virtual_hub_name, no_wait=False): + from azure.cli.core.commands import LongRunningOperation + vhub_ip_config_client = network_client_factory(cmd.cli_ctx).virtual_hub_ip_configuration + poller = vhub_ip_config_client.begin_delete(resource_group_name, virtual_hub_name, 'Default') + LongRunningOperation(cmd.cli_ctx)(poller) + return sdk_no_wait(no_wait, client.begin_delete, resource_group_name, virtual_hub_name) + + +def list_virtual_hub(client, resource_group_name=None): + if resource_group_name is not None: + return client.list_by_resource_group(resource_group_name) + return client.list() + + +def create_virtual_hub_bgp_connection(cmd, client, resource_group_name, virtual_hub_name, connection_name, + peer_asn, peer_ip, no_wait=False): + BgpConnection = cmd.get_models('BgpConnection') + vhub_bgp_conn = BgpConnection(name=connection_name, peer_asn=peer_asn, peer_ip=peer_ip) + return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, + virtual_hub_name, connection_name, vhub_bgp_conn) + + +def virtual_hub_bgp_connection_update_setter(client, resource_group_name, + virtual_hub_name, connection_name, + parameters): + return client.begin_create_or_update(resource_group_name, virtual_hub_name, connection_name, parameters) + + +def update_virtual_hub_bgp_connection(cmd, instance, peer_asn=None, peer_ip=None): + with cmd.update_context(instance) as c: + c.set_param('peer_asn', peer_asn) + c.set_param('peer_ip', peer_ip) + return instance + + +def delete_virtual_hub_bgp_connection(client, resource_group_name, + virtual_hub_name, connection_name, no_wait=False): + return sdk_no_wait(no_wait, client.begin_delete, resource_group_name, virtual_hub_name, connection_name) + + +def list_virtual_hub_bgp_connection_learned_routes(client, resource_group_name, virtual_hub_name, connection_name): + return client.begin_list_learned_routes(resource_group_name, virtual_hub_name, connection_name) + + +def list_virtual_hub_bgp_connection_advertised_routes(client, resource_group_name, virtual_hub_name, connection_name): + return client.begin_list_advertised_routes(resource_group_name, virtual_hub_name, connection_name) +# endregion + + # region VirtualRouter def create_virtual_router(cmd, resource_group_name, diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_hub_router_scenario.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_hub_router_scenario.yaml new file mode 100644 index 00000000000..f781746756b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_hub_router_scenario.yaml @@ -0,0 +1,3254 @@ +interactions: +- request: + body: '{"location": "centraluseuap", "tags": {}, "properties": {"addressSpace": + {"addressPrefixes": ["10.0.0.0/24"]}, "dhcpOptions": {}, "subnets": [{"name": + "subnet1", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '212' + Content-Type: + - application/json + ParameterSetName: + - -g -n --location --subnet-name --address-prefix + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vnet2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2\",\r\n + \ \"etag\": \"W/\\\"22e5250f-b32d-480b-9d62-07a81344a9b2\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"a9e28b06-9452-424c-8d75-9dbca3dda058\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/24\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\",\r\n + \ \"etag\": \"W/\\\"22e5250f-b32d-480b-9d62-07a81344a9b2\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/7d21ad90-63aa-4d61-bb22-f1b5dd2f6cdb?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '1444' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:09:34 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-arm-service-request-id: + - 735971a3-3567-49d6-84a7-c263b8d72d54 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --subnet-name --address-prefix + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/7d21ad90-63aa-4d61-bb22-f1b5dd2f6cdb?api-version=2020-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, 12 Jan 2021 03:09: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-arm-service-request-id: + - 602287ef-5954-424b-bb11-90c97e846639 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --subnet-name --address-prefix + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vnet2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2\",\r\n + \ \"etag\": \"W/\\\"4dbf28b4-1c52-464c-af89-f21eaf61f4e0\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"a9e28b06-9452-424c-8d75-9dbca3dda058\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/24\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\",\r\n + \ \"etag\": \"W/\\\"4dbf28b4-1c52-464c-af89-f21eaf61f4e0\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1446' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:09:38 GMT + etag: + - W/"4dbf28b4-1c52-464c-af89-f21eaf61f4e0" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4fd459b3-4110-4426-bc0e-8a61e30a871b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -g --vnet-name -n --remove + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\",\r\n + \ \"etag\": \"W/\\\"4dbf28b4-1c52-464c-af89-f21eaf61f4e0\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '586' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:09:39 GMT + etag: + - W/"4dbf28b4-1c52-464c-af89-f21eaf61f4e0" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6bce11e4-a120-48df-9a3b-8b0b6e49750c + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1", + "name": "subnet1", "properties": {"addressPrefix": "10.0.0.0/24", "delegations": + [], "privateEndpointNetworkPolicies": "Enabled", "privateLinkServiceNetworkPolicies": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + Content-Length: + - '397' + Content-Type: + - application/json + ParameterSetName: + - -g --vnet-name -n --remove + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\",\r\n + \ \"etag\": \"W/\\\"b5e27d4a-9fab-4236-99eb-73b59b4ab5e5\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e775c162-4ee5-45a1-8960-cfb29db8032f?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '586' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:09:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 63a94204-d9ab-4e36-aa53-5a1f59f83561 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -g --vnet-name -n --remove + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e775c162-4ee5-45a1-8960-cfb29db8032f?api-version=2020-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, 12 Jan 2021 03:10: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 + x-ms-arm-service-request-id: + - c01f3b7f-e9af-4fe5-afa7-ed5babb77b1b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -g --vnet-name -n --remove + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\",\r\n + \ \"etag\": \"W/\\\"b5e27d4a-9fab-4236-99eb-73b59b4ab5e5\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '586' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:10:10 GMT + etag: + - W/"b5e27d4a-9fab-4236-99eb-73b59b4ab5e5" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4028bb91-8cd3-4742-91ef-3fd61a51c89e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vnet2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2\",\r\n + \ \"etag\": \"W/\\\"b5e27d4a-9fab-4236-99eb-73b59b4ab5e5\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"a9e28b06-9452-424c-8d75-9dbca3dda058\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/24\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\",\r\n + \ \"etag\": \"W/\\\"b5e27d4a-9fab-4236-99eb-73b59b4ab5e5\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1446' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:10:11 GMT + etag: + - W/"b5e27d4a-9fab-4236-99eb-73b59b4ab5e5" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 32b15616-27a7-423d-826a-4625b7dd3f7a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/virtualHubs/vrouter2'' + under resource group ''cli_test_virtual_hub_router000001'' was not found. + For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '285' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:10:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "centraluseuap", "properties": {"sku": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"399e2eae-8547-45ff-9298-60e47bd17bf3\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"None\",\r\n \"allowBranchToBranchTraffic\": false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/06f1ede2-3785-4149-898f-0e36964975da?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '663' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:10:19 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-arm-service-request-id: + - eb860665-72ae-45e9-b920-aced1c96d31d + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/06f1ede2-3785-4149-898f-0e36964975da?api-version=2020-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, 12 Jan 2021 03:10:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6ea74107-95a1-40ba-852d-d9c1229bf6bd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"399e2eae-8547-45ff-9298-60e47bd17bf3\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"None\",\r\n \"allowBranchToBranchTraffic\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '663' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:10:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d1c02845-b77e-4f64-9d42-3f7d90c7b3fb + status: + code: 200 + message: OK +- request: + body: '{"properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + Content-Length: + - '246' + Content-Type: + - application/json + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/ipConfigurations/Default?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"Default\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/ipConfigurations/Default\",\r\n + \ \"etag\": \"W/\\\"b1fd90ff-f5c5-43f5-b9be-b60ac46f43fc\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs/ipConfigurations\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"privateIPAllocationMethod\": + \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\"\r\n + \ }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '728' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:10:52 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-arm-service-request-id: + - 49169397-f58a-465d-bc05-a36c08a1722e + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:11:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5d917a66-5db6-41f4-8f98-65c1ba5fdf23 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:11:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0ed6eede-085a-4a63-bf0d-9ccdedf47edf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:11:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0e1407c7-0818-468d-b979-1b36e7666732 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:12:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 394b0533-99e3-4f6b-b885-e1577488749c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:13:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b73c21c7-bb1e-49bc-b558-290c7937172c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:16:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9840d517-2d16-4fd9-bd37-7a593506df3d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:17: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 + x-ms-arm-service-request-id: + - 77271371-6cc3-49c8-ab7a-e94c8feeaccf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:19:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 151d4a13-f20d-49a6-b2c7-c9c4b839dff4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:21:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e4513727-0bab-4bfd-b20e-301cabb11b4f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:22:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a156e05e-df2c-4822-8ba4-2aecb116b957 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:24: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-arm-service-request-id: + - 1d51d3ff-d51b-4ea2-9a82-21b2e9ae827d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/e54ba9ca-4746-4e1c-a9e7-9c91953fd0e4?api-version=2020-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, 12 Jan 2021 03:26:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 12541380-67e4-43f7-ac5c-dd537563c618 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/ipConfigurations/Default?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"Default\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/ipConfigurations/Default\",\r\n + \ \"etag\": \"W/\\\"f5d73f58-fb6f-4609-b580-6ab86ee5d166\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs/ipConfigurations\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"privateIPAllocationMethod\": + \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet1\"\r\n + \ }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '729' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:26:20 GMT + etag: + - W/"f5d73f58-fb6f-4609-b580-6ab86ee5d166" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4b06312a-f914-463c-80fe-322a21c840d5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router create + Connection: + - keep-alive + ParameterSetName: + - -g -l -n --hosted-subnet + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"f5d73f58-fb6f-4609-b580-6ab86ee5d166\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 65515,\r\n \"virtualRouterIps\": [\r\n + \ \"10.0.0.4\",\r\n \"10.0.0.5\"\r\n ],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"Provisioned\",\r\n \"allowBranchToBranchTraffic\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:26:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a57e368b-7e6a-4ce9-a4f6-d43b75fcf090 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"f5d73f58-fb6f-4609-b580-6ab86ee5d166\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 65515,\r\n \"virtualRouterIps\": [\r\n + \ \"10.0.0.4\",\r\n \"10.0.0.5\"\r\n ],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"Provisioned\",\r\n \"allowBranchToBranchTraffic\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:26:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - cd210436-e163-4f67-ab33-d4b1d3ea48e5 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2", + "location": "centraluseuap", "properties": {"routeTable": {"routes": []}, "virtualHubRouteTableV2s": + [], "sku": "Standard", "virtualRouterAsn": 65515, "virtualRouterIps": ["10.0.0.4", + "10.0.0.5"], "allowBranchToBranchTraffic": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + Content-Length: + - '435' + Content-Type: + - application/json + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"e3cd28a8-6669-449e-9f55-c82af1c50752\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 65515,\r\n \"virtualRouterIps\": [\r\n + \ \"10.0.0.4\",\r\n \"10.0.0.5\"\r\n ],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"Provisioned\",\r\n \"allowBranchToBranchTraffic\": true\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/8ab0ccb1-c31a-4319-a352-7342bb98b45c?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '715' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:26: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-arm-service-request-id: + - 4df15c21-254d-440e-b469-16a3b1723ce0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/8ab0ccb1-c31a-4319-a352-7342bb98b45c?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:26:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e30a1a82-c348-4a18-a57b-f3dd7818b1ad + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/8ab0ccb1-c31a-4319-a352-7342bb98b45c?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:26:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3678198a-4988-4637-ae31-46b1633e09fe + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/8ab0ccb1-c31a-4319-a352-7342bb98b45c?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:27:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5f75f3d4-f8eb-480d-b100-639f7148f650 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/8ab0ccb1-c31a-4319-a352-7342bb98b45c?api-version=2020-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, 12 Jan 2021 03:27:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a17b501b-2311-480b-bd09-63fb2d5bd4cc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router update + Connection: + - keep-alive + ParameterSetName: + - -g --name --allow-b2b-traffic + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"ba3c87f6-6c7a-4133-8cae-4e576c5d570a\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 65515,\r\n \"virtualRouterIps\": [\r\n + \ \"10.0.0.4\",\r\n \"10.0.0.5\"\r\n ],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"Provisioned\",\r\n \"allowBranchToBranchTraffic\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '716' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:27:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 95b2ed4b-d3b0-442c-9077-05f89bcca98f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs?api-version=2020-07-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vrouter2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"ba3c87f6-6c7a-4133-8cae-4e576c5d570a\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"virtualHubRouteTableV2s\": [],\r\n \"virtualRouterAsn\": + 65515,\r\n \"virtualRouterIps\": [\r\n \"10.0.0.4\",\r\n \"10.0.0.5\"\r\n + \ ],\r\n \"routeTable\": {\r\n \"routes\": []\r\n },\r\n + \ \"sku\": \"Standard\",\r\n \"routingState\": \"Provisioned\",\r\n + \ \"allowBranchToBranchTraffic\": true\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '829' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:27:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ac7e7b76-ed85-4715-8627-c6d79058b5de + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"vrouter2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2\",\r\n + \ \"etag\": \"W/\\\"ba3c87f6-6c7a-4133-8cae-4e576c5d570a\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"virtualRouterAsn\": 65515,\r\n \"virtualRouterIps\": [\r\n + \ \"10.0.0.4\",\r\n \"10.0.0.5\"\r\n ],\r\n \"routeTable\": + {\r\n \"routes\": []\r\n },\r\n \"sku\": \"Standard\",\r\n \"routingState\": + \"Provisioned\",\r\n \"allowBranchToBranchTraffic\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '716' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:27:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 65b38654-471e-4728-949c-27cae5211a82 + status: + code: 200 + message: OK +- request: + body: '{"name": "peer1", "properties": {"peerAsn": 11000, "peerIp": "10.0.0.120"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering create + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json + ParameterSetName: + - -g --vrouter-name -n --peer-asn --peer-ip + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"peer1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1\",\r\n + \ \"etag\": \"W/\\\"b20d2d9d-a016-4948-9650-25ddc414a21b\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs/bgpConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"peerIp\": \"10.0.0.120\",\r\n + \ \"peerAsn\": 11000\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1b6038b6-07fa-454b-a352-c992cd126d1c?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '478' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:27:49 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-arm-service-request-id: + - 71ef33d1-9570-43bb-b380-3b6bca1ea7cd + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering create + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n --peer-asn --peer-ip + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1b6038b6-07fa-454b-a352-c992cd126d1c?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:27:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6df7d9b0-dcbe-423b-896e-0315b061a47c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering create + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n --peer-asn --peer-ip + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1b6038b6-07fa-454b-a352-c992cd126d1c?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:28: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 + x-ms-arm-service-request-id: + - c29cbe02-47e8-4026-ae5d-790148ff883c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering create + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n --peer-asn --peer-ip + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1b6038b6-07fa-454b-a352-c992cd126d1c?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:28: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 + x-ms-arm-service-request-id: + - dfb9a14a-0ad0-40df-9e4d-589e3a98a233 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering create + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n --peer-asn --peer-ip + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1b6038b6-07fa-454b-a352-c992cd126d1c?api-version=2020-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, 12 Jan 2021 03:29: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 + x-ms-arm-service-request-id: + - fd4382a0-a5f0-48cd-a50f-569764f688bc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering create + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n --peer-asn --peer-ip + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"peer1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1\",\r\n + \ \"etag\": \"W/\\\"a1ef615a-b606-496a-8e85-2fdeac3ef8ab\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs/bgpConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"peerIp\": \"10.0.0.120\",\r\n + \ \"peerAsn\": 11000\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '479' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:10 GMT + etag: + - W/"a1ef615a-b606-496a-8e85-2fdeac3ef8ab" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a2d0ec3d-a56a-42ae-a851-f0cff9033837 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering list + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections?api-version=2020-07-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"peer1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1\",\r\n + \ \"etag\": \"W/\\\"a1ef615a-b606-496a-8e85-2fdeac3ef8ab\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs/bgpConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peerIp\": + \"10.0.0.120\",\r\n \"peerAsn\": 11000\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '548' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - bd5171d0-b844-4a5d-8e15-024751846af2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering show + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"name\": \"peer1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1\",\r\n + \ \"etag\": \"W/\\\"a1ef615a-b606-496a-8e85-2fdeac3ef8ab\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs/bgpConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"peerIp\": \"10.0.0.120\",\r\n + \ \"peerAsn\": 11000\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '479' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:14 GMT + etag: + - W/"a1ef615a-b606-496a-8e85-2fdeac3ef8ab" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 568689b4-304e-4043-a350-a77a52b2c297 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering list-advertised-routes + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --vrouter-name -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1/advertisedRoutes?api-version=2020-07-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/9c3018c3-5927-4f27-9e92-65e79fcfb72f?api-version=2020-07-01 + 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-arm-service-request-id: + - c5610598-5d5a-4dc8-8ff5-2a9809b80cd2 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering list-advertised-routes + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/9c3018c3-5927-4f27-9e92-65e79fcfb72f?api-version=2020-07-01 + response: + body: + string: "{\r\n \"RouteServiceRole_IN_0\": [],\r\n \"RouteServiceRole_IN_1\": + []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '67' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/9c3018c3-5927-4f27-9e92-65e79fcfb72f?api-version=2020-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c5610598-5d5a-4dc8-8ff5-2a9809b80cd2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering list-learned-routes + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --vrouter-name -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1/learnedRoutes?api-version=2020-07-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/0853fbc7-266b-4013-9d0d-3fb2c32035fa?api-version=2020-07-01 + 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-arm-service-request-id: + - 547118d7-ecbe-4115-ba05-d6c2506e9b34 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering list-learned-routes + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/0853fbc7-266b-4013-9d0d-3fb2c32035fa?api-version=2020-07-01 + response: + body: + string: "{\r\n \"RouteServiceRole_IN_0\": [],\r\n \"RouteServiceRole_IN_1\": + []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '67' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/0853fbc7-266b-4013-9d0d-3fb2c32035fa?api-version=2020-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 547118d7-ecbe-4115-ba05-d6c2506e9b34 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --vrouter-name -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/bgpConnections/peer1?api-version=2020-07-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1884cc91-9ff2-4316-ac55-07f3551a5bd1?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 12 Jan 2021 03:29:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/1884cc91-9ff2-4316-ac55-07f3551a5bd1?api-version=2020-07-01 + 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-arm-service-request-id: + - 5cbecb97-21f1-4eb1-959f-b3d50a38fbde + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering delete + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1884cc91-9ff2-4316-ac55-07f3551a5bd1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:29:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 638748cf-7b1f-4afa-9437-8866a7e57d1f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering delete + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1884cc91-9ff2-4316-ac55-07f3551a5bd1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:30:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0380054d-49b1-4925-a31e-1726afff1287 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering delete + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1884cc91-9ff2-4316-ac55-07f3551a5bd1?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:30:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9761f223-246b-4d5d-90f5-9d414b777cb7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router peering delete + Connection: + - keep-alive + ParameterSetName: + - -g --vrouter-name -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1884cc91-9ff2-4316-ac55-07f3551a5bd1?api-version=2020-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, 12 Jan 2021 03:31:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 71d0cc79-c7a2-4c07-bea8-b874ebf7e460 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2/ipConfigurations/Default?api-version=2020-07-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 12 Jan 2021 03:31:02 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + 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-arm-service-request-id: + - c836a048-6cd9-4087-ac8b-23d9705b1088 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:31:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e665b6f6-96e5-4658-b633-e701d979acd7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:31:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4e828606-83ed-4ac7-a8f2-d0b6152e1cae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:31:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 37e35f62-ede8-4b4f-8cfa-51e81d426174 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:32:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6c64540c-a574-46c4-8d96-f0812024dacb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-07-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jan 2021 03:33:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6b7886be-fe64-4690-857e-a520a7784433 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/dcda1029-2797-4790-97cc-d14980cb8318?api-version=2020-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, 12 Jan 2021 03:36:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9397a3d2-98e5-4225-ac10-cb8111978466 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_virtual_hub_router000001/providers/Microsoft.Network/virtualHubs/vrouter2?api-version=2020-07-01 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/719b4b10-36d3-4315-872b-403d75999776?api-version=2020-07-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 12 Jan 2021 03:36:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operationResults/719b4b10-36d3-4315-872b-403d75999776?api-version=2020-07-01 + 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-arm-service-request-id: + - dd3cfd3a-5818-4285-9845-57ed33a09629 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtualhub-router delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.17.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/719b4b10-36d3-4315-872b-403d75999776?api-version=2020-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, 12 Jan 2021 03:36:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ce0baded-30d5-4915-9263-b188ef845a34 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py index aa02b75d107..dfef31b1062 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py @@ -3552,6 +3552,72 @@ def test_vrouter_with_virtual_hub_support(self, resource_group, resource_group_l self.cmd('network vrouter delete -g {rg} -n {vrouter}') +class NetworkVirtualHubRouter(ScenarioTest): + + @ResourceGroupPreparer(name_prefix='cli_test_virtual_hub_router', location='centraluseuap') + def test_network_virtual_hub_router_scenario(self, resource_group, resource_group_location): + self.kwargs.update({ + 'rg': resource_group, + 'location': resource_group_location, + 'vnet': 'vnet2', + 'subnet1': 'subnet1', + 'subnet2': 'subnet2', + 'vrouter': 'vrouter2', + 'peer': 'peer1' + }) + + self.cmd('network vnet create -g {rg} -n {vnet} ' + '--location {location} ' + '--subnet-name {subnet1} ' + '--address-prefix 10.0.0.0/24') + + # a cleanup program runs in short peoridically to assign subnets a NSG within that subscription + # which will block subnet is assigned to the virtual router + self.cmd('network vnet subnet update -g {rg} --vnet-name {vnet} -n {subnet1} --remove networkSecurityGroup') + vnet = self.cmd('network vnet show -g {rg} -n {vnet}').get_output_in_json() + + self.kwargs.update({ + 'subnet1_id': vnet['subnets'][0]['id'] + }) + + self.cmd('network routeserver create -g {rg} -l {location} -n {vrouter} ' + '--hosted-subnet {subnet1_id}', + checks=[ + self.check('type', 'Microsoft.Network/virtualHubs'), + self.check('ipConfigurations', None), + self.check('provisioningState', 'Succeeded') + ]) + + self.cmd('network routeserver update -g {rg} --name {vrouter} --allow-b2b-traffic', checks=[ + self.check('allowBranchToBranchTraffic', True) + ]) + + self.cmd('network routeserver list -g {rg}') + + self.cmd('network routeserver show -g {rg} -n {vrouter}', checks=[ + self.check('virtualRouterAsn', 65515), + self.check('length(virtualRouterIps)', 2), + ]) + + self.cmd('network routeserver peering create -g {rg} --vrouter-name {vrouter} -n {peer} ' + '--peer-asn 11000 --peer-ip 10.0.0.120') + + self.cmd('network routeserver peering list -g {rg} --vrouter-name {vrouter}') + + self.cmd('network routeserver peering show -g {rg} --vrouter-name {vrouter} -n {peer}') + + self.cmd('network routeserver peering list-advertised-routes -g {rg} --vrouter-name {vrouter} -n {peer}') + + self.cmd('network routeserver peering list-learned-routes -g {rg} --vrouter-name {vrouter} -n {peer}') + + # unable to update unless the ASN's range is required + # self.cmd('network routeserver peering update -g {rg} --vrouter-name {vrouter} -n {peer} --peer-ip 10.0.0.0') + + self.cmd('network routeserver peering delete -g {rg} --vrouter-name {vrouter} -n {peer} -y') + + self.cmd('network routeserver delete -g {rg} -n {vrouter} -y') + + class NetworkSubnetScenarioTests(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_subnet_set_test')