From 0f77bf80ba0692ae01151480e6f77a301086f4c2 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Fri, 12 Nov 2021 15:31:57 +0800 Subject: [PATCH 1/9] Add new cmds to support multi-link in virtualwan --- src/virtual-wan/azext_vwan/_params.py | 22 ++ src/virtual-wan/azext_vwan/commands.py | 15 ++ src/virtual-wan/azext_vwan/custom.py | 226 ++++++++++++++++-- .../latest/test_azure_vwan_vhub_commands.py | 100 ++++++++ 4 files changed, 344 insertions(+), 19 deletions(-) diff --git a/src/virtual-wan/azext_vwan/_params.py b/src/virtual-wan/azext_vwan/_params.py index a1a56c8b6c4..68fb5dfd6bf 100644 --- a/src/virtual-wan/azext_vwan/_params.py +++ b/src/virtual-wan/azext_vwan/_params.py @@ -136,6 +136,20 @@ def load_arguments(self, _): c.argument('resource_name', vpn_gateway_name_type, id_part=None) c.argument('gateway_name', id_part=None) + with self.argument_context('network vpn-gateway connection vpn-site-link-conn') as c: + c.argument("vpn_site_link_conn_name", help='Name of the VPN gateway connection.', id_part='child_name_1') + c.argument("vpn_site_link", help='The resource ID of VPN Site Link.') + c.argument('routing_weight', type=int, help='Routing weight.') + c.argument('shared_key', help='Shared key.') + c.argument('enable_rate_limiting', options_list='--rate-limiting', arg_type=get_three_state_flag(), help='Enable rate limiting.') + c.argument('connection_bandwidth', help='Expected bandwidth in Mbps.', type=int) + c.argument('enable_bgp', arg_type=get_three_state_flag(), help='Enable BGP.') + c.argument('use_local_azure_ip_address', help='Use local azure ip to initiate connection.', type=bool) + c.argument('use_policy_based_traffic_selectors', help='Enable policy-based traffic selectors.', type=bool) + c.argument('vpn_connection_protocol_type', help='Connection protocol used for this connection.', arg_type=get_enum_type(['IKEv2', 'IKEv1'])) + c.argument('vpn_link_connection_mode', help='Vpn link connection mode.', arg_type=get_enum_type(['Default', 'ResponderOnly', 'InitiatorOnly'])) + c.argument('index', type=int, help='List index of the item (starting with 1).') + with self.argument_context('network vpn-gateway connection', arg_group='IP Security') as c: c.argument('sa_life_time_seconds', options_list='--sa-lifetime', help='IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site-to-site VPN tunnel.', type=int) c.argument('sa_data_size_kilobytes', options_list='--sa-data-size', help='IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site-to-site VPN tunnel.', type=int) @@ -161,12 +175,20 @@ def load_arguments(self, _): c.argument('ip_address', help='IP address of the VPN site.') c.argument('site_key', help='Key for the VPN site that can be used for connections.') c.argument('address_prefixes', nargs='+', help='Space-separated list of CIDR address prefixes.') + c.argument('with_link', help='Create VPN site with default link.') with self.argument_context('network vpn-site', arg_group='Device Property') as c: c.argument('device_model', help='Model of the device.') c.argument('device_vendor', help='Name of the device vendor.') c.argument('link_speed', help='Link speed in Mbps.', type=int) + with self.argument_context('network vpn-site link') as c: + c.argument('vpn_site_link_name', help='The name of vpn site link.') + c.argument('fqdn', help='FQDN of vpn-site-link.') + c.argument('link_provider_name', help='Name of the link provider.') + c.argument('link_speed_in_mbps', help='Link speed.', type=int) + c.argument('index', type=int, help='List index of the item (starting with 1).') + for scope in ['vpn-site', 'vpn-gateway']: with self.argument_context('network {}'.format(scope), arg_group='BGP Peering') as c: c.argument('asn', help='BGP speaker\'s ASN.', type=int) diff --git a/src/virtual-wan/azext_vwan/commands.py b/src/virtual-wan/azext_vwan/commands.py index f4dda336d82..c77c46d478d 100644 --- a/src/virtual-wan/azext_vwan/commands.py +++ b/src/virtual-wan/azext_vwan/commands.py @@ -176,6 +176,16 @@ def load_command_table(self, _): g.custom_command('add', 'add_vpn_gateway_connection_ipsec_policy', supports_no_wait=True) g.custom_command('list', 'list_vpn_conn_ipsec_policies') g.custom_command('remove', 'remove_vpn_conn_ipsec_policy', supports_no_wait=True) + + with self.command_group('network vpn-gateway connection vpn-site-link-conn', network_vpn_gateway_connection_sdk) as g: + g.custom_command('add', 'add_vpn_gateway_connection_vpn_site_link_conn', supports_no_wait=True) + g.custom_command('remove', 'remove_vpn_gateway_connection_vpn_site_link_conn', supports_no_wait=True) + g.custom_command('list', 'list_vpn_conn_vpn_site_link_conn') + + with self.command_group('network vpn-gateway connection vpn-site-link-conn ipsec-policy', network_vpn_gateway_connection_sdk) as g: + g.custom_command('add', 'add_vpn_gateway_connection_link_ipsec_policy', supports_no_wait=True) + g.custom_command('list', 'list_vpn_conn_link_ipsec_policies') + g.custom_command('remove', 'remove_vpn_conn_link_ipsec_policy', supports_no_wait=True) # endregion # region VpnSites @@ -186,6 +196,11 @@ def load_command_table(self, _): g.show_command('show') g.generic_update_command('update', custom_func_name='update_vpn_site', setter_name='begin_create_or_update', setter_arg_name='vpn_site_parameters', supports_no_wait=True) + with self.command_group('network vpn-site link', network_vpn_site_sdk) as g: + g.custom_command('add', 'add_vpn_site_link', supports_no_wait=True) + g.custom_command('remove', 'remove_vpn_site_link', supports_no_wait=True) + g.custom_command('list', 'list_vpn_site_link') + with self.command_group('network vpn-site', network_vpn_site_config_sdk) as g: g.command('download', 'begin_download') # endregion diff --git a/src/virtual-wan/azext_vwan/custom.py b/src/virtual-wan/azext_vwan/custom.py index ad24bdb6d80..a04a7b3fa2c 100644 --- a/src/virtual-wan/azext_vwan/custom.py +++ b/src/virtual-wan/azext_vwan/custom.py @@ -572,18 +572,20 @@ def update_vpn_gateway_connection(instance, cmd, associated_route_table=None, pr def create_vpn_gateway_connection(cmd, resource_group_name, gateway_name, connection_name, - remote_vpn_site, routing_weight=None, protocol_type=None, + remote_vpn_site, vpn_site_link=None, routing_weight=None, protocol_type=None, connection_bandwidth=None, shared_key=None, enable_bgp=None, enable_rate_limiting=None, enable_internet_security=None, no_wait=False, - associated_route_table=None, propagated_route_tables=None, labels=None): + associated_route_table=None, propagated_route_tables=None, with_link=False, labels=None): client = network_client_factory(cmd.cli_ctx).vpn_connections (VpnConnection, SubResource, RoutingConfiguration, - PropagatedRouteTable) = cmd.get_models('VpnConnection', + PropagatedRouteTable, + VpnSiteLinkConnection) = cmd.get_models('VpnConnection', 'SubResource', 'RoutingConfiguration', - 'PropagatedRouteTable') + 'PropagatedRouteTable', + 'VpnSiteLinkConnection') propagated_route_tables = PropagatedRouteTable( labels=labels, @@ -597,16 +599,29 @@ def create_vpn_gateway_connection(cmd, resource_group_name, gateway_name, connec conn = VpnConnection( name=connection_name, remote_vpn_site=SubResource(id=remote_vpn_site), - routing_weight=routing_weight, protocol_type=protocol_type, - connection_bandwidth=connection_bandwidth, - shared_key=shared_key, - enable_bgp=enable_bgp, - enable_rate_limiting=enable_rate_limiting, enable_internet_security=enable_internet_security, routing_configuration=routing_configuration ) + if with_link: + link_conn = VpnSiteLinkConnection( + name=connection_name, + routing_weight=routing_weight, + vpn_site_link=SubResource(id=vpn_site_link), + connection_bandwidth=connection_bandwidth, + shared_key=shared_key, + enable_bgp=enable_bgp, + enable_rate_limiting=enable_rate_limiting, + ) + conn.vpn_link_connections = [link_conn] + else: + conn.routing_weight = routing_weight + conn.connection_bandwidth = connection_bandwidth + conn.shared_key = shared_key + conn.enable_bgp = enable_bgp + conn.enable_rate_limiting = enable_rate_limiting + return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, gateway_name, connection_name, conn) @@ -673,6 +688,113 @@ def remove_vpn_conn_ipsec_policy(cmd, resource_group_name, gateway_name, connect return +def add_vpn_gateway_connection_vpn_site_link_conn(cmd, resource_group_name, gateway_name, connection_name, + vpn_site_link_conn_name, vpn_site_link, routing_weight=None, vpn_link_connection_mode=None, + vpn_connection_protocol_type=None, connection_bandwidth=None, shared_key=None, enable_bgp=None, enable_rate_limiting=None, + use_policy_based_traffic_selectors=None, use_local_azure_ip_address=None, no_wait=False): + SubResource, VpnSiteLinkConnection = cmd.get_models('SubResource', 'VpnSiteLinkConnection') + client = network_client_factory(cmd.cli_ctx).vpn_connections + conn = client.get(resource_group_name, gateway_name, connection_name) + + if conn.vpn_link_connections is None: + conn.vpn_link_connections = [] + conn.vpn_link_connections.append( + VpnSiteLinkConnection( + name=vpn_site_link_conn_name, + routing_weight=routing_weight, + vpn_site_link=SubResource(id=vpn_site_link), + vpn_link_connection_mode=vpn_link_connection_mode, + vpn_connection_protocol_type=vpn_connection_protocol_type, + connection_bandwidth=connection_bandwidth, + shared_key=shared_key, + enable_bgp=enable_bgp, + enable_rate_limiting=enable_rate_limiting, + use_policy_based_traffic_selectors=use_policy_based_traffic_selectors, + use_local_azure_ip_address=use_local_azure_ip_address + ) + ) + + return sdk_no_wait(no_wait, client.begin_create_or_update, + resource_group_name, gateway_name, connection_name, conn) + + +def list_vpn_conn_vpn_site_link_conn(cmd, resource_group_name, gateway_name, connection_name): + client = network_client_factory(cmd.cli_ctx).vpn_connections + conn = client.get(resource_group_name, gateway_name, connection_name) + return conn.vpn_link_connections + + +def remove_vpn_gateway_connection_vpn_site_link_conn(cmd, resource_group_name, gateway_name, connection_name, index, no_wait=False): + client = network_client_factory(cmd.cli_ctx).vpn_connections + conn = client.get(resource_group_name, gateway_name, connection_name) + try: + conn.vpn_link_connections.pop(index - 1) + except IndexError: + raise CLIError('invalid index: {}. Index can range from 1 to {}'.format(index, len(conn.vpn_link_connections))) + return sdk_no_wait(no_wait, client.begin_create_or_update, + resource_group_name, gateway_name, connection_name, conn) + + +# pylint: disable=inconsistent-return-statements +def add_vpn_gateway_connection_link_ipsec_policy(cmd, resource_group_name, gateway_name, connection_name, vpn_site_link_conn_name, + sa_life_time_seconds, sa_data_size_kilobytes, ipsec_encryption, + ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group, + no_wait=False): + IpsecPolicy = cmd.get_models('IpsecPolicy') + client = network_client_factory(cmd.cli_ctx).vpn_connections + vpn_conn = client.get(resource_group_name, gateway_name, connection_name) + conn = _find_item_at_path(vpn_conn, 'vpn_link_connections.{}'.format(vpn_site_link_conn_name)) + + if conn.ipsec_policies is None: + conn.ipsec_policies = [] + conn.ipsec_policies.append( + IpsecPolicy( + sa_life_time_seconds=sa_life_time_seconds, + sa_data_size_kilobytes=sa_data_size_kilobytes, + ipsec_encryption=ipsec_encryption, + ipsec_integrity=ipsec_integrity, + ike_encryption=ike_encryption, + ike_integrity=ike_integrity, + dh_group=dh_group, + pfs_group=pfs_group + ) + ) + + _upsert(vpn_conn, 'vpn_link_connections', conn, 'name', warn=False) + poller = sdk_no_wait(no_wait, client.begin_create_or_update, + resource_group_name, gateway_name, connection_name, vpn_conn) + try: + return _get_property(poller.result().vpn_link_connections, vpn_site_link_conn_name) + except AttributeError: + return + + +def list_vpn_conn_link_ipsec_policies(cmd, resource_group_name, gateway_name, connection_name, vpn_site_link_conn_name): + client = network_client_factory(cmd.cli_ctx).vpn_connections + vpn_conn = client.get(resource_group_name, gateway_name, connection_name) + conn = _find_item_at_path(vpn_conn, 'vpn_link_connections.{}'.format(vpn_site_link_conn_name)) + return conn.ipsec_policies + + +# pylint: disable=inconsistent-return-statements +def remove_vpn_conn_link_ipsec_policy(cmd, resource_group_name, gateway_name, connection_name, vpn_site_link_conn_name, index, no_wait=False): + client = network_client_factory(cmd.cli_ctx).vpn_connections + vpn_conn = client.get(resource_group_name, gateway_name, connection_name) + conn = _find_item_at_path(vpn_conn, 'vpn_link_connections.{}'.format(vpn_site_link_conn_name)) + + try: + conn.ipsec_policies.pop(index - 1) + except IndexError: + raise CLIError('invalid index: {}. Index can range from 1 to {}'.format(index, len(conn.ipsec_policies))) + _upsert(vpn_conn, 'vpn_link_connections', conn, 'name', warn=False) + poller = sdk_no_wait(no_wait, client.begin_create_or_update, + resource_group_name, gateway_name, connection_name, vpn_conn) + try: + return _get_property(poller.result().vpn_link_connections, vpn_site_link_conn_name) + except AttributeError: + return + + # endregion @@ -682,14 +804,14 @@ def create_vpn_site(cmd, resource_group_name, vpn_site_name, ip_address, virtual_wan=None, location=None, tags=None, site_key=None, address_prefixes=None, is_security_site=None, device_vendor=None, device_model=None, link_speed=None, - peer_weight=None, no_wait=False): + peer_weight=None, with_link=False, no_wait=False): client = network_client_factory(cmd.cli_ctx).vpn_sites - VpnSite, SubResource = cmd.get_models('VpnSite', 'SubResource') + VpnSite, VpnSiteLink, SubResource = cmd.get_models('VpnSite', 'VpnSiteLink', 'SubResource') + site = VpnSite( location=location, tags=tags, is_security_site=is_security_site, - ip_address=ip_address, site_key=site_key, virtual_wan=SubResource(id=virtual_wan) if virtual_wan else None, address_space={'addressPrefixes': address_prefixes}, @@ -697,15 +819,32 @@ def create_vpn_site(cmd, resource_group_name, vpn_site_name, ip_address, 'deviceVendor': device_vendor, 'deviceModel': device_model, 'linkSpeedInMbps': link_speed - }, - bgp_properties={ - 'asn': asn, - 'bgpPeeringAddress': bgp_peering_address, - 'peerWeight': peer_weight } ) - if not any([asn, bgp_peering_address, peer_weight]): - site.bgp_properties = None + if with_link: + link = VpnSiteLink( + name=vpn_site_name, + bgp_properties={ + 'asn': asn, + 'bgpPeeringAddress': bgp_peering_address, + 'peerWeight': peer_weight + }, + ip_address=ip_address, + ) + if not any([asn, bgp_peering_address, peer_weight]): + link.bgp_properties = None + + site.vpn_site_links = [link] + else: + if not any([asn, bgp_peering_address, peer_weight]): + site.bgp_properties = None + else: + site.bgp_properties = { + 'asn': asn, + 'bgpPeeringAddress': bgp_peering_address, + 'peerWeight': peer_weight + } + site.ip_address = ip_address return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, vpn_site_name, site) @@ -743,6 +882,55 @@ def update_vpn_site(instance, cmd, ip_address=None, virtual_wan=None, tags=None, def list_vpn_sites(cmd, resource_group_name=None): return _generic_list(cmd.cli_ctx, 'vpn_sites', resource_group_name) + + +def add_vpn_site_link(cmd, resource_group_name, vpn_site_name, vpn_site_link_name, ip_address, fqdn=None, + link_provider_name=None, link_speed_in_mbps=None, asn=None, bgp_peering_address=None, no_wait=False): + VpnSiteLink = cmd.get_models('VpnSiteLink') + client = network_client_factory(cmd.cli_ctx).vpn_sites + vpn_site = client.get(resource_group_name, vpn_site_name) + + if vpn_site.vpn_site_links is None: + vpn_site.vpn_site_links = [] + + + vpn_site.vpn_site_links.append( + VpnSiteLink( + name=vpn_site_link_name, + ip_address=ip_address, + fqdn=fqdn, + bgp_properties={ + 'asn': asn, + 'bgp_peering_address': bgp_peering_address + }, + link_properites={ + 'link_provider_name': link_provider_name, + 'link_speed_in_mbps': link_speed_in_mbps + } + ) + ) + + return sdk_no_wait(no_wait, client.begin_create_or_update, + resource_group_name, vpn_site_name, vpn_site) + + +def remove_vpn_site_link(cmd, resource_group_name, vpn_site_name, index, no_wait=False): + client = network_client_factory(cmd.cli_ctx).vpn_sites + vpn_site = client.get(resource_group_name, vpn_site_name) + try: + vpn_site.vpn_site_links.pop(index - 1) + except IndexError: + raise CLIError('invalid index: {}. Index can range from 1 to {}'.format(index, len(vpn_site.vpn_site_links))) + return sdk_no_wait(no_wait, client.begin_create_or_update, + resource_group_name, vpn_site_name, vpn_site) + + +def list_vpn_site_link(cmd, resource_group_name, vpn_site_name): + client = network_client_factory(cmd.cli_ctx).vpn_sites + vpn_site = client.get(resource_group_name, vpn_site_name) + return vpn_site.vpn_site_links + + # endregion diff --git a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py index 67bd302fd62..b6bf3775545 100644 --- a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py +++ b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py @@ -365,6 +365,106 @@ def test_azure_vwan_vpn_gateway_connection(self): '-n {connection} ' '--gateway-name {vpngateway}') + @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn', location='westus') + def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): + self.kwargs.update({ + 'vwan': 'test_vwan', + 'vhub': 'test_vhub', + 'vpngateway': 'test_s2s_vpn_gateway', + 'connection': 'test_s2s_vpn_gateway_connection', + 'vpn_site': 'remote_vpn_site_1', + 'route_table1': 'test_vhub_routing_1', + 'route_table2': 'test_vhub_routing_2', + 'vpn_site_link_conn': 'Connection-Link1', + 'vpn_site_link_name': 'VPN-Site-Link1', + 'vpn_site_link_2_name': 'VPN-Site-Link2', + 'sub': '/subscriptions/{}'.format(self.get_subscription_id()) + }) + + self.cmd('network vwan create -g {rg} -n {vwan}') + + self.cmd('network vhub create -g {rg} -n {vhub} --vwan {vwan} --address-prefix 10.0.1.0/24') + rt1 = self.cmd('network vhub route-table create -g {rg} --vhub-name {vhub} -n {route_table1}').get_output_in_json() + rt2 = self.cmd('network vhub route-table create -g {rg} --vhub-name {vhub} -n {route_table2}').get_output_in_json() + + self.kwargs.update({ + 'route_table1': rt1['id'], + 'route_table2': rt2['id'], + }) + + self.cmd('network vpn-gateway create -g {rg} --vhub {vhub} --name {vpngateway}', + checks=[]) + + # Test vpn site with links + self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110') + with self.assertRaisesRegexp(HttpResponseError, 'MissingDefaultLinkForVpnSiteDuringMigrationToLinkFormat'): + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.0.0') + self.cmd('network vpn-site delete -g {rg} -n {vpn_site}') + + self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_2_name} --ip-address 10.0.1.112 --asn 1234 --bgp-peering-address 192.168.2.0') + self.cmd('network vpn-site link list -g {rg} -n {vpn_site}') + self.cmd('network vpn-site link remove -g {rg} -n {vpn_site} --index 1') + + # Test ipsec policy + self.cmd('network vpn-gateway connection create ' + '-g {rg} ' + '-n {connection} ' + '--gateway-name {vpngateway} ' + '--remote-vpn-site {sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site} ' + '--associated-route-table {route_table1} ' + '--propagated-route-tables {route_table1} {route_table2} ' + '--labels label1 label2 ') + self.cmd('network vpn-gateway connection ipsec-policy add -g {rg} --gateway-name {vpngateway} --connection-name {connection} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 --sa-data-size 429496 --ike-encryption AES256 --ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') + self.cmd('network vpn-gateway connection ipsec-policy list -g {rg} --gateway-name {vpngateway} --connection-name {connection}') + self.cmd('network vpn-gateway connection ipsec-policy remove -g {rg} --gateway-name {vpngateway} --connection-name {connection}') + self.cmd('network vpn-gateway connection delete -g {rg} -n {connection} --gateway-name {vpngateway}') + + # Test vpn gateway connection with links + self.cmd('network vpn-gateway connection create ' + '-g {rg} ' + '-n {connection} ' + '--gateway-name {vpngateway} ' + '--remote-vpn-site {sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site} ' + '--vpn-site-link "{sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site}/vpnSiteLinks/{vpn_site}" ' + '--associated-route-table {route_table1} ' + '--propagated-route-tables {route_table1} {route_table2} ' + '--labels label1 label2 ' + '--with-link') + + self.cmd('network vpn-gateway connection vpn-site-link-conn add ' + '-g {rg} ' + '-n {connection} ' + '--gateway-name {vpngateway} ' + '--vpn-site-link-conn-name {vpn_site_link_conn} ' + '--vpn-site-link "{sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site}/vpnSiteLinks/{vpn_site_link_name}" ' + '--vpn-connection-protocol-type IKEv2') + + self.cmd('network vpn-gateway connection vpn-site-link-conn list ' + '-g {rg} ' + '-n {connection} ' + '--gateway-name {vpngateway}') + + self.cmd('network vpn-gateway connection vpn-site-link-conn remove' + '-g {rg} ' + '-n {connection} ' + '--gateway-name {vpngateway} ' + '--index 2') + + # Ipsec policy setted on conneciton will fail due to multi-links on connection + with self.assertRaisesRegexp(HttpResponseError, 'VpnConnectionPropertyIsDeprecated'): + self.cmd('network vpn-gateway connection ipsec-policy add -g {rg} --gateway-name {vpngateway} --connection-name {connection} ' + '--ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 --sa-data-size 429496 --ike-encryption AES256 ' + '--ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') + + # Test link-conn ipsec policy + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy add -g {rg} --gateway-name {vpngateway} -n {connection} ' + '--vpn-site-link-conn-name {vpn_site_link_conn} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 ' + '--sa-data-size 429496 --ike-encryption AES256 --ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy list -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {vpn_site_link_conn}') + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy remove -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {vpn_site_link_conn} --index 1') + @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vhub_bgpconnection', location='westus') @VirtualNetworkPreparer() def test_azure_vwan_vhub_bgpconnection(self, virtual_network, resource_group): From a98b5e9a7d7b4a0d468ede5fada3dfc7f37fed35 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Fri, 12 Nov 2021 17:48:31 +0800 Subject: [PATCH 2/9] update --- src/virtual-wan/azext_vwan/_params.py | 8 +- src/virtual-wan/azext_vwan/custom.py | 4 +- ...gateway_connection_vpn_site_link_conn.yaml | 4024 +++++++++++++++++ .../latest/test_azure_vwan_vhub_commands.py | 16 +- 4 files changed, 4039 insertions(+), 13 deletions(-) create mode 100644 src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml diff --git a/src/virtual-wan/azext_vwan/_params.py b/src/virtual-wan/azext_vwan/_params.py index 68fb5dfd6bf..0e2c9d05274 100644 --- a/src/virtual-wan/azext_vwan/_params.py +++ b/src/virtual-wan/azext_vwan/_params.py @@ -130,6 +130,8 @@ def load_arguments(self, _): c.argument('protocol_type', arg_type=get_enum_type(VirtualNetworkGatewayConnectionProtocol), help='Connection protocol.') c.argument('routing_weight', type=int, help='Routing weight.') c.argument('shared_key', help='Shared key.') + c.argument("vpn_site_link", help='The resource ID of VPN Site Link.') + c.argument('with_link', help='Create VpnConnection with default link.', arg_type=get_three_state_flag()) with self.argument_context('network vpn-gateway connection list') as c: # List commands cannot use --ids flag @@ -144,8 +146,8 @@ def load_arguments(self, _): c.argument('enable_rate_limiting', options_list='--rate-limiting', arg_type=get_three_state_flag(), help='Enable rate limiting.') c.argument('connection_bandwidth', help='Expected bandwidth in Mbps.', type=int) c.argument('enable_bgp', arg_type=get_three_state_flag(), help='Enable BGP.') - c.argument('use_local_azure_ip_address', help='Use local azure ip to initiate connection.', type=bool) - c.argument('use_policy_based_traffic_selectors', help='Enable policy-based traffic selectors.', type=bool) + c.argument('use_local_azure_ip_address', arg_type=get_three_state_flag(), help='Use local azure ip to initiate connection.') + c.argument('use_policy_based_traffic_selectors', arg_type=get_three_state_flag(), help='Enable policy-based traffic selectors.') c.argument('vpn_connection_protocol_type', help='Connection protocol used for this connection.', arg_type=get_enum_type(['IKEv2', 'IKEv1'])) c.argument('vpn_link_connection_mode', help='Vpn link connection mode.', arg_type=get_enum_type(['Default', 'ResponderOnly', 'InitiatorOnly'])) c.argument('index', type=int, help='List index of the item (starting with 1).') @@ -175,7 +177,7 @@ def load_arguments(self, _): c.argument('ip_address', help='IP address of the VPN site.') c.argument('site_key', help='Key for the VPN site that can be used for connections.') c.argument('address_prefixes', nargs='+', help='Space-separated list of CIDR address prefixes.') - c.argument('with_link', help='Create VPN site with default link.') + c.argument('with_link', help='Create VPN site with default link.', arg_type=get_three_state_flag()) with self.argument_context('network vpn-site', arg_group='Device Property') as c: c.argument('device_model', help='Model of the device.') diff --git a/src/virtual-wan/azext_vwan/custom.py b/src/virtual-wan/azext_vwan/custom.py index a04a7b3fa2c..3215a1bc81b 100644 --- a/src/virtual-wan/azext_vwan/custom.py +++ b/src/virtual-wan/azext_vwan/custom.py @@ -575,7 +575,7 @@ def create_vpn_gateway_connection(cmd, resource_group_name, gateway_name, connec remote_vpn_site, vpn_site_link=None, routing_weight=None, protocol_type=None, connection_bandwidth=None, shared_key=None, enable_bgp=None, enable_rate_limiting=None, enable_internet_security=None, no_wait=False, - associated_route_table=None, propagated_route_tables=None, with_link=False, labels=None): + associated_route_table=None, propagated_route_tables=None, with_link=None, labels=None): client = network_client_factory(cmd.cli_ctx).vpn_connections (VpnConnection, SubResource, @@ -804,7 +804,7 @@ def create_vpn_site(cmd, resource_group_name, vpn_site_name, ip_address, virtual_wan=None, location=None, tags=None, site_key=None, address_prefixes=None, is_security_site=None, device_vendor=None, device_model=None, link_speed=None, - peer_weight=None, with_link=False, no_wait=False): + peer_weight=None, with_link=None, no_wait=False): client = network_client_factory(cmd.cli_ctx).vpn_sites VpnSite, VpnSiteLink, SubResource = cmd.get_models('VpnSite', 'VpnSiteLink', 'SubResource') diff --git a/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml new file mode 100644 index 00000000000..8076fc615c7 --- /dev/null +++ b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml @@ -0,0 +1,4024 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:06:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n + \ \"etag\": \"W/\\\"db23ce62-6edd-480f-807c-5a8778caa89b\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"disableVpnEncryption\": + false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": + \"None\",\r\n \"type\": \"Standard\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/619c56b2-de60-4d37-a5d7-fa61f714dd53?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '569' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:07:02 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: + - ea445a12-0628-475e-93da-54d0c8e80823 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/619c56b2-de60-4d37-a5d7-fa61f714dd53?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:07: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: + - 34a42e1c-50df-4c43-a026-cd00a4780e84 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n + \ \"etag\": \"W/\\\"5ee38c46-8b7c-43db-b4e2-e84b3b2882e2\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"disableVpnEncryption\": + false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": + \"None\",\r\n \"type\": \"Standard\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '570' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:07:12 GMT + etag: + - W/"5ee38c46-8b7c-43db-b4e2-e84b3b2882e2" + 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: + - b9c2e1e1-6639-4526-86f4-91b46815ab91 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:07:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"virtualWan": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan"}, + "addressPrefix": "10.0.1.0/24"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + Content-Length: + - '288' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n + \ \"etag\": \"W/\\\"ad43dff1-5c7d-4cba-a0be-55197fd12e32\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": + 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan\"\r\n + \ },\r\n \"routingState\": \"None\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:07:22 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: + - 2a4a88d0-10d6-44a1-a24d-13d2c745281a + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:07:32 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: + - 548d4f86-9476-4466-9085-e9f25c140c0f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:07:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 90f0e4c2-94b2-4e83-9fda-f71074ca38a6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:08:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4e3bef10-1cd8-4f08-9d0d-4e03f78c39e5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:08: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: + - ec8207e3-fed4-4653-a0cf-e06b7fc2beb7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:09:04 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: + - ba550219-f42c-477d-ac16-df271330eac6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:09: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: + - 1756e60c-c0ba-462c-8385-7c896e4ed2e9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:11:04 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: + - c6465082-ae4e-459d-a5bd-ade782f36056 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:13: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: + - a0a1a1d1-cc8a-4915-8862-edd9b3d894fb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n + \ \"etag\": \"W/\\\"d0ac5716-2cab-48cf-a845-75de738eda56\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": + 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan\"\r\n + \ },\r\n \"routingState\": \"Provisioning\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '874' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:13: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: + - f9cf0f7a-c29a-4a16-9420-8fe9136eed0e + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n + \ \"etag\": \"W/\\\"88cf8193-27b7-468f-92c5-d1fdd0b87fbf\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": + [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b6df21e9-6ef0-4317-91fe-9ac142c48cab?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:13:48 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: + - 6931485b-fc34-4245-afaa-73e44484f166 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b6df21e9-6ef0-4317-91fe-9ac142c48cab?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:13: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: + - 7c96380e-c7ff-4610-9c23-c1e7fe098632 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n + \ \"etag\": \"W/\\\"912f85c4-7afc-45e8-9745-66d2345b6356\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n + \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '563' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:13:59 GMT + etag: + - W/"912f85c4-7afc-45e8-9745-66d2345b6356" + 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: + - 873c45f3-89e8-4cd4-ab31-3e8401ef7a9d + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n + \ \"etag\": \"W/\\\"afaf7081-d121-4d0e-9a89-222eb391e5f0\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": + [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5dc78dab-56bf-4f59-a21e-6a80ec9e1d17?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:14:01 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: + - 4e11a98d-0ade-479b-b2c1-1d576b3a1586 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5dc78dab-56bf-4f59-a21e-6a80ec9e1d17?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:14:11 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: + - b6d8f2ef-1749-4a9d-87bc-fed8ba14222a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n + \ \"etag\": \"W/\\\"4c0e79a7-636c-4089-bac8-fff8d748f5c3\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n + \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '563' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:14:11 GMT + etag: + - W/"4c0e79a7-636c-4089-bac8-fff8d748f5c3" + 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: + - 9a7d129b-631e-4dcd-89cb-5c30456906d2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:14:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/vpnGateways/test_s2s_vpn_gateway'' + under resource group ''cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001'' + was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '297' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:14:16 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": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "bgpSettings": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + Content-Length: + - '275' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"14b816d2-a567-4ef7-a8dc-d1ce5984ec5c\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": 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/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '993' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:14:22 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: + - 2be8bc5f-1e2b-4795-a538-9e70194e44cf + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:14:32 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: + - 810b907d-69dd-4522-80b7-3a98e5a0add8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:14:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 57bfb63d-5365-4821-8a22-4d4b14029510 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:15: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: + - 52de7e8a-0da4-47d9-97b9-67ab53647645 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:15:22 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: + - c33c07ce-956f-4515-94eb-ad888f0ec51b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:16:04 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: + - 11a52b0c-c7d2-487c-9345-2a581b74a3e8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:16: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: + - 6b6ebe72-9715-49f5-96d0-301c507ec722 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:18:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 70f00d23-5190-4c00-951d-20d0774840e4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:20: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: + - 68de8b4c-8074-485b-966b-8c720f4226e2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:22: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: + - 314b6f36-5f79-4d04-b5a0-33914629e42b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:24:06 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: + - 296d2783-08d2-424e-966b-54f54b8dbedf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:25: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: + - d44ff149-2ab5-4854-82cb-50001e0f5232 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:27:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 08111258-b066-48b1-9b65-a7713e9e1225 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:29:07 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: + - 2e681768-4ec9-47a2-b11d-e93c9d8cbadb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:30: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: + - 75f59609-b2ca-469f-a0d7-2a63d8bc8d77 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:32:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 26902ad5-e237-4be4-99ee-c13c51b8bdcd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:34:07 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: + - 8c6bc542-c3db-427b-9947-95ae3a58528c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:35: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: + - 3c3116af-ed4a-4e63-8fbf-625fa55e4242 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:37:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e729fb76-d15b-4877-ba58-9429f43a79df + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:39:08 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: + - 4989604f-ce83-4f82-bd0b-844930c9d907 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"605a6942-1a1d-4533-91a0-3a6de3439ea0\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.87.202.55\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.87.202.180\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"13.87.202.55\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.87.202.180\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1872' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39: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: + - 6c7675b5-9de8-4abe-9755-58d1414c2997 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"deviceProperties": {}, "ipAddress": + "10.0.1.110", "addressSpace": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"ad2a9fcc-4995-40bc-8fcd-b196def99cdb\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1aafb49-7a1f-41a0-9b66-b565bd5426fa?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '763' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39:21 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: + - 82fb8187-1eb9-4144-a36c-567424853da8 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1aafb49-7a1f-41a0-9b66-b565bd5426fa?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:39:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - fa83129b-041e-4967-8ec9-1ad104d7f640 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1aafb49-7a1f-41a0-9b66-b565bd5426fa?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:39:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1e2834bb-56c9-48d1-83f6-aaaecfd8c2ca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"1eef002f-8866-4085-8aa9-fa8d2f1b1b73\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '764' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39:41 GMT + etag: + - W/"1eef002f-8866-4085-8aa9-fa8d2f1b1b73" + 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: + - 65e82db5-76aa-45b2-a8fa-36634c83094a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"1eef002f-8866-4085-8aa9-fa8d2f1b1b73\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '764' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39:43 GMT + etag: + - W/"1eef002f-8866-4085-8aa9-fa8d2f1b1b73" + 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: + - 24b11d47-0119-4855-859e-c5a3a8334209 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110", "addressSpace": {"addressPrefixes": []}, "isSecuritySite": + false, "vpnSiteLinks": [{"name": "VPN-Site-Link1", "properties": {"ipAddress": + "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.0.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '539' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"error\": {\r\n \"code\": \"MissingDefaultLinkForVpnSiteDuringMigrationToLinkFormat\",\r\n + \ \"message\": \"Default Vpn link is missing while migrating Vpn Site /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1 + to include links. One default link with same name and properties as VpnSite + remote_vpn_site_1 is mandatory.\",\r\n \"details\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '492' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39:44 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: + - 5b402ca8-74ac-461d-b030-a3a67955364d + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0afa6b4d-01f0-4a71-987d-d44efc452ec8?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 12 Nov 2021 09:39:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/0afa6b4d-01f0-4a71-987d-d44efc452ec8?api-version=2020-05-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: + - 905cdef0-abb7-4d51-bfc4-3068cf7ccdad + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site delete + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0afa6b4d-01f0-4a71-987d-d44efc452ec8?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:39:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 90d9292c-2796-4d3a-b200-100a1125a214 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:39:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"deviceProperties": {}, "addressSpace": + {}, "vpnSiteLinks": [{"name": "remote_vpn_site_1", "properties": {"ipAddress": + "10.0.1.110"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + Content-Length: + - '174' + Content-Type: + - application/json + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"4fe390af-dd8d-4fc1-a8c3-9a51725ff328\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"4fe390af-dd8d-4fc1-a8c3-9a51725ff328\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b13761e7-7640-4091-868b-45555921d393?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '1384' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:00 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: + - fc083ee5-7148-4d31-a027-f4c97c53058e + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b13761e7-7640-4091-868b-45555921d393?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:40:11 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: + - 086bff98-0756-42d5-9a90-b8907bbb7ec8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1386' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:11 GMT + etag: + - W/"47f76f01-aec8-4dfe-9040-cd13fb5b0a42" + 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: + - 7a25de0a-fca9-4363-a450-0fdc3cc85c3f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1386' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:12 GMT + etag: + - W/"47f76f01-aec8-4dfe-9040-cd13fb5b0a42" + 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: + - 0e3b20c3-66aa-4d1a-bee5-52955b6a563e + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", + "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110"}}, {"name": "VPN-Site-Link1", "properties": {"ipAddress": + "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.1.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '866' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"2999ebbb-c1a0-40e7-aef8-1d8d96794fdc\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"2999ebbb-c1a0-40e7-aef8-1d8d96794fdc\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"2999ebbb-c1a0-40e7-aef8-1d8d96794fdc\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/17957f39-3f95-49e1-aab0-152dc1894319?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2119' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40: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: + - e387348d-85c2-48b9-b5cf-967f59be860d + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/17957f39-3f95-49e1-aab0-152dc1894319?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:40: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: + - 94180851-fbbc-4e58-b7fd-9d65026c0487 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2122' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:24 GMT + etag: + - W/"370bd10b-93ec-41a3-b61c-4605d7c5727e" + 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: + - d46d44e0-4181-47ea-8e57-e2a2fc52f4bb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2122' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:26 GMT + etag: + - W/"370bd10b-93ec-41a3-b61c-4605d7c5727e" + 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: + - 9243b1fa-805d-48bc-b61c-d46488e50ac7 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", + "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110"}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1", + "name": "VPN-Site-Link1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": + "192.168.1.0"}}}, {"name": "VPN-Site-Link2", "properties": {"ipAddress": "10.0.1.112", + "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.2.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '1282' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6a4f9e5-0cf4-4f2a-87de-8dc448f7922c?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - cff1ec10-f1f1-4e10-9ded-6198b5a1e24e + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6a4f9e5-0cf4-4f2a-87de-8dc448f7922c?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:40:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 98c39098-bae9-4886-81ab-0a3c37a71f03 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2858' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:38 GMT + etag: + - W/"9467286e-d679-4db7-862a-4a015cce8bf4" + 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: + - c53223c7-d208-45c6-a2bf-24a6f8704043 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2858' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:41 GMT + etag: + - W/"9467286e-d679-4db7-862a-4a015cce8bf4" + 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: + - f1fb5606-798a-4e04-a6a7-33858cd3d6af + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2858' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:43 GMT + etag: + - W/"9467286e-d679-4db7-862a-4a015cce8bf4" + 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: + - 8db01640-f9b5-46ad-a8e9-4e384d668781 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1", + "name": "VPN-Site-Link1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": + "192.168.1.0"}}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2", + "name": "VPN-Site-Link2", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.112", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": + "192.168.2.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + Content-Length: + - '1205' + Content-Type: + - application/json + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"d2317e53-aa47-484d-84c3-452ef90eb4f1\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"VPN-Site-Link1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"d2317e53-aa47-484d-84c3-452ef90eb4f1\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"d2317e53-aa47-484d-84c3-452ef90eb4f1\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4e68a6eb-8475-495f-8e96-251b46c6d4f0?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2231' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40: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: + - e588de27-2870-4454-925d-b1659847e6dd + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4e68a6eb-8475-495f-8e96-251b46c6d4f0?api-version=2020-05-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: + - Fri, 12 Nov 2021 09:40:54 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: + - fd84f2e9-d4b4-46f7-9cd1-60c5e8ac35cc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"VPN-Site-Link1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2234' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:54 GMT + etag: + - W/"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0" + 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: + - 2a562ba7-4614-4779-ab63-684ae02d387c + status: + code: 200 + message: OK +- request: + body: '{"name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + Content-Length: + - '1120' + Content-Type: + - application/json + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"20081661-397e-4609-ac24-dda2eca11d57\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": [],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": false,\r\n + \ \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/02294a88-b81e-430e-9fc3-b6a385113510?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2196' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:40:57 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: + - e8f9fc3e-d9a4-4f16-8b67-7860e5cd4202 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/02294a88-b81e-430e-9fc3-b6a385113510?api-version=2020-05-01 + response: + body: + string: "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"InvalidConnectedSiteId\",\r\n + \ \"message\": \"The vpnsite id '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1' + is invalid or the vpnsite does not exist or the vpnsite exists with links + and no link connections are configured.\",\r\n \"details\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '452' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 12 Nov 2021 09:41:08 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: + - 1fc1a740-3573-4b06-bbc7-7f94894138e4 + status: + code: 200 + message: OK +version: 1 diff --git a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py index b6bf3775545..8c3f9d7ca7f 100644 --- a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py +++ b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py @@ -399,14 +399,6 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110') with self.assertRaisesRegexp(HttpResponseError, 'MissingDefaultLinkForVpnSiteDuringMigrationToLinkFormat'): self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.0.0') - self.cmd('network vpn-site delete -g {rg} -n {vpn_site}') - - self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_2_name} --ip-address 10.0.1.112 --asn 1234 --bgp-peering-address 192.168.2.0') - self.cmd('network vpn-site link list -g {rg} -n {vpn_site}') - self.cmd('network vpn-site link remove -g {rg} -n {vpn_site} --index 1') - # Test ipsec policy self.cmd('network vpn-gateway connection create ' '-g {rg} ' @@ -420,6 +412,13 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): self.cmd('network vpn-gateway connection ipsec-policy list -g {rg} --gateway-name {vpngateway} --connection-name {connection}') self.cmd('network vpn-gateway connection ipsec-policy remove -g {rg} --gateway-name {vpngateway} --connection-name {connection}') self.cmd('network vpn-gateway connection delete -g {rg} -n {connection} --gateway-name {vpngateway}') + self.cmd('network vpn-site delete -g {rg} -n {vpn_site}') + + self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_2_name} --ip-address 10.0.1.112 --asn 1234 --bgp-peering-address 192.168.2.0') + self.cmd('network vpn-site link list -g {rg} -n {vpn_site}') + self.cmd('network vpn-site link remove -g {rg} -n {vpn_site} --index 1') # Test vpn gateway connection with links self.cmd('network vpn-gateway connection create ' @@ -452,6 +451,7 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): '--gateway-name {vpngateway} ' '--index 2') + # Test issue: # Ipsec policy setted on conneciton will fail due to multi-links on connection with self.assertRaisesRegexp(HttpResponseError, 'VpnConnectionPropertyIsDeprecated'): self.cmd('network vpn-gateway connection ipsec-policy add -g {rg} --gateway-name {vpngateway} --connection-name {connection} ' From ee62f80f212156b52a6c828dc4d59100c672128d Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Tue, 16 Nov 2021 09:57:39 +0800 Subject: [PATCH 3/9] update testcases --- ..._vpn_gateway_connection_vpn_site_link.yaml | 6020 +++++++++++++++++ ...gateway_connection_vpn_site_link_conn.yaml | 2112 +++--- ..._vwan_vpn_site_link_conn_ipsec_policy.yaml | 4465 ++++++++++++ .../latest/test_azure_vwan_vhub_commands.py | 94 +- 4 files changed, 11922 insertions(+), 769 deletions(-) create mode 100644 src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link.yaml create mode 100644 src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_site_link_conn_ipsec_policy.yaml diff --git a/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link.yaml b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link.yaml new file mode 100644 index 00000000000..3744754c1dc --- /dev/null +++ b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link.yaml @@ -0,0 +1,6020 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T06:01:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:02:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n + \ \"etag\": \"W/\\\"b300ca8e-8b9a-4e37-9613-33b0046bef17\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"disableVpnEncryption\": + false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": + \"None\",\r\n \"type\": \"Standard\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6e9c7ea3-9ff4-43b1-941c-b33fb6e5485d?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '569' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:02:08 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: + - 58b59d50-4d6f-4d11-947a-fa68d20050da + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6e9c7ea3-9ff4-43b1-941c-b33fb6e5485d?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:02: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: + - 55023a45-4944-420a-a951-f81d19723cb4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n + \ \"etag\": \"W/\\\"edd3dc1c-6a46-469d-a1ad-e8d898d93b09\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"disableVpnEncryption\": + false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": + \"None\",\r\n \"type\": \"Standard\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '570' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:02:19 GMT + etag: + - W/"edd3dc1c-6a46-469d-a1ad-e8d898d93b09" + 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: + - 4842ab2a-bb18-41c1-b18b-49843c16b6a1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T06:01:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:02:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"virtualWan": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan"}, + "addressPrefix": "10.0.1.0/24"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + Content-Length: + - '288' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n + \ \"etag\": \"W/\\\"7a9ca78b-9713-4c3f-9332-73b322642b2d\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": + 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan\"\r\n + \ },\r\n \"routingState\": \"None\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:02:35 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: + - d072014c-e88d-4c21-b14c-299ef17fdb6a + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:02:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c38e638d-56fc-4f40-b882-b974552444d1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:02:56 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: + - dc27f3be-591f-4bdd-a074-2bbaf6741ede + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:03: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: + - 8bdad0ca-8bc1-4d6e-a505-2a8643c0ee8f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:03: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: + - 0940c2a4-c1dd-4a4e-8654-4cd28d3cf6a6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:04:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2bdbdf96-2bfb-4a62-8055-b1f43ba27626 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:04: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: + - 878b3d5f-0925-4ac0-9474-762684108102 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:06: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: + - 22ab8c23-9ad5-4291-9522-3e574206c692 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b06702e-6fc2-4ed6-ae37-610a2ef80c3c?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:09: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: + - 3fd963f5-695c-41b2-b02c-cfc056d3bc0c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n + \ \"etag\": \"W/\\\"4fbe3e2a-ac28-401d-849b-3d2d178ce5ce\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": + 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualWans/test_vwan\"\r\n + \ },\r\n \"routingState\": \"Provisioning\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '874' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09: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: + - bcbdbca3-c2c7-4bff-b144-112786adb3df + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n + \ \"etag\": \"W/\\\"5570d404-4dff-467e-a8bb-47c797d258de\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": + [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f075b1a0-22f9-4d43-99df-7869e8b62374?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:04 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: + - bf8840e1-d5f9-483a-8bff-24a33b4fcacf + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f075b1a0-22f9-4d43-99df-7869e8b62374?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:09: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: + - fd52b9f6-7219-4c02-a34d-a6ccb5180485 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n + \ \"etag\": \"W/\\\"3a60e36e-a81c-4583-a38b-b37055a81309\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n + \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '563' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:14 GMT + etag: + - W/"3a60e36e-a81c-4583-a38b-b37055a81309" + 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: + - ab030fac-4525-4d75-9b76-8380285eab87 + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n + \ \"etag\": \"W/\\\"e4b15566-ec14-4947-886e-235d9e461000\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": + [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d2409d48-04f0-4881-88fc-8b73d6dc25c5?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3f65dfbf-b082-4ba8-85b9-57106e1ec794 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d2409d48-04f0-4881-88fc-8b73d6dc25c5?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:09:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0a32a48d-fc51-470f-a656-9ad20395646a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n + \ \"etag\": \"W/\\\"23f75d10-fec7-48d1-a621-0ea98eeb14d7\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n + \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '563' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:27 GMT + etag: + - W/"23f75d10-fec7-48d1-a621-0ea98eeb14d7" + 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: + - 55a776c8-9b51-4426-bd86-3622a6d807d3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T06:01:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/vpnGateways/test_s2s_vpn_gateway'' + under resource group ''cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001'' + was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '297' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:31 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": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "bgpSettings": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + Content-Length: + - '275' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"5f876b48-e5b2-4ad3-9cc2-0c494824d351\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": 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/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '993' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:09:37 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: + - 00f33cd9-803c-4047-9d2a-fea93e510f65 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:09: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: + - 0058ceab-7677-4d51-9150-c4804b7f713c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:09:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6f1a9b05-1d19-4478-9e44-c8fabf4a91e4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:10: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: + - b0d6b53a-d41e-47bb-9957-902d9aae6c13 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:10:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 78188c31-3449-43e6-973d-06e8b3813acd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:11:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 216f1d87-0429-4e99-9c4e-ffee6eacbef4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:11: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: + - 8ead8ba9-97a1-45bf-bc90-a68c1d20e184 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:13:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7609742c-b684-43a4-b5db-41555773deef + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:15: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: + - 56f8fd05-6ccf-474b-808f-bef405aa2251 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:17:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - bcce1918-26c8-4337-bb04-4efa25cf622c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:19: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: + - 4fefa7c6-56e4-47cd-949c-b14b835ad9f8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:21:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 29614e74-cd17-4187-ba9c-3ad5cce88e6a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:22:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7312c405-bacb-45aa-b753-298345fca489 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:24:22 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: + - 855bf6f4-419d-4978-b010-405188ed3981 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:26: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: + - 1d4e9e93-8b55-429e-b9a7-544adf63bb10 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:27:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d5909eff-fe40-4baf-921d-83bd11b6f88b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:29:22 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: + - 30f148a9-895b-4ab6-a030-60c0db8bd261 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:31:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ad5c30a5-dd1c-4107-b1b2-ee47d8c66003 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27c3cb8c-8a7d-40bc-b713-855ab404a51e?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:32: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: + - cc8731fe-55dd-4730-bbcb-d865a8d64a0c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"8221e44a-002b-42c7-96dd-936f47257887\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1872' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:32: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: + - 5f30b170-7ee5-4c1f-b2a7-d6e498b31bf1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T06:01:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:32:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"deviceProperties": {}, "ipAddress": + "10.0.1.110", "addressSpace": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"d7a519c0-1879-4b45-bfb9-fd004fe1bc25\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d15e6b05-b7b9-4812-a967-9d80747be8eb?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '763' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:32:50 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: + - 3da4415a-4858-4bd5-9827-69dd78c97762 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d15e6b05-b7b9-4812-a967-9d80747be8eb?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:33: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: + - b78fdf5b-4f55-4b87-b819-116eb5b213c2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d15e6b05-b7b9-4812-a967-9d80747be8eb?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:33:11 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: + - ac9c27b7-5478-4a6f-a445-4ad96939ba41 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"e83da5a5-8bb4-46b7-8c3a-d921c231630a\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '764' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:33:11 GMT + etag: + - W/"e83da5a5-8bb4-46b7-8c3a-d921c231630a" + 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: + - 3999a4f9-b993-4f57-aea7-c0f03727922d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"e83da5a5-8bb4-46b7-8c3a-d921c231630a\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '764' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:33:13 GMT + etag: + - W/"e83da5a5-8bb4-46b7-8c3a-d921c231630a" + 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: + - 3eb8cac5-af1e-428d-9192-672ac57e70ce + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110", "addressSpace": {"addressPrefixes": []}, "isSecuritySite": + false, "vpnSiteLinks": [{"name": "VPN-Site-Link1", "properties": {"ipAddress": + "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.0.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '539' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"error\": {\r\n \"code\": \"MissingDefaultLinkForVpnSiteDuringMigrationToLinkFormat\",\r\n + \ \"message\": \"Default Vpn link is missing while migrating Vpn Site /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1 + to include links. One default link with same name and properties as VpnSite + remote_vpn_site_1 is mandatory.\",\r\n \"details\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '492' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:33:13 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: + - 3ce1952a-e3f9-45a2-9e73-00d51bd6508f + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 400 + message: Bad Request +- request: + body: '{"name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + Content-Length: + - '1120' + Content-Type: + - application/json + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"492c9ef3-d049-47f2-a084-d53281f09763\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": [],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": false,\r\n + \ \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c23fee83-f9af-47b7-a907-95939542c8d8?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2196' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:33:15 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: + - c4c746cf-5d3c-4c7d-9347-1271120957aa + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c23fee83-f9af-47b7-a907-95939542c8d8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:33:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3dd31c1b-9e97-48c9-9eef-828c2d718b00 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c23fee83-f9af-47b7-a907-95939542c8d8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:33:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 981805f7-f226-4e77-a0e1-935d4e12db7a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c23fee83-f9af-47b7-a907-95939542c8d8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:33:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 543169b8-21e0-42eb-86c2-3e90a6cb1ffc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c23fee83-f9af-47b7-a907-95939542c8d8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:34:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a3960714-ed03-4df6-9826-56cc0636fcd8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c23fee83-f9af-47b7-a907-95939542c8d8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:35:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d5ef786d-1380-49e3-8766-39c6d2298dfe + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables + --labels + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"db22446c-0f72-484d-817a-5aa9468769aa\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionStatus\": \"Unknown\",\r\n \"connectionBandwidth\": + 10,\r\n \"ipsecPolicies\": [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n + \ \"enableBgp\": false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2233' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:35: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: + - e5935625-c4cd-48e7-8a00-595230b082e5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"db22446c-0f72-484d-817a-5aa9468769aa\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"db22446c-0f72-484d-817a-5aa9468769aa\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0\r\n }\r\n }\r\n ],\r\n \"virtualHub\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4347' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:36:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ffd4d310-e325-42ec-b9a2-791b26197dc2 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway", + "location": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "connections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [{"saLifeTimeSeconds": 86471, "saDataSizeKilobytes": 429496, "ipsecEncryption": + "AES256", "ipsecIntegrity": "SHA256", "ikeEncryption": "AES256", "ikeIntegrity": + "SHA384", "dhGroup": "DHGroup14", "pfsGroup": "PFS14"}], "enableRateLimiting": + false, "enableInternetSecurity": false, "useLocalAzureIpAddress": false, "routingConfiguration": + {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}], "bgpSettings": {"asn": 65515, "peerWeight": + 0, "bgpPeeringAddresses": [{"ipconfigurationId": "Instance0", "customBgpIpAddresses": + []}, {"ipconfigurationId": "Instance1", "customBgpIpAddresses": []}]}, "vpnGatewayScaleUnit": + 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + Content-Length: + - '2607' + Content-Type: + - application/json + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"3390ca1c-fc65-4bc1-9605-9fb4c16bccc0\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"3390ca1c-fc65-4bc1-9605-9fb4c16bccc0\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0\r\n }\r\n }\r\n ],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": 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/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '4720' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:36: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: + - 1c70ea02-c654-4fd3-ab9b-8b9ea59b25ea + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:36: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: + - d8106f19-fbb4-49d8-aef3-2d8a5fb41432 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:36:22 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: + - 249a3943-6fca-434d-a3c2-c763c885e7ce + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:36: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: + - 96f7ca05-68e4-442a-b831-45ec4342c8f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:37:04 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: + - 35aa6aea-9436-45cb-81b2-e1e5487570f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:37: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: + - 8abf3380-bfc0-4dcf-870c-a33a4013a8ca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:38: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: + - 855bd040-5b2a-4b2e-93de-75d554011bc7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/328e6580-95e3-4336-bfaa-72d4cd8b2098?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:39: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: + - e69bb949-1ec7-40f7-9432-98547ca8505a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"248ec5ae-ce8e-4b0a-8437-4e14b2d5f9de\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"248ec5ae-ce8e-4b0a-8437-4e14b2d5f9de\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0\r\n }\r\n }\r\n ],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4722' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:39:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 94524437-46ad-49a4-bf1e-749cd190a92d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy list + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"248ec5ae-ce8e-4b0a-8437-4e14b2d5f9de\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"248ec5ae-ce8e-4b0a-8437-4e14b2d5f9de\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0\r\n }\r\n }\r\n ],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4722' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:39: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: + - f0f43f64-d903-46e2-bc00-504584489f51 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"248ec5ae-ce8e-4b0a-8437-4e14b2d5f9de\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"248ec5ae-ce8e-4b0a-8437-4e14b2d5f9de\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0\r\n }\r\n }\r\n ],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4722' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:39:50 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: + - 610f6e73-17ec-4e0f-a3db-2f0a58c80eed + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway", + "location": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "connections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [], "enableRateLimiting": false, "enableInternetSecurity": false, "useLocalAzureIpAddress": + false, "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}], "bgpSettings": {"asn": 65515, "peerWeight": + 0, "bgpPeeringAddresses": [{"ipconfigurationId": "Instance0", "customBgpIpAddresses": + []}, {"ipconfigurationId": "Instance1", "customBgpIpAddresses": []}]}, "vpnGatewayScaleUnit": + 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + Content-Length: + - '2393' + Content-Type: + - application/json + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"abff1635-d025-48a4-a641-f9c464904587\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"abff1635-d025-48a4-a641-f9c464904587\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0\r\n }\r\n }\r\n ],\r\n \"virtualHub\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": 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/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '4345' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:39:50 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: + - 2bb2775e-66fc-49c3-883c-498363198b27 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:40: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: + - 2e960cde-b48c-49b2-ac0c-c4d160eb63b7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:40:10 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: + - 8affbaea-c79b-4d17-b26e-cb45d35aeec4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:40:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6354707a-9028-405b-9b7b-f85211e957ab + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:40: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: + - 5ba0ba86-22f0-4714-ad8d-3d9d010b4934 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:41:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ea2c0e10-fbe6-4ae5-b69f-0bc305b222fa + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:42: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: + - b6cd0311-9169-4b94-9678-9eb282c41151 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3869c0f5-991f-4a87-92cf-0b68037737f8?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:43: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: + - f52eac41-d38e-4d56-8eef-146d2a589cb2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"63d4345a-2d37-4119-9aa6-1d53a1b905c7\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"63d4345a-2d37-4119-9aa6-1d53a1b905c7\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0\r\n }\r\n }\r\n ],\r\n \"virtualHub\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"40.83.197.153\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.64.19.105\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"40.83.197.153\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.64.19.105\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4347' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:43: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: + - e0d6664e-e954-4f7b-afd2-110c5d5d0358 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --gateway-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e07dd337-c080-4f77-b1a3-652a0dc727a1?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 15 Nov 2021 06:43:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e07dd337-c080-4f77-b1a3-652a0dc727a1?api-version=2020-05-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: + - ffcbb3bc-b0b3-4d62-9199-f9dfa767fa19 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e07dd337-c080-4f77-b1a3-652a0dc727a1?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:43: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: + - f1a20dee-27f8-4e7f-81aa-0adf3a84b25d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e07dd337-c080-4f77-b1a3-652a0dc727a1?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:43: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: + - 450d9db5-ceb3-4ddf-8bda-cc7885495f35 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e07dd337-c080-4f77-b1a3-652a0dc727a1?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:44:15 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: + - 0f4dc366-4e17-45b8-811b-c5846fdc2607 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e07dd337-c080-4f77-b1a3-652a0dc727a1?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:44:56 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: + - c706ceb2-9010-4da7-bed6-a750b70ffcd9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8f01beed-da17-49f8-80ae-25e9e992f215?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 15 Nov 2021 06:44:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/8f01beed-da17-49f8-80ae-25e9e992f215?api-version=2020-05-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: + - c424f3e2-e4d7-4e21-b555-1473d068588e + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site delete + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8f01beed-da17-49f8-80ae-25e9e992f215?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:45:08 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: + - a23c9dad-a0e5-4c93-9207-5a5b25b44b4a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T06:01:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"deviceProperties": {}, "addressSpace": + {}, "vpnSiteLinks": [{"name": "remote_vpn_site_1", "properties": {"ipAddress": + "10.0.1.110"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + Content-Length: + - '174' + Content-Type: + - application/json + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"48b79c55-7d51-4341-8084-2c05d2b8c95c\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"48b79c55-7d51-4341-8084-2c05d2b8c95c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13cfd2ef-1e17-4c3e-b24f-49575fd55ea7?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '1384' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45: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: + - 69f62a70-94d5-4e31-8b47-94527cceb840 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13cfd2ef-1e17-4c3e-b24f-49575fd55ea7?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:45: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: + - df1c8aee-70ac-415e-ab1c-7b65e3951186 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"e450dfc4-6322-4f75-933c-b98a984d0981\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"e450dfc4-6322-4f75-933c-b98a984d0981\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1386' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:29 GMT + etag: + - W/"e450dfc4-6322-4f75-933c-b98a984d0981" + 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: + - cec2035d-314e-4dab-8498-c9902674cc4e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"e450dfc4-6322-4f75-933c-b98a984d0981\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"e450dfc4-6322-4f75-933c-b98a984d0981\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1386' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:31 GMT + etag: + - W/"e450dfc4-6322-4f75-933c-b98a984d0981" + 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: + - 0c6bcf7a-68c7-4f94-89ec-437c82f92898 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", + "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110"}}, {"name": "VPN-Site-Link1", "properties": {"ipAddress": + "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.1.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '866' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"2e245717-6ded-4ea3-9613-35ae26f97091\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"2e245717-6ded-4ea3-9613-35ae26f97091\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"2e245717-6ded-4ea3-9613-35ae26f97091\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/89352250-e536-4373-ae06-bedf80a04bef?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2119' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 950ccca4-4e6b-45a3-ae58-115f1c2b7a5c + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/89352250-e536-4373-ae06-bedf80a04bef?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:45:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9b2d8737-0e7f-4db9-8e59-f8f7af4ea148 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"db844363-175f-4795-8e2a-5fe8c6dca04c\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"db844363-175f-4795-8e2a-5fe8c6dca04c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"db844363-175f-4795-8e2a-5fe8c6dca04c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2122' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:42 GMT + etag: + - W/"db844363-175f-4795-8e2a-5fe8c6dca04c" + 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: + - 9099b3c1-6099-4d56-a06a-86a2c51a0762 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"db844363-175f-4795-8e2a-5fe8c6dca04c\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"db844363-175f-4795-8e2a-5fe8c6dca04c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"db844363-175f-4795-8e2a-5fe8c6dca04c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2122' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:43 GMT + etag: + - W/"db844363-175f-4795-8e2a-5fe8c6dca04c" + 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: + - 5ea466d0-83fe-41e4-afe0-b4bca2ef0a61 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", + "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110"}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1", + "name": "VPN-Site-Link1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": + "192.168.1.0"}}}, {"name": "VPN-Site-Link2", "properties": {"ipAddress": "10.0.1.112", + "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.2.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '1282' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"573feaab-3202-45ea-a7c3-7ae418a9d490\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"573feaab-3202-45ea-a7c3-7ae418a9d490\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"573feaab-3202-45ea-a7c3-7ae418a9d490\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"573feaab-3202-45ea-a7c3-7ae418a9d490\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/baea1736-2b61-4474-997b-2b7de2982f1f?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45: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: + - 60aa22d6-de3f-4933-9f27-20ee6c024310 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/baea1736-2b61-4474-997b-2b7de2982f1f?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:45:54 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: + - 8c3deacc-c022-419e-b102-56d7e06c07af + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2858' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:54 GMT + etag: + - W/"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448" + 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: + - 8e83bc21-4b4e-451d-840f-787764d572fc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2858' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:57 GMT + etag: + - W/"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448" + 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: + - 5278ba00-ccc5-4da5-a01b-d0278c644002 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2858' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45:59 GMT + etag: + - W/"0bd6cc93-6e52-40ab-bbfb-9b9e1fd0c448" + 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: + - d30e3ba6-9036-4bc1-b963-4e837ac01512 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1", + "name": "VPN-Site-Link1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": + "192.168.1.0"}}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2", + "name": "VPN-Site-Link2", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.112", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": + "192.168.2.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + Content-Length: + - '1205' + Content-Type: + - application/json + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"63dbd8d4-fe2a-49f1-88f8-c1d509f133b4\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"VPN-Site-Link1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"63dbd8d4-fe2a-49f1-88f8-c1d509f133b4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"63dbd8d4-fe2a-49f1-88f8-c1d509f133b4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/88109d2f-fd4b-4e0a-9002-dea9350590f9?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2231' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:45: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: + - 74ca2445-1eaa-4743-836a-3448581e0bdc + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/88109d2f-fd4b-4e0a-9002-dea9350590f9?api-version=2020-05-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: + - Mon, 15 Nov 2021 06:46: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: + - 7b3fe24c-547e-4cfb-9c74-732530d3744d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --index + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"d16c5b14-7067-48f5-ac74-62a93286c946\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"VPN-Site-Link1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"d16c5b14-7067-48f5-ac74-62a93286c946\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n + \ \"etag\": \"W/\\\"d16c5b14-7067-48f5-ac74-62a93286c946\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2234' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:46:10 GMT + etag: + - W/"d16c5b14-7067-48f5-ac74-62a93286c946" + 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: + - 6a8b49f5-9d73-445b-aed9-0292409f8798 + status: + code: 200 + message: OK +- request: + body: '{"name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "vpnLinkConnections": [{"name": "test_s2s_vpn_gateway_connection", "properties": + {"vpnSiteLink": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}}}], + "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + Content-Length: + - '1460' + Content-Type: + - application/json + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"e95da4c4-c1d1-4f88-b4e4-afe93a21f67b\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"e95da4c4-c1d1-4f88-b4e4-afe93a21f67b\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dd9960bd-12a8-417f-a0ff-4aae03a1184f?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '3403' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:46:13 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: + - ddbd31a8-7cfd-4a23-8bd7-ac6af4549e6f + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dd9960bd-12a8-417f-a0ff-4aae03a1184f?api-version=2020-05-01 + response: + body: + string: "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"InvalidConnectedSiteId\",\r\n + \ \"message\": \"The vpnsite id '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1' + is invalid or the vpnsite does not exist or the vpnsite exists with links + and no link connections are configured.\",\r\n \"details\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '452' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 06:46: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: + - 1a076342-0aa4-4618-aec5-3bbc3dfbad4f + status: + code: 200 + message: OK +version: 1 diff --git a/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml index 8076fc615c7..8bc698fa706 100644 --- a/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml +++ b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T07:50:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:06:56 GMT + - Mon, 15 Nov 2021 07:50:19 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n - \ \"etag\": \"W/\\\"db23ce62-6edd-480f-807c-5a8778caa89b\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"c172f699-9ac2-4cd8-bbbb-27deb7f654df\\\"\",\r\n \"type\": \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"disableVpnEncryption\": false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": @@ -74,7 +74,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/619c56b2-de60-4d37-a5d7-fa61f714dd53?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f47d50df-1001-4f36-bb42-4732b21ed581?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:02 GMT + - Mon, 15 Nov 2021 07:50:25 GMT expires: - '-1' pragma: @@ -95,9 +95,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ea445a12-0628-475e-93da-54d0c8e80823 + - 1acd2526-81c8-4524-93f1-db0a6537de6f x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/619c56b2-de60-4d37-a5d7-fa61f714dd53?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f47d50df-1001-4f36-bb42-4732b21ed581?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -129,7 +129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:12 GMT + - Mon, 15 Nov 2021 07:50:36 GMT expires: - '-1' pragma: @@ -146,7 +146,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 34a42e1c-50df-4c43-a026-cd00a4780e84 + - 143693d4-e1f1-41e6-9830-ef723452f119 status: code: 200 message: OK @@ -170,7 +170,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n - \ \"etag\": \"W/\\\"5ee38c46-8b7c-43db-b4e2-e84b3b2882e2\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"d6990f2d-e393-4bb5-8b5c-29e02ed9ed0f\\\"\",\r\n \"type\": \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"disableVpnEncryption\": false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": @@ -183,9 +183,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:12 GMT + - Mon, 15 Nov 2021 07:50:36 GMT etag: - - W/"5ee38c46-8b7c-43db-b4e2-e84b3b2882e2" + - W/"d6990f2d-e393-4bb5-8b5c-29e02ed9ed0f" expires: - '-1' pragma: @@ -202,7 +202,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b9c2e1e1-6639-4526-86f4-91b46815ab91 + - 40dd55c4-b165-4e60-bab9-b3bf9a8904b5 status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T07:50:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -234,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:14 GMT + - Mon, 15 Nov 2021 07:50:38 GMT expires: - '-1' pragma: @@ -273,7 +273,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n - \ \"etag\": \"W/\\\"ad43dff1-5c7d-4cba-a0be-55197fd12e32\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"6db4b679-f07e-4b4b-82fb-4e8a38f1bd18\\\"\",\r\n \"type\": \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": @@ -284,7 +284,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -292,7 +292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:22 GMT + - Mon, 15 Nov 2021 07:50:46 GMT expires: - '-1' pragma: @@ -305,9 +305,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2a4a88d0-10d6-44a1-a24d-13d2c745281a + - aee906a8-5351-40fa-b1cd-4bb382fa626b x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -327,7 +327,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -339,7 +339,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:32 GMT + - Mon, 15 Nov 2021 07:50:57 GMT expires: - '-1' pragma: @@ -356,7 +356,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 548d4f86-9476-4466-9085-e9f25c140c0f + - 7c797af7-2ad4-47de-a1c3-b49e9d541fd0 status: code: 200 message: OK @@ -376,7 +376,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -388,7 +388,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:07:42 GMT + - Mon, 15 Nov 2021 07:51:07 GMT expires: - '-1' pragma: @@ -405,7 +405,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 90f0e4c2-94b2-4e83-9fda-f71074ca38a6 + - 8fbdbbcd-9514-4f2d-aed4-1f451838509f status: code: 200 message: OK @@ -425,7 +425,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -437,7 +437,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:08:03 GMT + - Mon, 15 Nov 2021 07:51:27 GMT expires: - '-1' pragma: @@ -454,7 +454,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4e3bef10-1cd8-4f08-9d0d-4e03f78c39e5 + - 0061a331-60f0-4b69-a0ff-8041019956d5 status: code: 200 message: OK @@ -474,7 +474,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -486,7 +486,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:08:23 GMT + - Mon, 15 Nov 2021 07:51:49 GMT expires: - '-1' pragma: @@ -503,7 +503,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ec8207e3-fed4-4653-a0cf-e06b7fc2beb7 + - d3881d18-7d38-471c-b432-69e02c03ee4a status: code: 200 message: OK @@ -523,7 +523,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -535,7 +535,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:09:04 GMT + - Mon, 15 Nov 2021 07:52:29 GMT expires: - '-1' pragma: @@ -552,7 +552,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ba550219-f42c-477d-ac16-df271330eac6 + - 26285642-e489-4575-8c4c-ee5dc57396fb status: code: 200 message: OK @@ -572,7 +572,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -584,7 +584,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:09:44 GMT + - Mon, 15 Nov 2021 07:53:09 GMT expires: - '-1' pragma: @@ -601,7 +601,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1756e60c-c0ba-462c-8385-7c896e4ed2e9 + - fe563bca-a403-4e06-b3c4-4269093e48af status: code: 200 message: OK @@ -621,7 +621,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -633,7 +633,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:11:04 GMT + - Mon, 15 Nov 2021 07:54:30 GMT expires: - '-1' pragma: @@ -650,7 +650,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c6465082-ae4e-459d-a5bd-ade782f36056 + - 36fb2f16-6c2f-4f24-8398-94297a9aeee2 status: code: 200 message: OK @@ -670,7 +670,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0df56a84-28dd-4a03-874d-3d3ca7c8b765?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4bf5e5ae-b91c-4cf2-bb6a-1286c565e06c?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -682,7 +682,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:13:45 GMT + - Mon, 15 Nov 2021 07:57:12 GMT expires: - '-1' pragma: @@ -699,7 +699,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a0a1a1d1-cc8a-4915-8862-edd9b3d894fb + - 30f64f1b-f3f1-41d7-b307-9704a0ce7304 status: code: 200 message: OK @@ -723,7 +723,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n - \ \"etag\": \"W/\\\"d0ac5716-2cab-48cf-a845-75de738eda56\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"02ec0060-41bb-48de-b3f9-4d661a1eff14\\\"\",\r\n \"type\": \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": @@ -738,7 +738,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:13:45 GMT + - Mon, 15 Nov 2021 07:57:12 GMT expires: - '-1' pragma: @@ -755,7 +755,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f9cf0f7a-c29a-4a16-9420-8fe9136eed0e + - 6644e0c6-85ff-49ad-b44c-3d943a788b09 status: code: 200 message: OK @@ -783,13 +783,13 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n - \ \"etag\": \"W/\\\"88cf8193-27b7-468f-92c5-d1fdd0b87fbf\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"824e377c-bd4f-4d68-9c7f-b46cf88a8de4\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b6df21e9-6ef0-4317-91fe-9ac142c48cab?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ca4c206c-9b2d-420c-a984-44acea1eeefd?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -797,7 +797,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:13:48 GMT + - Mon, 15 Nov 2021 07:57:14 GMT expires: - '-1' pragma: @@ -810,9 +810,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6931485b-fc34-4245-afaa-73e44484f166 + - c10951c2-4fcf-40be-8e2a-eb3796f5b69c x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -832,7 +832,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b6df21e9-6ef0-4317-91fe-9ac142c48cab?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ca4c206c-9b2d-420c-a984-44acea1eeefd?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -844,7 +844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:13:58 GMT + - Mon, 15 Nov 2021 07:57:25 GMT expires: - '-1' pragma: @@ -861,7 +861,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 7c96380e-c7ff-4610-9c23-c1e7fe098632 + - ff4f3760-d82b-4584-ac9e-b7fd039598ef status: code: 200 message: OK @@ -885,7 +885,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n - \ \"etag\": \"W/\\\"912f85c4-7afc-45e8-9745-66d2345b6356\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"61ebcc4b-6031-4ba1-ace1-5a7e345cedb5\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" @@ -897,9 +897,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:13:59 GMT + - Mon, 15 Nov 2021 07:57:25 GMT etag: - - W/"912f85c4-7afc-45e8-9745-66d2345b6356" + - W/"61ebcc4b-6031-4ba1-ace1-5a7e345cedb5" expires: - '-1' pragma: @@ -916,7 +916,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 873c45f3-89e8-4cd4-ab31-3e8401ef7a9d + - 4fc65265-7f67-47b0-ad44-c64eee409126 status: code: 200 message: OK @@ -944,13 +944,13 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n - \ \"etag\": \"W/\\\"afaf7081-d121-4d0e-9a89-222eb391e5f0\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"15e5a4b6-ed28-49a5-8b67-64f639932306\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5dc78dab-56bf-4f59-a21e-6a80ec9e1d17?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/33a282e9-9a67-494b-8030-359af48a4b15?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -958,7 +958,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:01 GMT + - Mon, 15 Nov 2021 07:57:28 GMT expires: - '-1' pragma: @@ -971,7 +971,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4e11a98d-0ade-479b-b2c1-1d576b3a1586 + - 3d292a72-7fd7-4c74-8a33-d6acd8a04eb4 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -993,7 +993,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5dc78dab-56bf-4f59-a21e-6a80ec9e1d17?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/33a282e9-9a67-494b-8030-359af48a4b15?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1005,7 +1005,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:11 GMT + - Mon, 15 Nov 2021 07:57:38 GMT expires: - '-1' pragma: @@ -1022,7 +1022,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b6d8f2ef-1749-4a9d-87bc-fed8ba14222a + - 8666bc51-8415-4fbc-8dfe-8e0e40c308ca status: code: 200 message: OK @@ -1046,7 +1046,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n - \ \"etag\": \"W/\\\"4c0e79a7-636c-4089-bac8-fff8d748f5c3\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"347f53ac-84fa-48b3-8d1d-c2e3c89dd428\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" @@ -1058,9 +1058,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:11 GMT + - Mon, 15 Nov 2021 07:57:39 GMT etag: - - W/"4c0e79a7-636c-4089-bac8-fff8d748f5c3" + - W/"347f53ac-84fa-48b3-8d1d-c2e3c89dd428" expires: - '-1' pragma: @@ -1077,7 +1077,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9a7d129b-631e-4dcd-89cb-5c30456906d2 + - 4b9a5db3-289b-4f2e-802c-91a114c03636 status: code: 200 message: OK @@ -1100,7 +1100,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T07:50:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1109,7 +1109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:14 GMT + - Mon, 15 Nov 2021 07:57:40 GMT expires: - '-1' pragma: @@ -1153,7 +1153,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:16 GMT + - Mon, 15 Nov 2021 07:57:42 GMT expires: - '-1' pragma: @@ -1192,7 +1192,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n - \ \"etag\": \"W/\\\"14b816d2-a567-4ef7-a8dc-d1ce5984ec5c\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"e2d5fa80-2765-4033-877f-2a211b4b4731\\\"\",\r\n \"type\": \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [],\r\n \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n @@ -1204,7 +1204,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -1212,7 +1212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:22 GMT + - Mon, 15 Nov 2021 07:57:48 GMT expires: - '-1' pragma: @@ -1225,9 +1225,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2be8bc5f-1e2b-4795-a538-9e70194e44cf + - 4fe18d4e-d478-465f-a107-81403fd013f4 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1247,7 +1247,154 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-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: + - Mon, 15 Nov 2021 07:57: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: + - 756c138f-5c7b-458e-9ede-879599d0cb35 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-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: + - Mon, 15 Nov 2021 07:58: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: + - 58ece530-6838-4fb3-bb10-a99976b121eb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-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: + - Mon, 15 Nov 2021 07:58: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: + - f94bf551-0735-4c2f-9486-95b645f77336 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1259,7 +1406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:32 GMT + - Mon, 15 Nov 2021 07:58:50 GMT expires: - '-1' pragma: @@ -1276,7 +1423,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 810b907d-69dd-4522-80b7-3a98e5a0add8 + - 2d58bc38-163a-4446-b90b-39a3ff53a223 status: code: 200 message: OK @@ -1296,7 +1443,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1308,7 +1455,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:14:42 GMT + - Mon, 15 Nov 2021 07:59:30 GMT expires: - '-1' pragma: @@ -1325,7 +1472,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 57bfb63d-5365-4821-8a22-4d4b14029510 + - ac01be59-ea44-4216-ba89-29a923f9f6b1 status: code: 200 message: OK @@ -1345,7 +1492,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1357,7 +1504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:15:02 GMT + - Mon, 15 Nov 2021 08:00:11 GMT expires: - '-1' pragma: @@ -1374,7 +1521,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 52de7e8a-0da4-47d9-97b9-67ab53647645 + - 0760f8d1-44df-4561-a8f9-81ae5915d843 status: code: 200 message: OK @@ -1394,7 +1541,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1406,7 +1553,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:15:22 GMT + - Mon, 15 Nov 2021 08:01:30 GMT expires: - '-1' pragma: @@ -1423,7 +1570,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c33c07ce-956f-4515-94eb-ad888f0ec51b + - ec554209-a5ed-4fb5-95bf-fc621b14609c status: code: 200 message: OK @@ -1443,7 +1590,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1455,7 +1602,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:16:04 GMT + - Mon, 15 Nov 2021 08:04:11 GMT expires: - '-1' pragma: @@ -1472,7 +1619,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 11a52b0c-c7d2-487c-9345-2a581b74a3e8 + - b002ee6b-9915-4be4-90b8-4fef8f66230b status: code: 200 message: OK @@ -1492,7 +1639,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1504,7 +1651,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:16:43 GMT + - Mon, 15 Nov 2021 08:05:52 GMT expires: - '-1' pragma: @@ -1521,7 +1668,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6b6ebe72-9715-49f5-96d0-301c507ec722 + - e2a863eb-9457-4de1-9464-a5e9aae23f57 status: code: 200 message: OK @@ -1541,7 +1688,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1553,7 +1700,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:18:03 GMT + - Mon, 15 Nov 2021 08:07:33 GMT expires: - '-1' pragma: @@ -1570,7 +1717,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 70f00d23-5190-4c00-951d-20d0774840e4 + - f9d061c0-578e-4257-b014-131ba4ba37db status: code: 200 message: OK @@ -1590,7 +1737,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1602,7 +1749,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:20:44 GMT + - Mon, 15 Nov 2021 08:09:13 GMT expires: - '-1' pragma: @@ -1619,7 +1766,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 68de8b4c-8074-485b-966b-8c720f4226e2 + - 99a1d0a4-3035-4889-9058-22c86fa8785a status: code: 200 message: OK @@ -1639,7 +1786,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1651,7 +1798,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:22:25 GMT + - Mon, 15 Nov 2021 08:10:54 GMT expires: - '-1' pragma: @@ -1668,7 +1815,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 314b6f36-5f79-4d04-b5a0-33914629e42b + - 3648f525-bb84-494c-b88f-e384a09cf9dd status: code: 200 message: OK @@ -1688,7 +1835,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1700,7 +1847,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:24:06 GMT + - Mon, 15 Nov 2021 08:12:34 GMT expires: - '-1' pragma: @@ -1717,7 +1864,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 296d2783-08d2-424e-966b-54f54b8dbedf + - 3e442ff1-a923-473a-b54f-b2560a238c3d status: code: 200 message: OK @@ -1737,7 +1884,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1749,7 +1896,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:25:45 GMT + - Mon, 15 Nov 2021 08:14:15 GMT expires: - '-1' pragma: @@ -1766,7 +1913,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d44ff149-2ab5-4854-82cb-50001e0f5232 + - 53dff98a-941c-4a5a-8b97-c2be102b81a6 status: code: 200 message: OK @@ -1786,7 +1933,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1798,7 +1945,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:27:26 GMT + - Mon, 15 Nov 2021 08:15:55 GMT expires: - '-1' pragma: @@ -1815,7 +1962,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 08111258-b066-48b1-9b65-a7713e9e1225 + - 61c4bfbe-9d24-4fa9-892e-9e77e8e61bc5 status: code: 200 message: OK @@ -1835,7 +1982,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1847,7 +1994,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:29:07 GMT + - Mon, 15 Nov 2021 08:17:36 GMT expires: - '-1' pragma: @@ -1864,7 +2011,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2e681768-4ec9-47a2-b11d-e93c9d8cbadb + - cb7aefc1-220e-46e6-a7c6-cb8cb1a3b05c status: code: 200 message: OK @@ -1884,7 +2031,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1896,7 +2043,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:30:47 GMT + - Mon, 15 Nov 2021 08:19:15 GMT expires: - '-1' pragma: @@ -1913,7 +2060,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 75f59609-b2ca-469f-a0d7-2a63d8bc8d77 + - 2e5edc47-3071-40dc-b620-6d063f6c4a26 status: code: 200 message: OK @@ -1933,7 +2080,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1945,7 +2092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:32:26 GMT + - Mon, 15 Nov 2021 08:20:57 GMT expires: - '-1' pragma: @@ -1962,7 +2109,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 26902ad5-e237-4be4-99ee-c13c51b8bdcd + - b221b461-8270-4f99-97e0-23e51b859501 status: code: 200 message: OK @@ -1982,7 +2129,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1994,7 +2141,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:34:07 GMT + - Mon, 15 Nov 2021 08:22:37 GMT expires: - '-1' pragma: @@ -2011,7 +2158,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8c6bc542-c3db-427b-9947-95ae3a58528c + - 38ce8dd8-9aab-4a54-a279-25b03baa08e3 status: code: 200 message: OK @@ -2031,7 +2178,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -2043,7 +2190,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:35:48 GMT + - Mon, 15 Nov 2021 08:24:18 GMT expires: - '-1' pragma: @@ -2060,7 +2207,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3c3116af-ed4a-4e63-8fbf-625fa55e4242 + - 7b9fe5b0-f1a9-4ef1-a8b8-b4a440c4d07b status: code: 200 message: OK @@ -2080,7 +2227,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -2092,7 +2239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:37:28 GMT + - Mon, 15 Nov 2021 08:25:59 GMT expires: - '-1' pragma: @@ -2109,7 +2256,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e729fb76-d15b-4877-ba58-9429f43a79df + - a09dbacc-0308-4d99-8033-6b0f818b2ab1 status: code: 200 message: OK @@ -2129,7 +2276,7 @@ interactions: User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57447b86-0a1e-40c3-bfe8-0459bd4b0af9?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3e6aea9d-ff82-47d9-9f5f-2c772138d611?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -2141,7 +2288,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:08 GMT + - Mon, 15 Nov 2021 08:27:39 GMT expires: - '-1' pragma: @@ -2158,7 +2305,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4989604f-ce83-4f82-bd0b-844930c9d907 + - 73e5e6c1-a263-4691-9c60-391cd14b46e8 status: code: 200 message: OK @@ -2182,7 +2329,7 @@ interactions: response: body: string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n - \ \"etag\": \"W/\\\"605a6942-1a1d-4533-91a0-3a6de3439ea0\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0641d765-071a-4968-8d62-55bd1fbea8cd\\\"\",\r\n \"type\": \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [],\r\n \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n @@ -2190,27 +2337,27 @@ interactions: 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": - [\r\n \"13.87.202.55\",\r\n \"10.0.1.4\"\r\n ]\r\n + [\r\n \"13.83.91.250\",\r\n \"10.0.1.4\"\r\n ]\r\n \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": - [\r\n \"13.87.202.180\",\r\n \"10.0.1.5\"\r\n ]\r\n + [\r\n \"13.83.92.88\",\r\n \"10.0.1.5\"\r\n ]\r\n \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n - \ \"publicIpAddress\": \"13.87.202.55\",\r\n \"privateIpAddress\": + \ \"publicIpAddress\": \"13.83.91.250\",\r\n \"privateIpAddress\": \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n - \ \"publicIpAddress\": \"13.87.202.180\",\r\n \"privateIpAddress\": + \ \"publicIpAddress\": \"13.83.92.88\",\r\n \"privateIpAddress\": \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1872' + - '1868' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:09 GMT + - Mon, 15 Nov 2021 08:27:40 GMT expires: - '-1' pragma: @@ -2227,7 +2374,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6c7675b5-9de8-4abe-9755-58d1414c2997 + - 35e6c3d6-aafd-4ce4-b3a4-588298d38c48 status: code: 200 message: OK @@ -2243,14 +2390,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --ip-address + - -g -n --ip-address --with-link User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T07:50:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2259,7 +2406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:12 GMT + - Mon, 15 Nov 2021 08:27:42 GMT expires: - '-1' pragma: @@ -2274,8 +2421,9 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westus", "properties": {"deviceProperties": {}, "ipAddress": - "10.0.1.110", "addressSpace": {}}}' + body: '{"location": "westus", "properties": {"deviceProperties": {}, "addressSpace": + {}, "vpnSiteLinks": [{"name": "remote_vpn_site_1", "properties": {"ipAddress": + "10.0.1.110"}}]}}' headers: Accept: - application/json @@ -2286,11 +2434,11 @@ interactions: Connection: - keep-alive Content-Length: - - '109' + - '174' Content-Type: - application/json ParameterSetName: - - -g -n --ip-address + - -g -n --ip-address --with-link User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: PUT @@ -2298,27 +2446,33 @@ interactions: response: body: string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"ad2a9fcc-4995-40bc-8fcd-b196def99cdb\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"fc77d023-621e-4b1f-9e3f-da17fcb5e022\\\"\",\r\n \"type\": \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"fc77d023-621e-4b1f-9e3f-da17fcb5e022\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1aafb49-7a1f-41a0-9b66-b565bd5426fa?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5ce0e464-8450-4ec9-a492-114362f3bbfc?api-version=2020-05-01 cache-control: - no-cache content-length: - - '763' + - '1384' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:21 GMT + - Mon, 15 Nov 2021 08:27:48 GMT expires: - '-1' pragma: @@ -2331,9 +2485,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 82fb8187-1eb9-4144-a36c-567424853da8 + - b4c17c7f-32b1-48f1-88e1-9852efb065d1 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -2349,11 +2503,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --ip-address + - -g -n --ip-address --with-link User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1aafb49-7a1f-41a0-9b66-b565bd5426fa?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5ce0e464-8450-4ec9-a492-114362f3bbfc?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -2365,7 +2519,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:31 GMT + - Mon, 15 Nov 2021 08:27:58 GMT expires: - '-1' pragma: @@ -2382,7 +2536,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - fa83129b-041e-4967-8ec9-1ad104d7f640 + - 2837d2cd-f026-49ac-a1fe-bb66cc477918 status: code: 200 message: OK @@ -2398,11 +2552,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --ip-address + - -g -n --ip-address --with-link User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1aafb49-7a1f-41a0-9b66-b565bd5426fa?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5ce0e464-8450-4ec9-a492-114362f3bbfc?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -2414,7 +2568,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:41 GMT + - Mon, 15 Nov 2021 08:28:08 GMT expires: - '-1' pragma: @@ -2431,7 +2585,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1e2834bb-56c9-48d1-83f6-aaaecfd8c2ca + - 10084b7e-0261-4fc7-8d52-595d47575153 status: code: 200 message: OK @@ -2447,7 +2601,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --ip-address + - -g -n --ip-address --with-link User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET @@ -2455,25 +2609,31 @@ interactions: response: body: string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"1eef002f-8866-4085-8aa9-fa8d2f1b1b73\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"1ef5a61b-9e6c-4079-885c-225c491c30a5\\\"\",\r\n \"type\": \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"1ef5a61b-9e6c-4079-885c-225c491c30a5\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '764' + - '1386' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:41 GMT + - Mon, 15 Nov 2021 08:28:09 GMT etag: - - W/"1eef002f-8866-4085-8aa9-fa8d2f1b1b73" + - W/"1ef5a61b-9e6c-4079-885c-225c491c30a5" expires: - '-1' pragma: @@ -2490,7 +2650,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 65e82db5-76aa-45b2-a8fa-36634c83094a + - e48a40ac-fd61-4ce2-8f4b-7f3c1b0576d4 status: code: 200 message: OK @@ -2514,25 +2674,31 @@ interactions: response: body: string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"1eef002f-8866-4085-8aa9-fa8d2f1b1b73\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"1ef5a61b-9e6c-4079-885c-225c491c30a5\\\"\",\r\n \"type\": \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"ipAddress\": \"10.0.1.110\"\r\n }\r\n}" + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"1ef5a61b-9e6c-4079-885c-225c491c30a5\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '764' + - '1386' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:43 GMT + - Mon, 15 Nov 2021 08:28:10 GMT etag: - - W/"1eef002f-8866-4085-8aa9-fa8d2f1b1b73" + - W/"1ef5a61b-9e6c-4079-885c-225c491c30a5" expires: - '-1' pragma: @@ -2549,16 +2715,18 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 24b11d47-0119-4855-859e-c5a3a8334209 + - 950403db-c3f4-4e38-92fb-59e1f8c5c485 status: code: 200 message: OK - request: body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": - 0}, "ipAddress": "10.0.1.110", "addressSpace": {"addressPrefixes": []}, "isSecuritySite": - false, "vpnSiteLinks": [{"name": "VPN-Site-Link1", "properties": {"ipAddress": - "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.0.0"}}}]}}' + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", + "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110"}}, {"name": "VPN-Site-Link1", "properties": {"ipAddress": + "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.1.0"}}}]}}' headers: Accept: - application/json @@ -2569,7 +2737,7 @@ interactions: Connection: - keep-alive Content-Length: - - '539' + - '866' Content-Type: - application/json ParameterSetName: @@ -2580,19 +2748,42 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"MissingDefaultLinkForVpnSiteDuringMigrationToLinkFormat\",\r\n - \ \"message\": \"Default Vpn link is missing while migrating Vpn Site /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1 - to include links. One default link with same name and properties as VpnSite - remote_vpn_site_1 is mandatory.\",\r\n \"details\": []\r\n }\r\n}" + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"2f1e6d1b-5131-46d5-abca-ab4535e277d4\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"2f1e6d1b-5131-46d5-abca-ab4535e277d4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"2f1e6d1b-5131-46d5-abca-ab4535e277d4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d0fa1307-a1b6-48e1-960e-40dff306c881?api-version=2020-05-01 cache-control: - no-cache content-length: - - '492' + - '2119' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:44 GMT + - Mon, 15 Nov 2021 08:28:11 GMT expires: - '-1' pragma: @@ -2602,52 +2793,50 @@ interactions: - 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: - - 5b402ca8-74ac-461d-b030-a3a67955364d + - 12dd7013-aebf-4284-aa7c-7fc5c80f2951 x-ms-ratelimit-remaining-subscription-writes: - '1198' status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site delete + - network vpn-site link add Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -g -n + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d0fa1307-a1b6-48e1-960e-40dff306c881?api-version=2020-05-01 response: body: - string: '' + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0afa6b4d-01f0-4a71-987d-d44efc452ec8?api-version=2020-05-01 cache-control: - no-cache content-length: - - '0' + - '30' + content-type: + - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:46 GMT + - Mon, 15 Nov 2021 08:28:21 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/0afa6b4d-01f0-4a71-987d-d44efc452ec8?api-version=2020-05-01 pragma: - no-cache server: @@ -2655,15 +2844,17 @@ interactions: - 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: - - 905cdef0-abb7-4d51-bfc4-3068cf7ccdad - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - 1531bd0a-c9cb-44ff-9e71-1590ea9f112d status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -2672,15 +2863,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site delete + - network vpn-site link add Connection: - keep-alive ParameterSetName: - - -g -n + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0afa6b4d-01f0-4a71-987d-d44efc452ec8?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d0fa1307-a1b6-48e1-960e-40dff306c881?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -2692,7 +2883,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:39:57 GMT + - Mon, 15 Nov 2021 08:28:31 GMT expires: - '-1' pragma: @@ -2709,7 +2900,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 90d9292c-2796-4d3a-b200-100a1125a214 + - 6994e7a9-c81c-4154-9a7d-7f53b820bdc0 status: code: 200 message: OK @@ -2717,97 +2908,495 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site create + - network vpn-site link add Connection: - keep-alive ParameterSetName: - - -g -n --ip-address --with-link + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","name":"cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-12T09:06:50Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 09:39:58 GMT + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"8cf15b39-7eb0-42bf-861f-b5714d7d929c\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"8cf15b39-7eb0-42bf-861f-b5714d7d929c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"8cf15b39-7eb0-42bf-861f-b5714d7d929c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2122' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 08:28:32 GMT + etag: + - W/"8cf15b39-7eb0-42bf-861f-b5714d7d929c" 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: + - 2effc7c5-7f18-402b-8269-b0a83ab9ac18 status: code: 200 message: OK - request: - body: '{"location": "westus", "properties": {"deviceProperties": {}, "addressSpace": - {}, "vpnSiteLinks": [{"name": "remote_vpn_site_1", "properties": {"ipAddress": - "10.0.1.110"}}]}}' + body: '{"name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "vpnLinkConnections": [{"name": "test_s2s_vpn_gateway_connection", "properties": + {"vpnSiteLink": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}}}], + "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site create + - network vpn-gateway connection create Connection: - keep-alive Content-Length: - - '174' + - '1460' Content-Type: - application/json ParameterSetName: - - -g -n --ip-address --with-link + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"4fe390af-dd8d-4fc1-a8c3-9a51725ff328\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"4fe390af-dd8d-4fc1-a8c3-9a51725ff328\\\"\",\r\n + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"e5aac739-24eb-45f1-9bdf-bca73f8d3265\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"e5aac739-24eb-45f1-9bdf-bca73f8d3265\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab9599e5-ec4e-4d9a-9043-dd8ab0000519?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '3403' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 08:28:35 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: + - 9cbb9b6e-f8eb-4a37-a668-93b8a8380502 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab9599e5-ec4e-4d9a-9043-dd8ab0000519?api-version=2020-05-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: + - Mon, 15 Nov 2021 08:28: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: + - 10b4474c-5dd2-46c0-89ab-9f4e639f4e38 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab9599e5-ec4e-4d9a-9043-dd8ab0000519?api-version=2020-05-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: + - Mon, 15 Nov 2021 08:28:56 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: + - dbcc00db-cb27-421d-9400-79ad45a42503 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab9599e5-ec4e-4d9a-9043-dd8ab0000519?api-version=2020-05-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: + - Mon, 15 Nov 2021 08:29:16 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: + - 92b1ec42-fe8e-4887-b8d7-2aed53fd0504 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab9599e5-ec4e-4d9a-9043-dd8ab0000519?api-version=2020-05-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: + - Mon, 15 Nov 2021 08:29:56 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: + - d944c4ad-1d88-41ea-9455-c6be85a140e5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"9555d5fd-7faf-40a0-82a5-7a6c045dad36\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"9555d5fd-7faf-40a0-82a5-7a6c045dad36\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3447' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 08:29:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 97cbda4c-96fb-43f1-b113-fe7bfc5b424e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn add + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"9555d5fd-7faf-40a0-82a5-7a6c045dad36\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"9555d5fd-7faf-40a0-82a5-7a6c045dad36\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b13761e7-7640-4091-868b-45555921d393?api-version=2020-05-01 cache-control: - no-cache content-length: - - '1384' + - '3447' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:00 GMT + - Mon, 15 Nov 2021 08:30:00 GMT expires: - '-1' pragma: @@ -2817,44 +3406,105 @@ interactions: - 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: - - fc083ee5-7148-4d31-a027-f4c97c53058e - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - c3dcf23c-8561-4cba-bb20-8fbd49ecf1bd status: - code: 201 - message: Created + code: 200 + message: OK - request: - body: null + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "enableInternetSecurity": false, "vpnLinkConnections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"vpnSiteLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [], "enableRateLimiting": false, "useLocalAzureIpAddress": false}}, {"name": + "Connection-Link1", "properties": {"vpnSiteLink": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1"}, + "vpnConnectionProtocolType": "IKEv2"}}], "routingConfiguration": {"associatedRouteTable": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site create + - network vpn-gateway connection vpn-site-link-conn add Connection: - keep-alive + Content-Length: + - '2665' + Content-Type: + - application/json ParameterSetName: - - -g -n --ip-address --with-link + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b13761e7-7640-4091-868b-45555921d393?api-version=2020-05-01 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"90125fb2-2347-4234-b21f-814978dd3eb6\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"90125fb2-2347-4234-b21f-814978dd3eb6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n },\r\n + \ {\r\n \"name\": \"Connection-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/Connection-Link1\",\r\n + \ \"etag\": \"W/\\\"90125fb2-2347-4234-b21f-814978dd3eb6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b23d57b-29c9-4d38-8506-f70ddae579a4?api-version=2020-05-01 cache-control: - no-cache content-length: - - '29' + - '4810' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:11 GMT + - Mon, 15 Nov 2021 08:30:00 GMT expires: - '-1' pragma: @@ -2871,7 +3521,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 086bff98-0756-42d5-9a90-b8907bbb7ec8 + - 7386b1ab-12f2-4bb3-9938-d5ac7f3fa4d9 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' status: code: 200 message: OK @@ -2883,43 +3535,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site create + - network vpn-gateway connection vpn-site-link-conn add Connection: - keep-alive ParameterSetName: - - -g -n --ip-address --with-link + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b23d57b-29c9-4d38-8506-f70ddae579a4?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: cache-control: - no-cache content-length: - - '1386' + - '30' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:11 GMT - etag: - - W/"47f76f01-aec8-4dfe-9040-cd13fb5b0a42" + - Mon, 15 Nov 2021 08:30:11 GMT expires: - '-1' pragma: @@ -2936,7 +3572,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 7a25de0a-fca9-4363-a450-0fdc3cc85c3f + - 7ee9529d-c182-45d9-b6e8-22017481de9d status: code: 200 message: OK @@ -2944,47 +3580,31 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn add Connection: - keep-alive ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b23d57b-29c9-4d38-8506-f70ddae579a4?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"47f76f01-aec8-4dfe-9040-cd13fb5b0a42\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: cache-control: - no-cache content-length: - - '1386' + - '30' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:12 GMT - etag: - - W/"47f76f01-aec8-4dfe-9040-cd13fb5b0a42" + - Mon, 15 Nov 2021 08:30:21 GMT expires: - '-1' pragma: @@ -3001,75 +3621,39 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0e3b20c3-66aa-4d1a-bee5-52955b6a563e + - 061c3032-1bf8-4e5b-a0d0-40fa260c442e status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", - "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": - 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", - "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": - 0}, "ipAddress": "10.0.1.110"}}, {"name": "VPN-Site-Link1", "properties": {"ipAddress": - "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.1.0"}}}]}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn add Connection: - keep-alive - Content-Length: - - '866' - Content-Type: - - application/json ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b23d57b-29c9-4d38-8506-f70ddae579a4?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"2999ebbb-c1a0-40e7-aef8-1d8d96794fdc\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"2999ebbb-c1a0-40e7-aef8-1d8d96794fdc\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"2999ebbb-c1a0-40e7-aef8-1d8d96794fdc\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/17957f39-3f95-49e1-aab0-152dc1894319?api-version=2020-05-01 cache-control: - no-cache content-length: - - '2119' + - '30' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:13 GMT + - Mon, 15 Nov 2021 08:30:42 GMT expires: - '-1' pragma: @@ -3086,9 +3670,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e387348d-85c2-48b9-b5cf-967f59be860d - x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - 9bb8dcb0-d1c5-40b1-9130-f1036cc177a2 status: code: 200 message: OK @@ -3100,15 +3682,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn add Connection: - keep-alive ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/17957f39-3f95-49e1-aab0-152dc1894319?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b23d57b-29c9-4d38-8506-f70ddae579a4?api-version=2020-05-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -3120,7 +3702,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:23 GMT + - Mon, 15 Nov 2021 08:31:22 GMT expires: - '-1' pragma: @@ -3137,7 +3719,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 94180851-fbbc-4e58-b7fd-9d65026c0487 + - a6d92a5b-89dc-4263-8abc-1a1176127b69 status: code: 200 message: OK @@ -3149,51 +3731,67 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn add Connection: - keep-alive ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --vpn-site-link-conn-name --vpn-site-link --vpn-connection-protocol-type User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ },\r\n {\r\n \"name\": \"Connection-Link1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/Connection-Link1\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2122' + - '4897' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:24 GMT - etag: - - W/"370bd10b-93ec-41a3-b61c-4605d7c5727e" + - Mon, 15 Nov 2021 08:31:23 GMT expires: - '-1' pragma: @@ -3210,7 +3808,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d46d44e0-4181-47ea-8e57-e2a2fc52f4bb + - 96dd7474-6ccf-42e9-8aae-7efb1bc98a86 status: code: 200 message: OK @@ -3222,51 +3820,67 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn list Connection: - keep-alive ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"370bd10b-93ec-41a3-b61c-4605d7c5727e\\\"\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ },\r\n {\r\n \"name\": \"Connection-Link1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/Connection-Link1\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2122' + - '4897' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:26 GMT - etag: - - W/"370bd10b-93ec-41a3-b61c-4605d7c5727e" + - Mon, 15 Nov 2021 08:31:26 GMT expires: - '-1' pragma: @@ -3283,86 +3897,79 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9243b1fa-805d-48bc-b61c-d46488e50ac7 + - dcf5f5a1-bbfd-4f41-8dac-de76a1471ec3 status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", - "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": - 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", - "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": - 0}, "ipAddress": "10.0.1.110"}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1", - "name": "VPN-Site-Link1", "properties": {"linkProperties": {"linkSpeedInMbps": - 0}, "ipAddress": "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": - "192.168.1.0"}}}, {"name": "VPN-Site-Link2", "properties": {"ipAddress": "10.0.1.112", - "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.2.0"}}}]}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive - Content-Length: - - '1282' - Content-Type: - - application/json ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n - \ \"etag\": \"W/\\\"38733403-727d-4083-a3ec-e9da2ae714b6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ },\r\n {\r\n \"name\": \"Connection-Link1\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/Connection-Link1\",\r\n + \ \"etag\": \"W/\\\"cf24009e-a210-4857-b799-9559233d6665\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6a4f9e5-0cf4-4f2a-87de-8dc448f7922c?api-version=2020-05-01 cache-control: - no-cache content-length: - - '2854' + - '4897' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:27 GMT + - Mon, 15 Nov 2021 08:31:28 GMT expires: - '-1' pragma: @@ -3379,41 +3986,84 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - cff1ec10-f1f1-4e10-9ded-6198b5a1e24e - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - 2cb208fe-8799-4977-b2df-3985d0a8305f status: code: 200 message: OK - request: - body: null + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "enableInternetSecurity": false, "vpnLinkConnections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"vpnSiteLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [], "enableRateLimiting": false, "useLocalAzureIpAddress": false}}], "routingConfiguration": + {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive + Content-Length: + - '2329' + Content-Type: + - application/json ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6a4f9e5-0cf4-4f2a-87de-8dc448f7922c?api-version=2020-05-01 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"ff8c3ab5-a727-4214-8bce-bb26ef4d0064\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"ff8c3ab5-a727-4214-8bce-bb26ef4d0064\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/352125c0-465b-4d20-8f7a-ad4745420962?api-version=2020-05-01 cache-control: - no-cache content-length: - - '29' + - '3403' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:37 GMT + - Mon, 15 Nov 2021 08:31:29 GMT expires: - '-1' pragma: @@ -3430,7 +4080,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 98c39098-bae9-4886-81ab-0a3c37a71f03 + - 0042e9cf-be03-4c52-91bc-0d2976fd1048 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' status: code: 200 message: OK @@ -3442,59 +4094,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link add + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive ParameterSetName: - - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/352125c0-465b-4d20-8f7a-ad4745420962?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: cache-control: - no-cache content-length: - - '2858' + - '30' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:38 GMT - etag: - - W/"9467286e-d679-4db7-862a-4a015cce8bf4" + - Mon, 15 Nov 2021 08:31:39 GMT expires: - '-1' pragma: @@ -3511,7 +4131,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c53223c7-d208-45c6-a2bf-24a6f8704043 + - 9e0461d9-0df6-4040-befe-6bad569fddc1 status: code: 200 message: OK @@ -3519,63 +4139,31 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link list + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive ParameterSetName: - - -g -n + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/352125c0-465b-4d20-8f7a-ad4745420962?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: cache-control: - no-cache content-length: - - '2858' + - '30' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:41 GMT - etag: - - W/"9467286e-d679-4db7-862a-4a015cce8bf4" + - Mon, 15 Nov 2021 08:31:49 GMT expires: - '-1' pragma: @@ -3592,7 +4180,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f1fb5606-798a-4e04-a6a7-33858cd3d6af + - 78324e59-5f32-4a03-a889-2ffd7428fecb status: code: 200 message: OK @@ -3600,63 +4188,31 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link remove + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive ParameterSetName: - - -g -n --index + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/352125c0-465b-4d20-8f7a-ad4745420962?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": - {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": - \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": - \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n - \ \"etag\": \"W/\\\"9467286e-d679-4db7-862a-4a015cce8bf4\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"InProgress\"\r\n}" headers: cache-control: - no-cache content-length: - - '2858' + - '30' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:43 GMT - etag: - - W/"9467286e-d679-4db7-862a-4a015cce8bf4" + - Mon, 15 Nov 2021 08:32:10 GMT expires: - '-1' pragma: @@ -3673,80 +4229,39 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8db01640-f9b5-46ad-a8e9-4e384d668781 + - c9d34075-11a1-48c3-acee-fbd16de3aad8 status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", - "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": - 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1", - "name": "VPN-Site-Link1", "properties": {"linkProperties": {"linkSpeedInMbps": - 0}, "ipAddress": "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": - "192.168.1.0"}}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2", - "name": "VPN-Site-Link2", "properties": {"linkProperties": {"linkSpeedInMbps": - 0}, "ipAddress": "10.0.1.112", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": - "192.168.2.0"}}}]}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link remove + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive - Content-Length: - - '1205' - Content-Type: - - application/json ParameterSetName: - - -g -n --index + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/352125c0-465b-4d20-8f7a-ad4745420962?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"d2317e53-aa47-484d-84c3-452ef90eb4f1\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"VPN-Site-Link1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"d2317e53-aa47-484d-84c3-452ef90eb4f1\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n - \ \"etag\": \"W/\\\"d2317e53-aa47-484d-84c3-452ef90eb4f1\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"status\": \"Succeeded\"\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4e68a6eb-8475-495f-8e96-251b46c6d4f0?api-version=2020-05-01 cache-control: - no-cache content-length: - - '2231' + - '29' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:44 GMT + - Mon, 15 Nov 2021 08:32:50 GMT expires: - '-1' pragma: @@ -3763,9 +4278,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e588de27-2870-4454-925d-b1659847e6dd - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - 35f5b1cc-ce51-4cba-9499-e89b537a32e3 status: code: 200 message: OK @@ -3777,27 +4290,54 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link remove + - network vpn-gateway connection vpn-site-link-conn remove Connection: - keep-alive ParameterSetName: - - -g -n --index + - -g -n --gateway-name --index User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4e68a6eb-8475-495f-8e96-251b46c6d4f0?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"NotConnected\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '29' + - '3452' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:54 GMT + - Mon, 15 Nov 2021 08:32:51 GMT expires: - '-1' pragma: @@ -3814,7 +4354,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - fd84f2e9-d4b4-46f7-9cd1-60c5e8ac35cc + - 6cdf49b6-3eef-4511-9f46-72c6f28d7edd status: code: 200 message: OK @@ -3822,57 +4362,83 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-site link remove + - network vpn-gateway connection ipsec-policy add Connection: - keep-alive ParameterSetName: - - -g -n --index + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n - \ \"etag\": \"W/\\\"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n - \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n - \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n - \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": - false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n - \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"VPN-Site-Link1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n - \ \"etag\": \"W/\\\"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ },\r\n {\r\n \"name\": \"VPN-Site-Link2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link2\",\r\n - \ \"etag\": \"W/\\\"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"ipAddress\": \"10.0.1.112\",\r\n \"bgpProperties\": {\r\n - \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.2.0\"\r\n - \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": - 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n - \ }\r\n ]\r\n }\r\n}" + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": + \"test_s2s_vpn_gateway_connection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"vpnSiteLink\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n + \ \"egressBytesTransferred\": 0\r\n }\r\n }\r\n ],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.83.91.250\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"13.83.92.88\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"13.83.91.250\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"13.83.92.88\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2234' + - '5665' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:54 GMT - etag: - - W/"d6030bd6-2df7-4ba7-b784-cf8cb4a302b0" + - Mon, 15 Nov 2021 08:32:52 GMT expires: - '-1' pragma: @@ -3889,67 +4455,67 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2a562ba7-4614-4779-ab63-684ae02d387c + - 075af2a4-e154-4d93-a9a2-a18db5b7c3ca status: code: 200 message: OK - request: - body: '{"name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, - "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway", + "location": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "connections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "ipsecPolicies": [{"saLifeTimeSeconds": 86471, "saDataSizeKilobytes": 429496, + "ipsecEncryption": "AES256", "ipsecIntegrity": "SHA256", "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", "dhGroup": "DHGroup14", "pfsGroup": "PFS14"}], "enableInternetSecurity": + false, "vpnLinkConnections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"vpnSiteLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [], "enableRateLimiting": false, "useLocalAzureIpAddress": false}}], "routingConfiguration": + {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}}}}' + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}], "bgpSettings": {"asn": 65515, "peerWeight": + 0, "bgpPeeringAddresses": [{"ipconfigurationId": "Instance0", "customBgpIpAddresses": + []}, {"ipconfigurationId": "Instance1", "customBgpIpAddresses": []}]}, "vpnGatewayScaleUnit": + 1}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway connection create + - network vpn-gateway connection ipsec-policy add Connection: - keep-alive Content-Length: - - '1120' + - '3279' Content-Type: - application/json ParameterSetName: - - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables - --labels + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 response: body: - string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n - \ \"etag\": \"W/\\\"20081661-397e-4609-ac24-dda2eca11d57\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n - \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": - {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n - \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n - \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n - \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": - []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n - \ },\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": - 0,\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": [],\r\n \"vpnConnectionProtocolType\": - \"IKEv2\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": false,\r\n - \ \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": - false,\r\n \"routingWeight\": 0\r\n }\r\n}" + string: "{\r\n \"error\": {\r\n \"code\": \"VpnConnectionPropertyIsDeprecated\",\r\n + \ \"message\": \"Update request for VpnConnection /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection + contains deprecated property IpsecPolicies. Please use corresponding VpnSiteLinkConnection + property instead.\",\r\n \"details\": []\r\n }\r\n}" headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/02294a88-b81e-430e-9fc3-b6a385113510?api-version=2020-05-01 cache-control: - no-cache content-length: - - '2196' + - '504' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:40:57 GMT + - Mon, 15 Nov 2021 08:32:53 GMT expires: - '-1' pragma: @@ -3962,45 +4528,69 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e8f9fc3e-d9a4-4f16-8b67-7860e5cd4202 + - 5dea340f-c214-4743-83ed-44100d5b0eda x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: - code: 201 - message: Created + code: 400 + message: Bad Request - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway connection create + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add Connection: - keep-alive ParameterSetName: - - -g -n --gateway-name --remote-vpn-site --associated-route-table --propagated-route-tables - --labels + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group User-Agent: - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/02294a88-b81e-430e-9fc3-b6a385113510?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 response: body: - string: "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"InvalidConnectedSiteId\",\r\n - \ \"message\": \"The vpnsite id '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1' - is invalid or the vpnsite does not exist or the vpnsite exists with links - and no link connections are configured.\",\r\n \"details\": []\r\n }\r\n}" + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"1d6a34f7-7948-4766-9bff-49bc6f556f87\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"NotConnected\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '452' + - '3452' content-type: - application/json; charset=utf-8 date: - - Fri, 12 Nov 2021 09:41:08 GMT + - Mon, 15 Nov 2021 08:32:55 GMT expires: - '-1' pragma: @@ -4017,7 +4607,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1fc1a740-3573-4b06-bbc7-7f94894138e4 + - b017a15d-0399-4a9f-bae7-1397cd267a1b status: code: 200 message: OK diff --git a/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_site_link_conn_ipsec_policy.yaml b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_site_link_conn_ipsec_policy.yaml new file mode 100644 index 00000000000..0378a8a357f --- /dev/null +++ b/src/virtual-wan/azext_vwan/tests/latest/recordings/test_azure_vwan_vpn_site_link_conn_ipsec_policy.yaml @@ -0,0 +1,4465 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","name":"cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T09:26:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:27:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n + \ \"etag\": \"W/\\\"b6dffa7d-b293-4d9a-a214-8d9ff0a34daa\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"disableVpnEncryption\": + false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": + \"None\",\r\n \"type\": \"Standard\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/79fbc6ce-1ccd-4fbe-bc14-0cc14a0d9b19?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '569' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:27:12 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: + - 785baaf8-5b04-4aeb-a218-7b1a87fdc86c + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/79fbc6ce-1ccd-4fbe-bc14-0cc14a0d9b19?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:27: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: + - a2999b2e-f1fc-4407-9d37-ed6f2aaccb52 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vwan create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan\",\r\n + \ \"etag\": \"W/\\\"48b1b235-2f1f-44f4-b3ab-876d64bbb8c3\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"disableVpnEncryption\": + false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": + \"None\",\r\n \"type\": \"Standard\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '570' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:27:23 GMT + etag: + - W/"48b1b235-2f1f-44f4-b3ab-876d64bbb8c3" + 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: + - 6edea1ff-5a4f-473c-9600-3681bb23c0b5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","name":"cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T09:26:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:27:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"virtualWan": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan"}, + "addressPrefix": "10.0.1.0/24"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + Content-Length: + - '288' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n + \ \"etag\": \"W/\\\"410ba271-6721-4174-b10e-b5d1ec212346\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": + 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan\"\r\n + \ },\r\n \"routingState\": \"None\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:27:33 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: + - ee315491-461a-40ce-9262-56fb0bd9c9a5 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:27: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: + - eed7dd12-293e-4682-be28-02439b49711b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:27:53 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: + - f5ffadbd-477b-44ac-978c-67371b9db631 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:28: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: + - a3a7b29a-d9d6-4585-af10-68b68e79a5d7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:28: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: + - cec62125-d357-4a6d-a42d-1aa92ff078b4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:29: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: + - b9451b4f-1091-4b1b-abec-4a767c221458 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:29:54 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: + - 9cc45ee3-49dd-40b0-bf34-fdb524ba1c0a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:31:15 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: + - 2f64eb44-7bb9-43c8-86c2-58327b45eefa + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/336837d2-3ea5-4740-94de-23888647979d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:33:56 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: + - fed0337b-5133-4ce6-bc8f-61c70d8ab9ed + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub\",\r\n + \ \"etag\": \"W/\\\"d9010b08-f38e-4cb8-bb75-2e28d8165b19\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"virtualRouterAsn\": + 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualWans/test_vwan\"\r\n + \ },\r\n \"routingState\": \"Provisioning\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '874' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:33:56 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: + - d9b3de65-d7c7-4d35-bb97-d97955d4e128 + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n + \ \"etag\": \"W/\\\"c2e45c99-1b85-4d67-9e9d-9658aecbc57d\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": + [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6a6a0b2-7cbd-4f7d-a51e-cf8ea76b0af6?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:33:58 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: + - 60a91cde-a6b1-4fe7-9f99-3a5784545727 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6a6a0b2-7cbd-4f7d-a51e-cf8ea76b0af6?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:34: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: + - 9d5bc2a9-6430-47e6-94ba-c693834c9d08 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\",\r\n + \ \"etag\": \"W/\\\"7f797088-ba01-4102-91df-349b29b76ec6\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n + \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '563' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:34:09 GMT + etag: + - W/"7f797088-ba01-4102-91df-349b29b76ec6" + 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: + - b16a2f89-e34b-4415-9275-825d53cb6052 + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n + \ \"etag\": \"W/\\\"8e64a75a-2a19-4400-920b-c3f62a8c10b8\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"routes\": [],\r\n \"labels\": + [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/77a214a9-19c8-4ef4-8f72-5e796be3b2f4?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:34:12 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: + - 48bbf672-5904-4c91-9e99-fee69ec00335 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/77a214a9-19c8-4ef4-8f72-5e796be3b2f4?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:34:22 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: + - 073f79a5-85c8-489e-aa28-42d4203a08d1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub route-table create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub-name -n + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_vhub_routing_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\",\r\n + \ \"etag\": \"W/\\\"b42bc81c-cdfd-456e-b36f-3a2684cfcad9\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routes\": [],\r\n + \ \"labels\": [],\r\n \"associatedConnections\": [],\r\n \"propagatingConnections\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualHubs/hubRouteTables\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '563' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:34:22 GMT + etag: + - W/"b42bc81c-cdfd-456e-b36f-3a2684cfcad9" + 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: + - 142487be-23ff-443b-aefb-1ef83e4c839f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","name":"cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T09:26:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:34:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/vpnGateways/test_s2s_vpn_gateway'' + under resource group ''cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001'' + was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '297' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:34:27 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": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "bgpSettings": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + Content-Length: + - '275' + Content-Type: + - application/json + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"9ae423b5-049c-4904-811e-4f9a04b3eabf\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": 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/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '993' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 09:34:32 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: + - f1fea268-b25e-44ed-b596-5196e4274d04 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:34:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2f76e778-6e87-4658-b644-986d726327ab + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:34:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3d400580-2d52-4ec4-9a36-468c193870ec + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:35: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: + - 0702a6fa-e0b2-4067-9a3d-0202ee1edfbc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:35: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: + - 91e3394a-e67b-4ced-9e04-d201ef323a05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:36: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: + - b248ff84-03f6-4524-80a6-8385c4666492 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:36:53 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: + - a536a6aa-3e21-43d7-91fe-b48644897cb1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:38: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: + - b3ab7136-ba9e-4093-a991-817cfc090e8d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:40:54 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: + - ac17c229-6f09-435e-8d0c-dad3e9714eb0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:42:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c493219b-8dba-4344-a144-bceef1c224df + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:44:15 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: + - 4c2eed38-37df-48b2-8202-e0e4767f79d8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:45:56 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: + - 89b79d73-2cad-401d-a3ba-728936a6636b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:47:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8133aa0f-5e86-4b3d-bb99-c0cc211e89b8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:49:16 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: + - c339cc99-1eca-4c39-b0c0-5c17ca9b05bd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:50:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 127619c2-1418-4b4a-ba79-8861e3a1de90 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:52:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ab56e4f4-c189-4f71-bf13-af73233c0b32 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:54:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - dbba0405-e60f-4def-ae9a-4b587be168f8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:55:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a65c098d-02ce-437c-a184-cbf4666bd95e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:57: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: + - 3ff1f82f-550b-4232-b946-2bd0fe4ef2ba + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 09:59: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: + - 1fa5e4c3-5a5c-4005-983a-4384921d89e6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:00: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: + - ac5e5aa1-c3fa-4036-b79c-dcef50dc20bd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae4bf87d-1b31-48da-83e6-4f69f409fd9d?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:02:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a5ab48c9-2f24-4b8c-8b41-46f91693852b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g --vhub --name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"09e32374-0098-4097-962f-02506932b763\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"104.40.28.19\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"104.40.10.243\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"104.40.28.19\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"104.40.10.243\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1872' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:02:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 517a5cc8-3391-47a7-80a2-63266095c62c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","name":"cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-11-15T09:26:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:02:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"deviceProperties": {}, "addressSpace": + {}, "vpnSiteLinks": [{"name": "remote_vpn_site_1", "properties": {"ipAddress": + "10.0.1.110"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + Content-Length: + - '174' + Content-Type: + - application/json + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"b53c3dd9-663e-4bb9-bb5a-d569d367f678\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"b53c3dd9-663e-4bb9-bb5a-d569d367f678\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6b41ae35-67e9-4eec-8d5a-2b5c9d3ddffe?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '1384' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:02:50 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: + - 974f5603-9d29-4959-b1b6-975b31b1a949 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6b41ae35-67e9-4eec-8d5a-2b5c9d3ddffe?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:03:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4bbadc58-7bbc-44a5-bd57-281949d9049a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6b41ae35-67e9-4eec-8d5a-2b5c9d3ddffe?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:03: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: + - fe446d43-9a58-4a4b-ac6b-6c68bc4d31f9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site create + Connection: + - keep-alive + ParameterSetName: + - -g -n --ip-address --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0f719ff2-caa4-49cb-895b-0585b0823a2f\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0f719ff2-caa4-49cb-895b-0585b0823a2f\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1386' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:03:12 GMT + etag: + - W/"0f719ff2-caa4-49cb-895b-0585b0823a2f" + 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: + - 2ab8c0d4-6399-4171-9aa5-e4d3b458cdb3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0f719ff2-caa4-49cb-895b-0585b0823a2f\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"0f719ff2-caa4-49cb-895b-0585b0823a2f\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1386' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:03:14 GMT + etag: + - W/"0f719ff2-caa4-49cb-895b-0585b0823a2f" + 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: + - 0f8a2126-18b7-410a-9c0b-0c1ef60c8695 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1", + "location": "westus", "properties": {"deviceProperties": {"linkSpeedInMbps": + 0}, "addressSpace": {"addressPrefixes": []}, "isSecuritySite": false, "vpnSiteLinks": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1", + "name": "remote_vpn_site_1", "properties": {"linkProperties": {"linkSpeedInMbps": + 0}, "ipAddress": "10.0.1.110"}}, {"name": "VPN-Site-Link1", "properties": {"ipAddress": + "10.0.1.111", "bgpProperties": {"asn": 1234, "bgpPeeringAddress": "192.168.1.0"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + Content-Length: + - '866' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"a8168690-9bbe-43a0-a2d0-a3a8ca321a01\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"a8168690-9bbe-43a0-a2d0-a3a8ca321a01\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"a8168690-9bbe-43a0-a2d0-a3a8ca321a01\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d3128f2c-72c3-40a2-8068-f6c8abec316c?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '2119' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:03: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: + - c559a630-8dc5-4ea0-8e7e-03f62b5a589c + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d3128f2c-72c3-40a2-8068-f6c8abec316c?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:03: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: + - 564a4338-2090-4044-abb3-62089c71954d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-site link add + Connection: + - keep-alive + ParameterSetName: + - -g -n --vpn-site-link-name --ip-address --asn --bgp-peering-address + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"remote_vpn_site_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"af71f61b-6c5f-41e6-866f-38ba4dfc26b8\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnSites\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressSpace\": {\r\n + \ \"addressPrefixes\": []\r\n },\r\n \"deviceProperties\": {\r\n + \ \"linkSpeedInMbps\": 0\r\n },\r\n \"isSecuritySite\": false,\r\n + \ \"o365Policy\": {\r\n \"breakOutCategories\": {\r\n \"optimize\": + false,\r\n \"allow\": false,\r\n \"default\": false\r\n }\r\n + \ },\r\n \"vpnSiteLinks\": [\r\n {\r\n \"name\": \"remote_vpn_site_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\",\r\n + \ \"etag\": \"W/\\\"af71f61b-6c5f-41e6-866f-38ba4dfc26b8\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.110\",\r\n \"linkProperties\": + {\r\n \"linkSpeedInMbps\": 0\r\n }\r\n },\r\n \"type\": + \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n },\r\n {\r\n \"name\": + \"VPN-Site-Link1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/VPN-Site-Link1\",\r\n + \ \"etag\": \"W/\\\"af71f61b-6c5f-41e6-866f-38ba4dfc26b8\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"ipAddress\": \"10.0.1.111\",\r\n \"bgpProperties\": {\r\n + \ \"asn\": 1234,\r\n \"bgpPeeringAddress\": \"192.168.1.0\"\r\n + \ },\r\n \"linkProperties\": {\r\n \"linkSpeedInMbps\": + 0\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/vpnSites/vpnSiteLinks\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2122' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:03:25 GMT + etag: + - W/"af71f61b-6c5f-41e6-866f-38ba4dfc26b8" + 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: + - f7c2a8b3-ae45-46af-9fd2-3b5b537a2d24 + status: + code: 200 + message: OK +- request: + body: '{"name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "vpnLinkConnections": [{"name": "test_s2s_vpn_gateway_connection", "properties": + {"vpnSiteLink": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}}}], + "routingConfiguration": {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + Content-Length: + - '1460' + Content-Type: + - application/json + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d795ab67-69ed-498a-925d-dc914b03986c\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d795ab67-69ed-498a-925d-dc914b03986c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6eee3ecd-1aac-404d-8194-ed74dec68d6e?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '3403' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:03:27 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: + - 767ca8f9-c4f3-4c68-96be-8ea04db1ecf4 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6eee3ecd-1aac-404d-8194-ed74dec68d6e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:03: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: + - b14ae09f-ef25-4407-bd61-b26fa6511899 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6eee3ecd-1aac-404d-8194-ed74dec68d6e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:03: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: + - b134a139-3e57-41b7-919b-8dd008d83695 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6eee3ecd-1aac-404d-8194-ed74dec68d6e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:04: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: + - 5acf4cb3-4c6a-47a0-8f63-683381bdc1d1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6eee3ecd-1aac-404d-8194-ed74dec68d6e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:04: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: + - a24df7d4-b851-40d4-89cb-7ce285acfa83 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6eee3ecd-1aac-404d-8194-ed74dec68d6e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:06:10 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: + - c19bae8b-d056-4d79-bf3e-fe9e8ce60843 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection create + Connection: + - keep-alive + ParameterSetName: + - -g -n --gateway-name --remote-vpn-site --vpn-site-link --associated-route-table + --propagated-route-tables --labels --with-link + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3447' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:06:10 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: + - 7c2fab54-ac07-4e5a-a109-617d769288e5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [\r\n + \ {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": + [\r\n \"label1\",\r\n \"label2\"\r\n ],\r\n + \ \"ids\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": + {\r\n \"staticRoutes\": []\r\n }\r\n },\r\n + \ \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": + \"test_s2s_vpn_gateway_connection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"vpnSiteLink\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n + \ \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n + \ \"egressBytesTransferred\": 0\r\n }\r\n }\r\n ],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.0.1.12\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"104.40.28.19\",\r\n \"10.0.1.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.0.1.13\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"104.40.10.243\",\r\n \"10.0.1.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"104.40.28.19\",\r\n \"privateIpAddress\": + \"10.0.1.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"104.40.10.243\",\r\n \"privateIpAddress\": + \"10.0.1.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '5669' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:06: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: + - 771afdaa-1667-4536-bb39-864cae5a91e1 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway", + "location": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub"}, + "connections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "ipsecPolicies": [{"saLifeTimeSeconds": 86471, "saDataSizeKilobytes": 429496, + "ipsecEncryption": "AES256", "ipsecIntegrity": "SHA256", "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", "dhGroup": "DHGroup14", "pfsGroup": "PFS14"}], "enableInternetSecurity": + false, "vpnLinkConnections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"vpnSiteLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [], "enableRateLimiting": false, "useLocalAzureIpAddress": false}}], "routingConfiguration": + {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}], "bgpSettings": {"asn": 65515, "peerWeight": + 0, "bgpPeeringAddresses": [{"ipconfigurationId": "Instance0", "customBgpIpAddresses": + []}, {"ipconfigurationId": "Instance1", "customBgpIpAddresses": []}]}, "vpnGatewayScaleUnit": + 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection ipsec-policy add + Connection: + - keep-alive + Content-Length: + - '3279' + Content-Type: + - application/json + ParameterSetName: + - -g --gateway-name --connection-name --ipsec-encryption --ipsec-integrity --sa-lifetime + --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway?api-version=2020-05-01 + response: + body: + string: "{\r\n \"error\": {\r\n \"code\": \"VpnConnectionPropertyIsDeprecated\",\r\n + \ \"message\": \"Update request for VpnConnection /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection + contains deprecated property IpsecPolicies. Please use corresponding VpnSiteLinkConnection + property instead.\",\r\n \"details\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '504' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:06:14 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: + - 72c2f778-39e3-4441-9180-17717363a701 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"79dffd12-e085-42d2-b44e-0d76e39887bb\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3447' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:06:15 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: + - 9d687498-4606-4619-bd9f-bf39e5c76bd2 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "enableInternetSecurity": false, "vpnLinkConnections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"vpnSiteLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [{"saLifeTimeSeconds": 86471, "saDataSizeKilobytes": 429496, "ipsecEncryption": + "AES256", "ipsecIntegrity": "SHA256", "ikeEncryption": "AES256", "ikeIntegrity": + "SHA384", "dhGroup": "DHGroup14", "pfsGroup": "PFS14"}], "enableRateLimiting": + false, "useLocalAzureIpAddress": false}}], "routingConfiguration": {"associatedRouteTable": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + Content-Length: + - '2543' + Content-Type: + - application/json + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"819f6c57-c530-453a-9bfb-46ad95c1337b\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"819f6c57-c530-453a-9bfb-46ad95c1337b\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"packetCaptureDiagnosticState\": \"None\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7fe7feb8-0553-4fe5-9f66-228a8c718d1e?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '3778' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:06:16 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: + - 456bfed5-2a3c-40d8-85c9-31c53ace8e19 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7fe7feb8-0553-4fe5-9f66-228a8c718d1e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:06:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a719e262-338b-48e3-804d-f0d89b9f6ef4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7fe7feb8-0553-4fe5-9f66-228a8c718d1e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:06:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9daf0e01-6dbf-43bb-851f-261803180c49 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7fe7feb8-0553-4fe5-9f66-228a8c718d1e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:06: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: + - d5bfe3b9-46ae-4c9d-afd0-164b4aef939c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7fe7feb8-0553-4fe5-9f66-228a8c718d1e?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:07: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: + - 3966f610-87cc-4acf-9449-8dc94c631ebb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy add + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --ipsec-encryption --ipsec-integrity + --sa-lifetime --sa-data-size --ike-encryption --ike-integrity --dh-group --pfs-group + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d30092cc-580a-4c5f-b3d2-88f45eb7fb63\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d30092cc-580a-4c5f-b3d2-88f45eb7fb63\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"packetCaptureDiagnosticState\": \"None\",\r\n \"connectionStatus\": + \"Unknown\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3822' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:07: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: + - 84320923-be0a-44e5-829e-5418cd841499 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy list + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d30092cc-580a-4c5f-b3d2-88f45eb7fb63\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d30092cc-580a-4c5f-b3d2-88f45eb7fb63\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"packetCaptureDiagnosticState\": \"None\",\r\n \"connectionStatus\": + \"Unknown\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3822' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:07:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0e3cdfdc-47d0-49c3-b70f-60b454edec16 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d30092cc-580a-4c5f-b3d2-88f45eb7fb63\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"d30092cc-580a-4c5f-b3d2-88f45eb7fb63\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [\r\n {\r\n \"saLifeTimeSeconds\": 86471,\r\n \"saDataSizeKilobytes\": + 429496,\r\n \"ipsecEncryption\": \"AES256\",\r\n \"ipsecIntegrity\": + \"SHA256\",\r\n \"ikeEncryption\": \"AES256\",\r\n \"ikeIntegrity\": + \"SHA384\",\r\n \"dhGroup\": \"DHGroup14\",\r\n \"pfsGroup\": + \"PFS14\"\r\n }\r\n ],\r\n \"vpnConnectionProtocolType\": + \"IKEv2\",\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0,\r\n \"packetCaptureDiagnosticState\": \"None\",\r\n \"connectionStatus\": + \"Unknown\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3822' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:07: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: + - f0a50952-7bee-442e-a373-58cf7ff21957 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"remoteVpnSite": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1"}, + "enableInternetSecurity": false, "vpnLinkConnections": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection", + "name": "test_s2s_vpn_gateway_connection", "properties": {"vpnSiteLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1"}, + "routingWeight": 0, "vpnConnectionProtocolType": "IKEv2", "connectionBandwidth": + 10, "enableBgp": false, "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": + [], "enableRateLimiting": false, "useLocalAzureIpAddress": false}}], "routingConfiguration": + {"associatedRouteTable": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + "propagatedRouteTables": {"labels": ["label1", "label2"], "ids": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2"}]}, + "vnetRoutes": {"staticRoutes": []}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + Content-Length: + - '2329' + Content-Type: + - application/json + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"6d8f4d5c-91c7-4e88-a050-8508a2944bc1\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Updating\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"6d8f4d5c-91c7-4e88-a050-8508a2944bc1\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"enableBgp\": false,\r\n \"enableRateLimiting\": + false,\r\n \"useLocalAzureIpAddress\": false,\r\n \"usePolicyBasedTrafficSelectors\": + false,\r\n \"routingWeight\": 0,\r\n \"dpdTimeoutSeconds\": + 0,\r\n \"vpnLinkConnectionMode\": \"Default\"\r\n },\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n }\r\n + \ ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f8828ad5-09d5-4bba-a479-23b00df857e3?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '3403' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:07: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: + - 2a1c8235-2f3b-4894-bf6f-0659b30f4b30 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f8828ad5-09d5-4bba-a479-23b00df857e3?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:07:54 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: + - 70c1e640-eb80-4510-a4b5-aea72629c640 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f8828ad5-09d5-4bba-a479-23b00df857e3?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:08:04 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: + - 49059427-8839-4116-9905-11135ac7ae81 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f8828ad5-09d5-4bba-a479-23b00df857e3?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:08: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: + - dd120fc3-3e50-4e4d-86da-b4b39f7e859c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f8828ad5-09d5-4bba-a479-23b00df857e3?api-version=2020-05-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: + - Mon, 15 Nov 2021 10:09: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: + - 638f3ff7-c777-4256-ad3a-10d1747f4215 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway connection vpn-site-link-conn ipsec-policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --gateway-name -n --vpn-site-link-conn-name --index + User-Agent: + - AZURECLI/2.30.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"891440d9-5b63-4d80-a7c3-efc696a7df79\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways/vpnConnections\",\r\n \"properties\": {\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"routingConfiguration\": + {\r\n \"associatedRouteTable\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n \"propagatedRouteTables\": {\r\n \"labels\": [\r\n + \ \"label1\",\r\n \"label2\"\r\n ],\r\n \"ids\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_1\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/virtualHubs/test_vhub/hubRouteTables/test_vhub_routing_2\"\r\n + \ }\r\n ]\r\n },\r\n \"vnetRoutes\": {\r\n \"staticRoutes\": + []\r\n }\r\n },\r\n \"enableInternetSecurity\": false,\r\n \"remoteVpnSite\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1\"\r\n + \ },\r\n \"vpnLinkConnections\": [\r\n {\r\n \"name\": \"test_s2s_vpn_gateway_connection\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnGateways/test_s2s_vpn_gateway/vpnConnections/test_s2s_vpn_gateway_connection/vpnLinkConnections/test_s2s_vpn_gateway_connection\",\r\n + \ \"etag\": \"W/\\\"891440d9-5b63-4d80-a7c3-efc696a7df79\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vpnSiteLink\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy000001/providers/Microsoft.Network/vpnSites/remote_vpn_site_1/vpnSiteLinks/remote_vpn_site_1\"\r\n + \ },\r\n \"connectionBandwidth\": 10,\r\n \"ipsecPolicies\": + [],\r\n \"vpnConnectionProtocolType\": \"IKEv2\",\r\n \"ingressBytesTransferred\": + 0,\r\n \"egressBytesTransferred\": 0,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"connectionStatus\": \"Unknown\",\r\n \"enableBgp\": + false,\r\n \"enableRateLimiting\": false,\r\n \"useLocalAzureIpAddress\": + false,\r\n \"usePolicyBasedTrafficSelectors\": false,\r\n \"routingWeight\": + 0,\r\n \"dpdTimeoutSeconds\": 0,\r\n \"vpnLinkConnectionMode\": + \"Default\"\r\n },\r\n \"type\": \"Microsoft.Network/vpnGateways/vpnConnections/vpnLinkConnections\"\r\n + \ }\r\n ],\r\n \"ingressBytesTransferred\": 0,\r\n \"egressBytesTransferred\": + 0\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3447' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Nov 2021 10:09:06 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: + - b2c8b0e4-bac6-4591-ad5e-51df01a1c3ee + status: + code: 200 + message: OK +version: 1 diff --git a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py index 8c3f9d7ca7f..80c46f33c76 100644 --- a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py +++ b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py @@ -365,8 +365,8 @@ def test_azure_vwan_vpn_gateway_connection(self): '-n {connection} ' '--gateway-name {vpngateway}') - @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn', location='westus') - def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): + @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link', location='westus') + def test_azure_vwan_vpn_gateway_connection_vpn_site_link(self): self.kwargs.update({ 'vwan': 'test_vwan', 'vhub': 'test_vhub', @@ -410,7 +410,7 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): '--labels label1 label2 ') self.cmd('network vpn-gateway connection ipsec-policy add -g {rg} --gateway-name {vpngateway} --connection-name {connection} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 --sa-data-size 429496 --ike-encryption AES256 --ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') self.cmd('network vpn-gateway connection ipsec-policy list -g {rg} --gateway-name {vpngateway} --connection-name {connection}') - self.cmd('network vpn-gateway connection ipsec-policy remove -g {rg} --gateway-name {vpngateway} --connection-name {connection}') + self.cmd('network vpn-gateway connection ipsec-policy remove -g {rg} --gateway-name {vpngateway} --connection-name {connection} --index 1') self.cmd('network vpn-gateway connection delete -g {rg} -n {connection} --gateway-name {vpngateway}') self.cmd('network vpn-site delete -g {rg} -n {vpn_site}') @@ -418,7 +418,40 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_2_name} --ip-address 10.0.1.112 --asn 1234 --bgp-peering-address 192.168.2.0') self.cmd('network vpn-site link list -g {rg} -n {vpn_site}') - self.cmd('network vpn-site link remove -g {rg} -n {vpn_site} --index 1') + self.cmd('network vpn-site link remove -g {rg} -n {vpn_site} --index 2') + + @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn', location='westus') + def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): + self.kwargs.update({ + 'vwan': 'test_vwan', + 'vhub': 'test_vhub', + 'vpngateway': 'test_s2s_vpn_gateway', + 'connection': 'test_s2s_vpn_gateway_connection', + 'vpn_site': 'remote_vpn_site_1', + 'route_table1': 'test_vhub_routing_1', + 'route_table2': 'test_vhub_routing_2', + 'vpn_site_link_conn': 'Connection-Link1', + 'vpn_site_link_name': 'VPN-Site-Link1', + 'vpn_site_link_2_name': 'VPN-Site-Link2', + 'sub': '/subscriptions/{}'.format(self.get_subscription_id()) + }) + + self.cmd('network vwan create -g {rg} -n {vwan}') + + self.cmd('network vhub create -g {rg} -n {vhub} --vwan {vwan} --address-prefix 10.0.1.0/24') + rt1 = self.cmd('network vhub route-table create -g {rg} --vhub-name {vhub} -n {route_table1}').get_output_in_json() + rt2 = self.cmd('network vhub route-table create -g {rg} --vhub-name {vhub} -n {route_table2}').get_output_in_json() + + self.kwargs.update({ + 'route_table1': rt1['id'], + 'route_table2': rt2['id'], + }) + + self.cmd('network vpn-gateway create -g {rg} --vhub {vhub} --name {vpngateway}', + checks=[]) + + self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') # Test vpn gateway connection with links self.cmd('network vpn-gateway connection create ' @@ -445,12 +478,57 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): '-n {connection} ' '--gateway-name {vpngateway}') - self.cmd('network vpn-gateway connection vpn-site-link-conn remove' + self.cmd('network vpn-gateway connection vpn-site-link-conn remove ' '-g {rg} ' '-n {connection} ' '--gateway-name {vpngateway} ' '--index 2') + @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vpn_site_link_conn_ipsec_policy', location='westus') + def test_azure_vwan_vpn_site_link_conn_ipsec_policy(self): + self.kwargs.update({ + 'vwan': 'test_vwan', + 'vhub': 'test_vhub', + 'vpngateway': 'test_s2s_vpn_gateway', + 'connection': 'test_s2s_vpn_gateway_connection', + 'vpn_site': 'remote_vpn_site_1', + 'route_table1': 'test_vhub_routing_1', + 'route_table2': 'test_vhub_routing_2', + 'vpn_site_link_conn': 'Connection-Link1', + 'vpn_site_link_name': 'VPN-Site-Link1', + 'vpn_site_link_2_name': 'VPN-Site-Link2', + 'sub': '/subscriptions/{}'.format(self.get_subscription_id()) + }) + + self.cmd('network vwan create -g {rg} -n {vwan}') + + self.cmd('network vhub create -g {rg} -n {vhub} --vwan {vwan} --address-prefix 10.0.1.0/24') + rt1 = self.cmd('network vhub route-table create -g {rg} --vhub-name {vhub} -n {route_table1}').get_output_in_json() + rt2 = self.cmd('network vhub route-table create -g {rg} --vhub-name {vhub} -n {route_table2}').get_output_in_json() + + self.kwargs.update({ + 'route_table1': rt1['id'], + 'route_table2': rt2['id'], + }) + + self.cmd('network vpn-gateway create -g {rg} --vhub {vhub} --name {vpngateway}', + checks=[]) + + self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') + self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') + + # Test vpn gateway connection with links + self.cmd('network vpn-gateway connection create ' + '-g {rg} ' + '-n {connection} ' + '--gateway-name {vpngateway} ' + '--remote-vpn-site {sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site} ' + '--vpn-site-link "{sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site}/vpnSiteLinks/{vpn_site}" ' + '--associated-route-table {route_table1} ' + '--propagated-route-tables {route_table1} {route_table2} ' + '--labels label1 label2 ' + '--with-link') + # Test issue: # Ipsec policy setted on conneciton will fail due to multi-links on connection with self.assertRaisesRegexp(HttpResponseError, 'VpnConnectionPropertyIsDeprecated'): @@ -460,10 +538,10 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): # Test link-conn ipsec policy self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy add -g {rg} --gateway-name {vpngateway} -n {connection} ' - '--vpn-site-link-conn-name {vpn_site_link_conn} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 ' + '--vpn-site-link-conn-name {connection} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 ' '--sa-data-size 429496 --ike-encryption AES256 --ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') - self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy list -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {vpn_site_link_conn}') - self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy remove -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {vpn_site_link_conn} --index 1') + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy list -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {connection}') + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy remove -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {connection} --index 1') @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vhub_bgpconnection', location='westus') @VirtualNetworkPreparer() From 995a1d689f150172d94342e46e78bdd5e0bb677f Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Tue, 16 Nov 2021 11:13:53 +0800 Subject: [PATCH 4/9] update version and history --- linter_exclusions.yml | 32 ++++++++++++++ src/virtual-wan/HISTORY.rst | 8 ++++ src/virtual-wan/azext_vwan/_help.py | 61 +++++++++++++++++++++++++++ src/virtual-wan/azext_vwan/_params.py | 13 ++++++ src/virtual-wan/azext_vwan/custom.py | 29 ++++++------- src/virtual-wan/setup.py | 2 +- 6 files changed, 129 insertions(+), 16 deletions(-) diff --git a/linter_exclusions.yml b/linter_exclusions.yml index 95fb8262651..c9a75428dd0 100644 --- a/linter_exclusions.yml +++ b/linter_exclusions.yml @@ -1627,6 +1627,38 @@ network vhub connection create: allow_remote_vnet_to_use_hub_vnet_gateways: rule_exclusions: - option_length_too_long +network vpn-gateway connection vpn-site-link-conn add: + parameters: + use_local_azure_ip_address: + rule_exclusions: + - option_length_too_long + use_policy_based_traffic_selectors: + rule_exclusions: + - option_length_too_long + vpn_connection_protocol_type: + rule_exclusions: + - option_length_too_long + vpn_link_connection_mode: + rule_exclusions: + - option_length_too_long + vpn_site_link_conn_name: + rule_exclusions: + - option_length_too_long +network vpn-gateway connection vpn-site-link-conn ipsec-policy add: + parameters: + vpn_site_link_conn_name: + rule_exclusions: + - option_length_too_long +network vpn-gateway connection vpn-site-link-conn ipsec-policy list: + parameters: + vpn_site_link_conn_name: + rule_exclusions: + - option_length_too_long +network vpn-gateway connection vpn-site-link-conn ipsec-policy remove: + parameters: + vpn_site_link_conn_name: + rule_exclusions: + - option_length_too_long network vpn-server-config create: parameters: radius_client_root_certs: diff --git a/src/virtual-wan/HISTORY.rst b/src/virtual-wan/HISTORY.rst index 3a740d1093c..9a52aaec15f 100644 --- a/src/virtual-wan/HISTORY.rst +++ b/src/virtual-wan/HISTORY.rst @@ -3,6 +3,14 @@ Release History =============== +0.2.11 +++++++ +* add new command group: `az network vpn-gateway connection vpn-site-link-conn`. +* add new command group: `az network vpn-gateway connection vpn-site-link-conn ipsec-policy`. +* add new command group: `az network vpn-site link`. +* `az network vpn-gateway connection`: support new parameters `--vpn-site-link` and `--with-link`. +* `az network vpn-site`: support new parameter `--with-link`. + 0.2.10 ++++++ * add new command group: `az network vhub bgpconnection`. diff --git a/src/virtual-wan/azext_vwan/_help.py b/src/virtual-wan/azext_vwan/_help.py index 9c86654ce88..a8de2c816bc 100644 --- a/src/virtual-wan/azext_vwan/_help.py +++ b/src/virtual-wan/azext_vwan/_help.py @@ -411,6 +411,46 @@ type: command short-summary: Remove an IPSec policy from a site-to-site VPN gateway connection. """ + +helps['network vpn-gateway connection vpn-site-link-conn'] = """ + type: group + short-summary: Manage site-to-site VPN gateway connection VPN site link connection. +""" + +helps['network vpn-gateway connection vpn-site-link-conn add'] = """ + type: command + short-summary: Add a VPN site link connection to a site-to-site VPN gateway connection. +""" + +helps['network vpn-gateway connection vpn-site-link-conn list'] = """ + type: command + short-summary: List site-to-site VPN gateway connection VPN site link connection. +""" + +helps['network vpn-gateway connection vpn-site-link-conn remove'] = """ + type: command + short-summary: Remove a VPN site link connection from a site-to-site VPN gateway connection. +""" + +helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy'] = """ + type: group + short-summary: Manage site-to-site VPN gateway connection VPN site link IPSec policies. +""" + +helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy add'] = """ + type: command + short-summary: Add an IPSec policy to a site-to-site VPN gateway connection VPN site link. +""" + +helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy list'] = """ + type: command + short-summary: List site-to-site VPN gateway connection VPN site link IPSec policies. +""" + +helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy remove'] = """ + type: command + short-summary: Remove an IPSec policy from a site-to-site VPN gateway connection VPN site link. +""" # endregion # region VpnSite @@ -448,6 +488,27 @@ type: command short-summary: Provide a SAS-URL to download the configuration for a VPN site. """ + + +helps['network vpn-site link'] = """ + type: group + short-summary: Manage VPN site link. +""" + +helps['network vpn-site link add'] = """ + type: command + short-summary: Add a VPN site link to VPN site configuration. +""" + +helps['network vpn-site link list'] = """ + type: command + short-summary: List VPN site links to VPN site configuration. +""" + +helps['network vpn-site link remove'] = """ + type: command + short-summary: Remove a VPN site link to VPN site configuration. +""" # endregion # region VpnServerConfig diff --git a/src/virtual-wan/azext_vwan/_params.py b/src/virtual-wan/azext_vwan/_params.py index 0e2c9d05274..84977eec873 100644 --- a/src/virtual-wan/azext_vwan/_params.py +++ b/src/virtual-wan/azext_vwan/_params.py @@ -152,6 +152,14 @@ def load_arguments(self, _): c.argument('vpn_link_connection_mode', help='Vpn link connection mode.', arg_type=get_enum_type(['Default', 'ResponderOnly', 'InitiatorOnly'])) c.argument('index', type=int, help='List index of the item (starting with 1).') + with self.argument_context('network vpn-gateway connection vpn-site-link-conn list') as c: + c.argument('resource_name', vpn_gateway_name_type, id_part=None) + c.argument('gateway_name', id_part=None) + + with self.argument_context('network vpn-gateway connection vpn-site-link-conn ipsec-policy list') as c: + c.argument('resource_name', vpn_gateway_name_type, id_part=None) + c.argument('gateway_name', id_part=None) + with self.argument_context('network vpn-gateway connection', arg_group='IP Security') as c: c.argument('sa_life_time_seconds', options_list='--sa-lifetime', help='IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site-to-site VPN tunnel.', type=int) c.argument('sa_data_size_kilobytes', options_list='--sa-data-size', help='IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site-to-site VPN tunnel.', type=int) @@ -191,6 +199,11 @@ def load_arguments(self, _): c.argument('link_speed_in_mbps', help='Link speed.', type=int) c.argument('index', type=int, help='List index of the item (starting with 1).') + with self.argument_context('network vpn-site link list') as c: + c.argument('resource_name', vpn_gateway_name_type, id_part=None) + c.argument('virtual_wan_name', vwan_name_type, id_part=None) + c.argument('vpn_site_name', vpn_site_name_type, options_list=['--name', '-n'], id_part=None) + for scope in ['vpn-site', 'vpn-gateway']: with self.argument_context('network {}'.format(scope), arg_group='BGP Peering') as c: c.argument('asn', help='BGP speaker\'s ASN.', type=int) diff --git a/src/virtual-wan/azext_vwan/custom.py b/src/virtual-wan/azext_vwan/custom.py index 3215a1bc81b..ce72c75768a 100644 --- a/src/virtual-wan/azext_vwan/custom.py +++ b/src/virtual-wan/azext_vwan/custom.py @@ -582,10 +582,10 @@ def create_vpn_gateway_connection(cmd, resource_group_name, gateway_name, connec RoutingConfiguration, PropagatedRouteTable, VpnSiteLinkConnection) = cmd.get_models('VpnConnection', - 'SubResource', - 'RoutingConfiguration', - 'PropagatedRouteTable', - 'VpnSiteLinkConnection') + 'SubResource', + 'RoutingConfiguration', + 'PropagatedRouteTable', + 'VpnSiteLinkConnection') propagated_route_tables = PropagatedRouteTable( labels=labels, @@ -689,9 +689,9 @@ def remove_vpn_conn_ipsec_policy(cmd, resource_group_name, gateway_name, connect def add_vpn_gateway_connection_vpn_site_link_conn(cmd, resource_group_name, gateway_name, connection_name, - vpn_site_link_conn_name, vpn_site_link, routing_weight=None, vpn_link_connection_mode=None, - vpn_connection_protocol_type=None, connection_bandwidth=None, shared_key=None, enable_bgp=None, enable_rate_limiting=None, - use_policy_based_traffic_selectors=None, use_local_azure_ip_address=None, no_wait=False): + vpn_site_link_conn_name, vpn_site_link, routing_weight=None, vpn_link_connection_mode=None, + vpn_connection_protocol_type=None, connection_bandwidth=None, shared_key=None, enable_bgp=None, enable_rate_limiting=None, + use_policy_based_traffic_selectors=None, use_local_azure_ip_address=None, no_wait=False): SubResource, VpnSiteLinkConnection = cmd.get_models('SubResource', 'VpnSiteLinkConnection') client = network_client_factory(cmd.cli_ctx).vpn_connections conn = client.get(resource_group_name, gateway_name, connection_name) @@ -715,7 +715,7 @@ def add_vpn_gateway_connection_vpn_site_link_conn(cmd, resource_group_name, gate ) return sdk_no_wait(no_wait, client.begin_create_or_update, - resource_group_name, gateway_name, connection_name, conn) + resource_group_name, gateway_name, connection_name, conn) def list_vpn_conn_vpn_site_link_conn(cmd, resource_group_name, gateway_name, connection_name): @@ -732,14 +732,14 @@ def remove_vpn_gateway_connection_vpn_site_link_conn(cmd, resource_group_name, g except IndexError: raise CLIError('invalid index: {}. Index can range from 1 to {}'.format(index, len(conn.vpn_link_connections))) return sdk_no_wait(no_wait, client.begin_create_or_update, - resource_group_name, gateway_name, connection_name, conn) + resource_group_name, gateway_name, connection_name, conn) # pylint: disable=inconsistent-return-statements def add_vpn_gateway_connection_link_ipsec_policy(cmd, resource_group_name, gateway_name, connection_name, vpn_site_link_conn_name, - sa_life_time_seconds, sa_data_size_kilobytes, ipsec_encryption, - ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group, - no_wait=False): + sa_life_time_seconds, sa_data_size_kilobytes, ipsec_encryption, + ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group, + no_wait=False): IpsecPolicy = cmd.get_models('IpsecPolicy') client = network_client_factory(cmd.cli_ctx).vpn_connections vpn_conn = client.get(resource_group_name, gateway_name, connection_name) @@ -807,7 +807,7 @@ def create_vpn_site(cmd, resource_group_name, vpn_site_name, ip_address, peer_weight=None, with_link=None, no_wait=False): client = network_client_factory(cmd.cli_ctx).vpn_sites VpnSite, VpnSiteLink, SubResource = cmd.get_models('VpnSite', 'VpnSiteLink', 'SubResource') - + site = VpnSite( location=location, tags=tags, @@ -893,7 +893,6 @@ def add_vpn_site_link(cmd, resource_group_name, vpn_site_name, vpn_site_link_nam if vpn_site.vpn_site_links is None: vpn_site.vpn_site_links = [] - vpn_site.vpn_site_links.append( VpnSiteLink( name=vpn_site_link_name, @@ -922,7 +921,7 @@ def remove_vpn_site_link(cmd, resource_group_name, vpn_site_name, index, no_wait except IndexError: raise CLIError('invalid index: {}. Index can range from 1 to {}'.format(index, len(vpn_site.vpn_site_links))) return sdk_no_wait(no_wait, client.begin_create_or_update, - resource_group_name, vpn_site_name, vpn_site) + resource_group_name, vpn_site_name, vpn_site) def list_vpn_site_link(cmd, resource_group_name, vpn_site_name): diff --git a/src/virtual-wan/setup.py b/src/virtual-wan/setup.py index a5942ed5309..4edc75a056e 100644 --- a/src/virtual-wan/setup.py +++ b/src/virtual-wan/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.2.10" +VERSION = "0.2.11" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From a0ad01d806f7194fc526249583c7c95ce80a9589 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Tue, 16 Nov 2021 11:20:30 +0800 Subject: [PATCH 5/9] fix style --- src/virtual-wan/azext_vwan/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtual-wan/azext_vwan/custom.py b/src/virtual-wan/azext_vwan/custom.py index ce72c75768a..2b62c5594f2 100644 --- a/src/virtual-wan/azext_vwan/custom.py +++ b/src/virtual-wan/azext_vwan/custom.py @@ -736,7 +736,7 @@ def remove_vpn_gateway_connection_vpn_site_link_conn(cmd, resource_group_name, g # pylint: disable=inconsistent-return-statements -def add_vpn_gateway_connection_link_ipsec_policy(cmd, resource_group_name, gateway_name, connection_name, vpn_site_link_conn_name, +def add_vpn_gateway_connection_link_ipsec_policy(cmd, resource_group_name, gateway_name, connection_name, vpn_site_link_conn_name, sa_life_time_seconds, sa_data_size_kilobytes, ipsec_encryption, ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group, no_wait=False): From 3285ef3218ae5a6c9b51e057713372dd505707fa Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Tue, 16 Nov 2021 14:11:48 +0800 Subject: [PATCH 6/9] fix names --- linter_exclusions.yml | 3 --- src/virtual-wan/azext_vwan/_params.py | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/linter_exclusions.yml b/linter_exclusions.yml index c9a75428dd0..28e11f0afb7 100644 --- a/linter_exclusions.yml +++ b/linter_exclusions.yml @@ -1641,9 +1641,6 @@ network vpn-gateway connection vpn-site-link-conn add: vpn_link_connection_mode: rule_exclusions: - option_length_too_long - vpn_site_link_conn_name: - rule_exclusions: - - option_length_too_long network vpn-gateway connection vpn-site-link-conn ipsec-policy add: parameters: vpn_site_link_conn_name: diff --git a/src/virtual-wan/azext_vwan/_params.py b/src/virtual-wan/azext_vwan/_params.py index 84977eec873..1057b4fdb1d 100644 --- a/src/virtual-wan/azext_vwan/_params.py +++ b/src/virtual-wan/azext_vwan/_params.py @@ -139,7 +139,9 @@ def load_arguments(self, _): c.argument('gateway_name', id_part=None) with self.argument_context('network vpn-gateway connection vpn-site-link-conn') as c: - c.argument("vpn_site_link_conn_name", help='Name of the VPN gateway connection.', id_part='child_name_1') + c.argument("connection_name", help='Name of the VPN gateway connection.', options_list=['--connection-name']) + c.argument("item_name", help='Name of the VPN gateway connection.', options_list=['--connection-name']) + c.argument("vpn_site_link_conn_name", help='Name of the VPN site link connection.', options_list=['--name', '-n'], id_part='child_name_1') c.argument("vpn_site_link", help='The resource ID of VPN Site Link.') c.argument('routing_weight', type=int, help='Routing weight.') c.argument('shared_key', help='Shared key.') @@ -193,7 +195,8 @@ def load_arguments(self, _): c.argument('link_speed', help='Link speed in Mbps.', type=int) with self.argument_context('network vpn-site link') as c: - c.argument('vpn_site_link_name', help='The name of vpn site link.') + c.argument('vpn_site_name', vpn_site_name_type) + c.argument('vpn_site_link_name', help='The name of vpn site link.', options_list=['--name', '-n']) c.argument('fqdn', help='FQDN of vpn-site-link.') c.argument('link_provider_name', help='Name of the link provider.') c.argument('link_speed_in_mbps', help='Link speed.', type=int) From 0018ce3225b56fbeee75fb2ff12195c3b1ace64e Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Tue, 16 Nov 2021 14:46:41 +0800 Subject: [PATCH 7/9] fix --- src/virtual-wan/azext_vwan/_params.py | 2 +- .../latest/test_azure_vwan_vhub_commands.py | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/virtual-wan/azext_vwan/_params.py b/src/virtual-wan/azext_vwan/_params.py index 1057b4fdb1d..81b24594947 100644 --- a/src/virtual-wan/azext_vwan/_params.py +++ b/src/virtual-wan/azext_vwan/_params.py @@ -205,7 +205,7 @@ def load_arguments(self, _): with self.argument_context('network vpn-site link list') as c: c.argument('resource_name', vpn_gateway_name_type, id_part=None) c.argument('virtual_wan_name', vwan_name_type, id_part=None) - c.argument('vpn_site_name', vpn_site_name_type, options_list=['--name', '-n'], id_part=None) + c.argument('vpn_site_name', vpn_site_name_type, options_list=['--site-name'], id_part=None) for scope in ['vpn-site', 'vpn-gateway']: with self.argument_context('network {}'.format(scope), arg_group='BGP Peering') as c: diff --git a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py index 80c46f33c76..5660518c3f3 100644 --- a/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py +++ b/src/virtual-wan/azext_vwan/tests/latest/test_azure_vwan_vhub_commands.py @@ -398,7 +398,7 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link(self): # Test vpn site with links self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110') with self.assertRaisesRegexp(HttpResponseError, 'MissingDefaultLinkForVpnSiteDuringMigrationToLinkFormat'): - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.0.0') + self.cmd('network vpn-site link add -g {rg} --site-name {vpn_site} -n {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.0.0') # Test ipsec policy self.cmd('network vpn-gateway connection create ' '-g {rg} ' @@ -415,10 +415,10 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link(self): self.cmd('network vpn-site delete -g {rg} -n {vpn_site}') self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_2_name} --ip-address 10.0.1.112 --asn 1234 --bgp-peering-address 192.168.2.0') - self.cmd('network vpn-site link list -g {rg} -n {vpn_site}') - self.cmd('network vpn-site link remove -g {rg} -n {vpn_site} --index 2') + self.cmd('network vpn-site link add -g {rg} --site-name {vpn_site} -n {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') + self.cmd('network vpn-site link add -g {rg} --site-name {vpn_site} -n {vpn_site_link_2_name} --ip-address 10.0.1.112 --asn 1234 --bgp-peering-address 192.168.2.0') + self.cmd('network vpn-site link list -g {rg} --site-name {vpn_site}') + self.cmd('network vpn-site link remove -g {rg} --site-name {vpn_site} --index 2') @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn', location='westus') def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): @@ -451,7 +451,7 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): checks=[]) self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') + self.cmd('network vpn-site link add -g {rg} --site-name {vpn_site} -n {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') # Test vpn gateway connection with links self.cmd('network vpn-gateway connection create ' @@ -467,20 +467,20 @@ def test_azure_vwan_vpn_gateway_connection_vpn_site_link_conn(self): self.cmd('network vpn-gateway connection vpn-site-link-conn add ' '-g {rg} ' - '-n {connection} ' + '--connection-name {connection} ' '--gateway-name {vpngateway} ' - '--vpn-site-link-conn-name {vpn_site_link_conn} ' + '-n {vpn_site_link_conn} ' '--vpn-site-link "{sub}/resourceGroups/{rg}/providers/Microsoft.Network/vpnSites/{vpn_site}/vpnSiteLinks/{vpn_site_link_name}" ' '--vpn-connection-protocol-type IKEv2') self.cmd('network vpn-gateway connection vpn-site-link-conn list ' '-g {rg} ' - '-n {connection} ' + '--connection-name {connection} ' '--gateway-name {vpngateway}') self.cmd('network vpn-gateway connection vpn-site-link-conn remove ' '-g {rg} ' - '-n {connection} ' + '--connection-name {connection} ' '--gateway-name {vpngateway} ' '--index 2') @@ -515,7 +515,7 @@ def test_azure_vwan_vpn_site_link_conn_ipsec_policy(self): checks=[]) self.cmd('network vpn-site create -g {rg} -n {vpn_site} --ip-address 10.0.1.110 --with-link') - self.cmd('network vpn-site link add -g {rg} -n {vpn_site} --vpn-site-link-name {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') + self.cmd('network vpn-site link add -g {rg} --site-name {vpn_site} -n {vpn_site_link_name} --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.1.0') # Test vpn gateway connection with links self.cmd('network vpn-gateway connection create ' @@ -537,11 +537,11 @@ def test_azure_vwan_vpn_site_link_conn_ipsec_policy(self): '--ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') # Test link-conn ipsec policy - self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy add -g {rg} --gateway-name {vpngateway} -n {connection} ' - '--vpn-site-link-conn-name {connection} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 ' + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy add -g {rg} --gateway-name {vpngateway} --connection-name {connection} ' + '-n {connection} --ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 ' '--sa-data-size 429496 --ike-encryption AES256 --ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14') - self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy list -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {connection}') - self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy remove -g {rg} --gateway-name {vpngateway} -n {connection} --vpn-site-link-conn-name {connection} --index 1') + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy list -g {rg} --gateway-name {vpngateway} --connection-name {connection} -n {connection}') + self.cmd('network vpn-gateway connection vpn-site-link-conn ipsec-policy remove -g {rg} --gateway-name {vpngateway} --connection-name {connection} -n {connection} --index 1') @ResourceGroupPreparer(name_prefix='cli_test_azure_vwan_vhub_bgpconnection', location='westus') @VirtualNetworkPreparer() From edb238a446518e6ca29233be5a28024cb22f2211 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Wed, 17 Nov 2021 16:48:40 +0800 Subject: [PATCH 8/9] add examples --- src/virtual-wan/azext_vwan/_help.py | 45 +++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/src/virtual-wan/azext_vwan/_help.py b/src/virtual-wan/azext_vwan/_help.py index a8de2c816bc..b96944251ce 100644 --- a/src/virtual-wan/azext_vwan/_help.py +++ b/src/virtual-wan/azext_vwan/_help.py @@ -420,16 +420,31 @@ helps['network vpn-gateway connection vpn-site-link-conn add'] = """ type: command short-summary: Add a VPN site link connection to a site-to-site VPN gateway connection. + examples: + - name: Add a VPN site link connection to site-to-site VPN gateway connection + text: | + az network vpn-gateway connection vpn-site-link-conn add -g MyRG --connection-name MyConnection --gateway-name MyGateway -n MyVPNSiteLinkConn \ +--vpn-site-link /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/vpnSites/MyVPNSite/vpnSiteLinks/vpnsitelink \ +--vpn-connection-protocol-type IKEv2 """ helps['network vpn-gateway connection vpn-site-link-conn list'] = """ type: command short-summary: List site-to-site VPN gateway connection VPN site link connection. + examples: + - name: List VPN site link connections on site-to-site VPN gateway connection + text: | + az network vpn-gateway connection vpn-site-link-conn list -g MyRG --connection-name MyConnection --gateway-name MyGateway """ helps['network vpn-gateway connection vpn-site-link-conn remove'] = """ type: command short-summary: Remove a VPN site link connection from a site-to-site VPN gateway connection. + examples: + - name: Remove aVPN site link connection from site-to-site VPN gateway connection + text: | + az network vpn-gateway connection vpn-site-link-conn remove -g MyRG --connection-name MyConnection --gateway-name MyGateway --index 1 +" """ helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy'] = """ @@ -440,16 +455,30 @@ helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy add'] = """ type: command short-summary: Add an IPSec policy to a site-to-site VPN gateway connection VPN site link. + examples: + - name: Add an IPSec policy to a site-to-site VPN gateway connection VPN site link + text: | + az network vpn-gateway connection vpn-site-link-conn ipsec-policy add -g MyRG --connection-name MyConnection --gateway-name MyGateway -n MyVPNSiteLinkConn \ +--ipsec-encryption AES256 --ipsec-integrity SHA256 --sa-lifetime 86471 \ +--sa-data-size 429496 --ike-encryption AES256 --ike-integrity SHA384 --dh-group DHGroup14 --pfs-group PFS14 """ helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy list'] = """ type: command short-summary: List site-to-site VPN gateway connection VPN site link IPSec policies. + examples: + - name: List IPSec policies on a site-to-site VPN gateway connection VPN site link + text: | + az network vpn-gateway connection vpn-site-link-conn ipsec-policy list -g MyRG --connection-name MyConnection --gateway-name MyGateway -n MyVPNSiteLinkConn """ helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy remove'] = """ type: command short-summary: Remove an IPSec policy from a site-to-site VPN gateway connection VPN site link. + examples: + - name: Remove an IPSec policy from a site-to-site VPN gateway connection VPN site link + text: | + az network vpn-gateway connection vpn-site-link-conn ipsec-policy remove -g MyRG --connection-name MyConnection --gateway-name MyGateway -n MyVPNSiteLinkConn --index 1 """ # endregion @@ -498,16 +527,28 @@ helps['network vpn-site link add'] = """ type: command short-summary: Add a VPN site link to VPN site configuration. + examples: + - name: Add a VPN site link to VPN site configuration + text: | + az network vpn-site link add -g MyRG --site-name VpnSite -n VpnSiteLinkName --ip-address 10.0.1.111 --asn 1234 --bgp-peering-address 192.168.0.0 """ helps['network vpn-site link list'] = """ type: command - short-summary: List VPN site links to VPN site configuration. + short-summary: List VPN site links on VPN site configuration. + examples: + - name: List VPN site links on VPN site configuration + text: | + az network vpn-site link list -g MyRG --site-name VpnSite """ helps['network vpn-site link remove'] = """ type: command - short-summary: Remove a VPN site link to VPN site configuration. + short-summary: Remove a VPN site link from VPN site configuration. + examples: + - name: Remove a VPN site links from VPN site configuration + text: | + az network vpn-site link remove -g MyRG --site-name VpnSite --index 1 """ # endregion From e01c506c03a20ba49bdef40e7b55c57f33909773 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Wed, 17 Nov 2021 17:44:52 +0800 Subject: [PATCH 9/9] fix --- src/virtual-wan/azext_vwan/_help.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/virtual-wan/azext_vwan/_help.py b/src/virtual-wan/azext_vwan/_help.py index b96944251ce..40481cfa1cb 100644 --- a/src/virtual-wan/azext_vwan/_help.py +++ b/src/virtual-wan/azext_vwan/_help.py @@ -444,7 +444,6 @@ - name: Remove aVPN site link connection from site-to-site VPN gateway connection text: | az network vpn-gateway connection vpn-site-link-conn remove -g MyRG --connection-name MyConnection --gateway-name MyGateway --index 1 -" """ helps['network vpn-gateway connection vpn-site-link-conn ipsec-policy'] = """