diff --git a/src/azure-cli/azure/cli/command_modules/network/_help.py b/src/azure-cli/azure/cli/command_modules/network/_help.py index 55f82e9b7e1..d16d7f14723 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_help.py +++ b/src/azure-cli/azure/cli/command_modules/network/_help.py @@ -2943,7 +2943,7 @@ --name link1 \\ --macsec-ckn-secret-identifier MacSecCKNSecretID \\ --macsec-cak-secret-identifier MacSecCAKSecretID \\ - --macsec-cipher gcm-aes-128 + --macsec-cipher GcmAes128 - name: Enable administrative state of an ExpressRoute Link. text: |- az network express-route port link update \\ diff --git a/src/azure-cli/azure/cli/command_modules/network/_params.py b/src/azure-cli/azure/cli/command_modules/network/_params.py index 193e3fc84be..54f55c2fb5b 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_params.py +++ b/src/azure-cli/azure/cli/command_modules/network/_params.py @@ -62,7 +62,7 @@ def load_arguments(self, _): IPVersion, LoadBalancerSkuName, LoadDistribution, ProbeProtocol, ProcessorArchitecture, Protocol, PublicIPAddressSkuName, PublicIPAddressSkuTier, RouteNextHopType, SecurityRuleAccess, SecurityRuleProtocol, SecurityRuleDirection, TransportProtocol, VirtualNetworkGatewaySkuName, VirtualNetworkGatewayType, VpnClientProtocol, VpnType, - ExpressRouteLinkMacSecCipher, ExpressRouteLinkAdminState, + ExpressRouteLinkMacSecCipher, ConnectionMonitorEndpointFilterType, ConnectionMonitorTestConfigurationProtocol, PreferredIPVersion, HTTPConfigurationMethod, OutputType, DestinationPortBehavior, CoverageLevel, EndpointType, GatewayLoadBalancerTunnelProtocol, GatewayLoadBalancerTunnelInterfaceType, VpnNatRuleType, VpnNatRuleMode) = self.get_models( @@ -74,7 +74,7 @@ def load_arguments(self, _): 'IPVersion', 'LoadBalancerSkuName', 'LoadDistribution', 'ProbeProtocol', 'ProcessorArchitecture', 'Protocol', 'PublicIPAddressSkuName', 'PublicIPAddressSkuTier', 'RouteNextHopType', 'SecurityRuleAccess', 'SecurityRuleProtocol', 'SecurityRuleDirection', 'TransportProtocol', 'VirtualNetworkGatewaySkuName', 'VirtualNetworkGatewayType', 'VpnClientProtocol', 'VpnType', - 'ExpressRouteLinkMacSecCipher', 'ExpressRouteLinkAdminState', + 'ExpressRouteLinkMacSecCipher', 'ConnectionMonitorEndpointFilterType', 'ConnectionMonitorTestConfigurationProtocol', 'PreferredIPVersion', 'HTTPConfigurationMethod', 'OutputType', 'DestinationPortBehavior', 'CoverageLevel', 'EndpointType', 'GatewayLoadBalancerTunnelProtocol', 'GatewayLoadBalancerTunnelInterfaceType', 'VpnNatRuleType', 'VpnNatRuleMode') @@ -107,7 +107,6 @@ def load_arguments(self, _): ag_servers_type = CLIArgumentType(nargs='+', help='Space-separated list of IP addresses or DNS names corresponding to backend servers.', validator=get_servers_validator()) app_gateway_name_type = CLIArgumentType(help='Name of the application gateway.', options_list='--gateway-name', completer=get_resource_name_completion_list('Microsoft.Network/applicationGateways'), id_part='name') express_route_link_macsec_cipher_type = CLIArgumentType(get_enum_type(ExpressRouteLinkMacSecCipher)) - express_route_link_admin_state_type = CLIArgumentType(get_enum_type(ExpressRouteLinkAdminState)) zone_compatible_type = CLIArgumentType( options_list=['--zone', '-z'], nargs='+', @@ -848,7 +847,7 @@ def load_arguments(self, _): with self.argument_context('network express-route port link update', min_api='2019-08-01') as c: c.argument('admin_state', - arg_type=express_route_link_admin_state_type, + arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=True), help='Enable/Disable administrative state of an ExpressRoute Link') with self.argument_context('network express-route port link update', arg_group='MACsec', min_api='2019-08-01') as c: @@ -857,6 +856,7 @@ def load_arguments(self, _): c.argument('macsec_ckn_secret_identifier', help='The connectivity key name (CKN) that stored in the KeyVault.') c.argument('macsec_cipher', arg_type=express_route_link_macsec_cipher_type, help='Cipher Method') + c.argument('macsec_sci_state', arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=True), help='Sci mode', min_api='2020-06-01') with self.argument_context('network express-route port location', min_api='2018-08-01') as c: c.argument('location_name', options_list=['--location', '-l']) diff --git a/src/azure-cli/azure/cli/command_modules/network/commands.py b/src/azure-cli/azure/cli/command_modules/network/commands.py index 5087158efd7..6b7fdfcc3a9 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -819,6 +819,8 @@ def _make_singular(value): setter_name='begin_create_or_update', custom_func_name='update_express_route_port_link', supports_no_wait=True, + child_collection_prop_name='links', + child_arg_name='link_name', min_api='2019-08-01') with self.command_group('network express-route port location', network_er_port_locations_sdk) as g: diff --git a/src/azure-cli/azure/cli/command_modules/network/custom.py b/src/azure-cli/azure/cli/command_modules/network/custom.py index d7306f646e4..356db48bde7 100644 --- a/src/azure-cli/azure/cli/command_modules/network/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/custom.py @@ -2997,9 +2997,9 @@ def show_express_route_port_identity(cmd, resource_group_name, express_route_por return ports.identity -def update_express_route_port_link(cmd, instance, express_route_port_name, link_name, +def update_express_route_port_link(cmd, instance, parent, express_route_port_name, link_name, macsec_cak_secret_identifier=None, macsec_ckn_secret_identifier=None, - macsec_cipher=None, admin_state=None): + macsec_sci_state=None, macsec_cipher=None, admin_state=None): """ :param cmd: :param instance: an instance of ExpressRoutePort @@ -3011,30 +3011,22 @@ def update_express_route_port_link(cmd, instance, express_route_port_name, link_ :param admin_state: :return: """ - if len(instance.links) != 2: - raise CLIError("The number of ExpressRoute Links should be 2. " - "Code may not perform as expected. Please contact us to update CLI.") - - try: - link_index = [index for index, link in enumerate(instance.links) if link.name == link_name][0] - except Exception: - raise CLIError('ExpressRoute Link "{}" not found'.format(link_name)) - - if any([macsec_cak_secret_identifier, macsec_ckn_secret_identifier, macsec_cipher]): - instance.links[link_index].mac_sec_config.cak_secret_identifier = macsec_cak_secret_identifier - instance.links[link_index].mac_sec_config.ckn_secret_identifier = macsec_ckn_secret_identifier + if any([macsec_cak_secret_identifier, macsec_ckn_secret_identifier, macsec_cipher, macsec_sci_state]): + instance.mac_sec_config.cak_secret_identifier = macsec_cak_secret_identifier + instance.mac_sec_config.ckn_secret_identifier = macsec_ckn_secret_identifier # TODO https://github.com/Azure/azure-rest-api-specs/issues/7569 # need to remove this conversion when the issue is fixed. if macsec_cipher is not None: macsec_ciphers_tmp = {'gcm-aes-128': 'GcmAes128', 'gcm-aes-256': 'GcmAes256'} - macsec_cipher = macsec_ciphers_tmp[macsec_cipher] - instance.links[link_index].mac_sec_config.cipher = macsec_cipher + macsec_cipher = macsec_ciphers_tmp.get(macsec_cipher, macsec_cipher) + instance.mac_sec_config.cipher = macsec_cipher + instance.mac_sec_config.sci_state = macsec_sci_state if admin_state is not None: - instance.links[link_index].admin_state = admin_state + instance.admin_state = admin_state - return instance + return parent # endregion diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_express_route_port.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_express_route_port.yaml new file mode 100644 index 00000000000..7e8772259b4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_express_route_port.yaml @@ -0,0 +1,2071 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - 0 + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.8.10 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://test-er-port-kv000002.vault.azure.net/secrets/CAK?api-version=7.0 + response: + body: + string: '{"error": {"code": "Unauthorized", "message": "AKV10000: Request is + missing a Bearer or PoP token."}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '97' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + www-authenticate: + - Bearer authorization="https://login.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + resource="https://vault.azure.net" + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=167.220.255.109;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - eastus + x-ms-keyvault-service-version: + - 1.9.12.0 + x-powered-by: + - ASP.NET + status: + code: 401 + message: Unauthorized +- request: + body: '{"value": "b4355b9ccaf727d2ba7744ee991ce00e", "tags": {"file-encoding": + "utf-8"}, "attributes": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '99' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.8.10 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://test-er-port-kv000002.vault.azure.net/secrets/CAK?api-version=7.0 + response: + body: + string: '{"value": "b4355b9ccaf727d2ba7744ee991ce00e", "id": "https://test-er-port-kv000002.vault.azure.net/secrets/CAK/e86c133a706b491eb1ed911d3b3a7365", + "attributes": {"enabled": true, "created": 1626152653, "updated": 1626152653, + "recoveryLevel": "Recoverable+Purgeable"}, "tags": {"file-encoding": "utf-8"}, + "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '290' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=167.220.255.109;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - eastus + x-ms-keyvault-service-version: + - 1.9.12.0 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"value": "93e9ce8469eff0536784fc4ad253b5a6", "tags": {"file-encoding": + "utf-8"}, "attributes": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '99' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.8.10 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://test-er-port-kv000002.vault.azure.net/secrets/CKN?api-version=7.0 + response: + body: + string: '{"value": "93e9ce8469eff0536784fc4ad253b5a6", "id": "https://test-er-port-kv000002.vault.azure.net/secrets/CKN/614091550a364bcdad992db14a70d395", + "attributes": {"enabled": true, "created": 1626152655, "updated": 1626152655, + "recoveryLevel": "Recoverable+Purgeable"}, "tags": {"file-encoding": "utf-8"}, + "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '290' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=167.220.255.109;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - eastus + x-ms-keyvault-service-version: + - 1.9.12.0 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001?api-version=2020-10-01 + response: + body: + string: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001", + "name": "cli_test_express_route_port000001", "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2021-07-13T05:03:24Z"}, "properties": {"provisioningState": "Succeeded"}, + "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:16 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": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.10 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-msi/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest?api-version=2015-08-31-preview + response: + body: + string: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest", + "name": "expressRouteTest", "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "principalId": "d085cdb2-c36a-4be8-8536-6382bb927d15", "clientId": "546558ee-92ba-4500-b2b7-f3e4967d32cb", + "clientSecretUrl": "https://control-eastus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest/credentials?tid=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a&oid=d085cdb2-c36a-4be8-8536-6382bb927d15&aid=546558ee-92ba-4500-b2b7-f3e4967d32cb"}, + "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '924' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:24 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --secret-permissions --object-id + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-keyvault/9.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctestRG-test103/providers/Microsoft.KeyVault/vaults/acctestkv-test10t", + "name": "acctestkv-test10t", "type": "Microsoft.KeyVault/vaults", "location": + "eastus", "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azps-test-group/providers/Microsoft.KeyVault/vaults/azps-test-kv2", + "name": "azps-test-kv2", "type": "Microsoft.KeyVault/vaults", "location": + "eastus", "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azps-test-group/providers/Microsoft.KeyVault/vaults/azps-test-kv4", + "name": "azps-test-kv4", "type": "Microsoft.KeyVault/vaults", "location": + "southcentralus", "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.KeyVault/vaults/bez-kv0701", + "name": "bez-kv0701", "type": "Microsoft.KeyVault/vaults", "location": "eastus", + "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.KeyVault/vaults/test-er-port-kv000002", + "name": "test-er-port-kv000002", "type": "Microsoft.KeyVault/vaults", "location": + "eastus", "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault1569", + "name": "vault1569", "type": "Microsoft.KeyVault/vaults", "location": "centraluseuap", + "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiasli-cli-dev/providers/Microsoft.KeyVault/vaults/cli-sni-kv", + "name": "cli-sni-kv", "type": "Microsoft.KeyVault/vaults", "location": "westus", + "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kairu-test/providers/Microsoft.KeyVault/vaults/kairu-test-2", + "name": "kairu-test-2", "type": "Microsoft.KeyVault/vaults", "location": "eastus", + "tags": {}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ljin-test/providers/Microsoft.KeyVault/vaults/kv-ljin-sni", + "name": "kv-ljin-sni", "type": "Microsoft.KeyVault/vaults", "location": "eastus", + "tags": {}}], "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2132' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04: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: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --secret-permissions --object-id + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-keyvault/9.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.KeyVault/vaults/test-er-port-kv000002?api-version=2021-04-01-preview + response: + body: + string: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.KeyVault/vaults/test-er-port-kv000002", + "name": "test-er-port-kv000002", "type": "Microsoft.KeyVault/vaults", "location": + "eastus", "tags": {}, "systemData": {"createdBy": "kairu@microsoft.com", "createdByType": + "User", "createdAt": "1970-01-19T19:42:32.618Z", "lastModifiedBy": "kairu@microsoft.com", + "lastModifiedByType": "User", "lastModifiedAt": "1970-01-19T19:42:32.618Z"}, + "properties": {"sku": {"family": "A", "name": "standard"}, "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "accessPolicies": [{"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": + "d64e4618-a7a0-41ff-a20c-1594fdde8c87", "permissions": {"keys": ["get", "create", + "delete", "list", "update", "import", "backup", "restore", "recover"], "secrets": + ["get", "list", "set", "delete", "backup", "restore", "recover"], "certificates": + ["get", "list", "delete", "create", "import", "update", "managecontacts", + "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers", + "recover"], "storage": ["get", "list", "delete", "set", "update", "regeneratekey", + "setsas", "listsas", "getsas", "deletesas"]}}], "enabledForDeployment": false, + "enableSoftDelete": true, "softDeleteRetentionInDays": 90, "vaultUri": "https://test-er-port-kv000002.vault.azure.net/", + "provisioningState": "Succeeded"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '1379' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.23.5 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "d64e4618-a7a0-41ff-a20c-1594fdde8c87", + "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", + "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", + "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", + "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", + "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", + "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "d085cdb2-c36a-4be8-8536-6382bb927d15", + "permissions": {"secrets": ["get"]}}], "vaultUri": "https://test-er-port-kv000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": + 90, "provisioningState": "Succeeded"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '1090' + Content-Type: + - application/json + ParameterSetName: + - -n --secret-permissions --object-id + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-keyvault/9.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.KeyVault/vaults/test-er-port-kv000002?api-version=2021-04-01-preview + response: + body: + string: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.KeyVault/vaults/test-er-port-kv000002", + "name": "test-er-port-kv000002", "type": "Microsoft.KeyVault/vaults", "location": + "eastus", "tags": {}, "systemData": {"createdBy": "kairu@microsoft.com", "createdByType": + "User", "createdAt": "1970-01-19T19:42:32.618Z", "lastModifiedBy": "kairu@microsoft.com", + "lastModifiedByType": "User", "lastModifiedAt": "1970-01-19T19:42:32.667Z"}, + "properties": {"sku": {"family": "A", "name": "standard"}, "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "accessPolicies": [{"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": + "d64e4618-a7a0-41ff-a20c-1594fdde8c87", "permissions": {"keys": ["get", "create", + "delete", "list", "update", "import", "backup", "restore", "recover"], "secrets": + ["get", "list", "set", "delete", "backup", "restore", "recover"], "certificates": + ["get", "list", "delete", "create", "import", "update", "managecontacts", + "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers", + "recover"], "storage": ["get", "list", "delete", "set", "update", "regeneratekey", + "setsas", "listsas", "getsas", "deletesas"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "d085cdb2-c36a-4be8-8536-6382bb927d15", "permissions": {"secrets": + ["get"]}}], "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": + 90, "vaultUri": "https://test-er-port-kv000002.vault.azure.net/", "provisioningState": + "Succeeded"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '1515' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.23.5 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port location list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/ExpressRoutePortsLocations?api-version=2021-02-01 + response: + body: + string: '{"value": [{"name": "Airtel-Chennai-CLS", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Airtel-Chennai-CLS", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Bharti Airtel 101 Santhome High Road Bharti Tower", + "contact": "ip.noc@tatacommunications.com", "availableBandwidths": []}}, {"name": + "Airtel-Chennai2-CLS", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Airtel-Chennai2-CLS", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Bharti Airtel 101 Santhome High Road Bharti Tower", + "contact": "enterprise@in.airtel.com", "availableBandwidths": []}}, {"name": + "Allied-Toronto-King-West", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Allied-Toronto-King-West", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "905 King Street West,Toronto,Ontario,Canada.M6K-3G9", + "contact": "416.977.9002", "availableBandwidths": []}}, {"name": "Area51-ERDirect", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Area51-ERDirect", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "N/A", "contact": "N/A", "availableBandwidths": []}}, + {"name": "Ascenty-Campinas-Campinas1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Ascenty-Campinas-Campinas1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Av. Pierre Simon De LaPlace, 1211, Campinas, S\u00e3o + Paulo, Brazil", "contact": "+55(11)3508 8910", "availableBandwidths": []}}, + {"name": "AtTokyo-Tokyo-CC1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/AtTokyo-Tokyo-CC1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "TEPCO Toyosu Building 6-2, 6-2-15 Toyosu, Koto-Ku, + Tokyo, Japan 135-0061", "contact": "https://www.attokyo.com/contact/info/index.php", + "availableBandwidths": []}}, {"name": "Bharti-Airtel-Mumbai2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Bharti-Airtel-Mumbai2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Plot No, TPS-2, 14/3, Dattaray Rd, Linking Rd Extension + Santa Cruz West", "contact": "enterprise@in.airtel.com", "availableBandwidths": + []}}, {"name": "CDC-Canberra", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CDC-Canberra", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "2 Leonora Street, Fyshwick", "contact": "contact@canberradc.com.au", + "availableBandwidths": []}}, {"name": "CDC-Canberra-CBR20", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CDC-Canberra-CBR20", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "2 Leonora Street, Fyshwick", "contact": "contact@canberradc.com.au", + "availableBandwidths": []}}, {"name": "CDC-Canberra2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CDC-Canberra2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "54-56 Sheppard Street, Hume", "contact": "contact@canberradc.com.au", + "availableBandwidths": []}}, {"name": "Chennai-MAA01", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Chennai-MAA01", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "N/A", "contact": "N/A", "availableBandwidths": []}}, + {"name": "Cheyenne-ERDirect", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Cheyenne-ERDirect", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "N/A", "contact": "N/A", "availableBandwidths": []}}, + {"name": "ChiefTelecom-Taipei", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/ChiefTelecom-Taipei", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Microsoft c/o Chief Telecom HD Bldg 2 /F., No. 37 + Lane 188 Ruiguang Road., Nei Hu District", "contact": "service@chief.com.tw", + "availableBandwidths": []}}, {"name": "Cologix-Minneapolis-MIN3", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Cologix-Minneapolis-MIN3", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "511 11the Ave S, Suite 2.200.270, Minneapolis, MN, + United States. 55415-1537", "contact": "support@cologix.com", "availableBandwidths": + []}}, {"name": "Cologix-Montreal-MTL3", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Cologix-Montreal-MTL3", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "1250 Rene-Levesque W. th Fllor,Montreal,Canada,H3B-4W8", + "contact": "support@cologix.com", "availableBandwidths": []}}, {"name": "Cologix-Toronto-TOR1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Cologix-Toronto-TOR1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "151 Front Street West Toronto, ON M5J 2N1", "contact": + "support@cologix.com", "availableBandwidths": []}}, {"name": "Coresite-Denver-DE1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Coresite-Denver-DE1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Coresite,910, 15th Street, Suite 500, Denver, Colorado, + 80202-2912", "contact": " CustomerSupport@CoreSite.com", "availableBandwidths": + []}}, {"name": "CoreSite-Los-Angeles-LA1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CoreSite-Los-Angeles-LA1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "624 South Grand Ave. Suite 110, Los Angeles, CA 90017", + "contact": "CustomerSupport@CoreSite.com", "availableBandwidths": []}}, {"name": + "CoreSite-Reston-VA2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CoreSite-Reston-VA2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "12098 Sunrise Valley Drive, Reston, VA, 201914", + "contact": "CustomerSupport@CoreSite.com", "availableBandwidths": []}}, {"name": + "CoreSite-Santa-Clara-SV7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CoreSite-Santa-Clara-SV7", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "3020 Coronado Drive, Santa Clara, CA 95054", "contact": + "CustomerSupport@CoreSite.com", "availableBandwidths": []}}, {"name": "CyrusOne-San-Antonio-1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/CyrusOne-San-Antonio-1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "9999 Westover Hills Blvd, San Antonio, TX 78251", + "contact": "info@cyrusone.com", "availableBandwidths": []}}, {"name": "DigiPlex-Oslo-Ulven", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/DigiPlex-Oslo-Ulven", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Microsoft c/o DigiPlex, Selma Ellefsens Vei 1, Oslo, + 0581", "contact": "helpme@digiplex.com", "availableBandwidths": []}}, {"name": + "Du-Datamena-Dubai-DX1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Du-Datamena-Dubai-DX1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "F88-92, Dubai Production City, Sheikh Mohammed Bin + Zayed Rd, Dubai, UAE 500389", "contact": "+971 43 757777", "availableBandwidths": + []}}, {"name": "EdgeConnex-Phoenix-PHX01", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/EdgeConnex-Phoenix-PHX01", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "3011 S 52nd St,Ste 107,Tempe AZ 85282", "contact": + "info@edgeconnex.com", "availableBandwidths": []}}, {"name": "Equinix-Amsterdam-AM5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Amsterdam-AM5", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Schepenbergweg 42 1105 AT Amsterdam Netherlands", + "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Ashburn-DC2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Ashburn-DC2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "21715 Filigree Court, DC2, Building F, Ashburn, VA + 20147", "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": + "Equinix-Atlanta-AT2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Atlanta-AT2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "56 Marietta Street NW, 5th Floor, Atlanta GA 30305", + "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Chicago-CH1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Chicago-CH1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "350 East Cermak Road, 5th Floor Suite F, Chicago, + IL 60616", "contact": "support@equinix.com", "availableBandwidths": []}}, + {"name": "Equinix-Dallas-DA3", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Dallas-DA3", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "1950 N. Stemmons Freeway, Suite 1039A, DA3, Dallas, + TX 75207", "contact": "support@equinix.com", "availableBandwidths": []}}, + {"name": "Equinix-Dublin-DB3", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Dublin-DB3", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Unit 2 Northwest Business Park Ballycoolin Dublin + 15 Ireland", "contact": "support@equinix.com", "availableBandwidths": []}}, + {"name": "Equinix-Frankfurt-FR7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Frankfurt-FR7", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Gutleutstrasse 310, Frankfurt, HE, Germany, 60327", + "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Geneva-GV2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Geneva-GV2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "48, Route du Bois-des-Freres 1219 Le Lignon Switzerland", + "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Hong-Kong-HK1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Hong-Kong-HK1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "17/F, Global Gateway (hong Kong), 168 Yeung Uk Road, + Tsuen Wan, Hong Kong", "contact": "support@equinix.com", "availableBandwidths": + []}}, {"name": "Equinix-London-LD5", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-London-LD5", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "8 Buckingham Avenue, Slough Trading Estate, Slough, + Berkshire SL1 4AX, United Kingdom", "contact": "support@equinix.com", "availableBandwidths": + []}}, {"name": "Equinix-Miami-MI1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Miami-MI1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "50 NE 8th Street, Miami, FL 33132", "contact": "support@equinix.com", + "availableBandwidths": []}}, {"name": "Equinix-New-York-NY5", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-New-York-NY5", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "111 8th Avenue, New York, NY 10011", "contact": "support@equinix.com", + "availableBandwidths": []}}, {"name": "Equinix-New-York-NY9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-New-York-NY9", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": " 111 8th Avenue, 5th and 7th Floors, New York, NY + 1001", "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": + "Equinix-Osaka-OS1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Osaka-OS1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Nishi Shinsaibashi Building 1-26-1 Shinmachi Nishi-ku, + Osaka City, Osaka, Japan 550-0013", "contact": "support@equinix.com", "availableBandwidths": + []}}, {"name": "Equinix-Rio-de-Janeiro-RJ2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Rio-de-Janeiro-RJ2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Estrada Adhemar Bebiano, 1380 - Del Castilho", "contact": + "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-San-Jose-SV1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-San-Jose-SV1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "11 Great Oaks Blvd, SV1, San Jose, CA 95119", "contact": + "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Sao-Paulo-SP2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Sao-Paulo-SP2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Alameda Araguaia, 3641 - Tambor\u00e9, Barueri - + SP, 06455-000, Brazil", "contact": "support@equinix.com", "availableBandwidths": + []}}, {"name": "Equinix-Seattle-SE2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Seattle-SE2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "2001 Sixth Ave., Suite 350, SE2, Seattle, WA 98121", + "contact": "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Singapore-SG1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Singapore-SG1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "20 Ayer Rajah Crescent, 139964, Singapore", "contact": + "support@equinix.com", "availableBandwidths": []}}, {"name": "Equinix-Sydney-SY2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Sydney-SY2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Unit C, 639 Gardeners Road,Mascot, Sydney, NSW 2020, + Australia", "contact": "support@equinix.com", "availableBandwidths": []}}, + {"name": "Equinix-Tokyo-TY4", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Tokyo-TY4", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "North Tower, Otemachi Financial City, Otemachi, 1-9-5, + Chiyoda-ku, Tokyo", "contact": "support@equinix.com", "availableBandwidths": + []}}, {"name": "Etisalat-Dubai-DXB20", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Etisalat-Dubai-DXB20", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Pacific Control Cloud Services, Dubai", "contact": + "businesscare@etisalat.ae", "availableBandwidths": []}}, {"name": "Global-Switch-Singapore", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Global-Switch-Singapore", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "2 Tai Seng Avenue, Singapore", "contact": "+1 877-865-5190", + "availableBandwidths": []}}, {"name": "GreenMountain-Stavanger", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/GreenMountain-Stavanger", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Hodneveien 260, 4150 Rennes\u00f8y, Stavanger, Norway + West, Norway", "contact": "resepsjon@greenmountain.no", "availableBandwidths": + []}}, {"name": "iAdvantage-Hong-Kong2-MEGA-i", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/iAdvantage-Hong-Kong2-MEGA-i", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "399 Chai Wan Road, Chai Wan, Hong Kong", "contact": + "noc-hk@iadvantage.net", "availableBandwidths": []}}, {"name": "Interxion-Amsterdam2-AMS8", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Interxion-Amsterdam2-AMS8", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "37, Pudongweg, 1437 EM Rozenburg, Netherlands", "contact": + "nl.info@interxion.com", "availableBandwidths": []}}, {"name": "Interxion-Copenhagen", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Interxion-Copenhagen", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Industriparken 20A, Copenhagen, Denmark", "contact": + "+4544822300", "availableBandwidths": []}}, {"name": "Interxion-Frankfurt-FRA11", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Interxion-Frankfurt-FRA11", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Interxion Deutschland GmbHHanauer Landstra\u00dfe + 298 60314 Frankfurt am Main Deutschland", "contact": "de.info@interxion.com", + "availableBandwidths": []}}, {"name": "Interxion-Madrid-MAD1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Interxion-Madrid-MAD1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Calle Albasanz, 71, Madrid, Spain. 28037", "contact": + "+34 917 894 850", "availableBandwidths": []}}, {"name": "Interxion-Paris-PAR5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Interxion-Paris-PAR5", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "11-13 Avenue des Arts et Metiers, Saint Denis 93200, + France", "contact": "france@interxion.com", "availableBandwidths": []}}, {"name": + "Interxion-Zurich-ZUR2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Interxion-Zurich-ZUR2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "B\u00e4ulerwisenstrasse 4, 8152, Glattbrugg, Switzerland", + "contact": "nxtops@nextdc.com", "availableBandwidths": []}}, {"name": "IRIDEOS-Milan", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/IRIDEOS-Milan", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Via Caldera 21,Milan,Lombardy,Italy", "contact": + "+39-800-585-383", "availableBandwidths": []}}, {"name": "KINX-Seoul-Gasan", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/KINX-Seoul-Gasan", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Microsoft c/o Kinx, 3F LG CNS Bldg", "contact": "tech@kinx.net", + "availableBandwidths": []}}, {"name": "KIO-Networks-Queretaro-QR01", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/KIO-Networks-Queretaro-QR01", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Parque Industrial, Privada de la Princesa 4, el Marques, + 76246 Santiago de Quer\u00e9taro, Qro., Mexico", "contact": "https://www.kionetworks.com", + "availableBandwidths": []}}, {"name": "NextDC-Melbourne-MEL01", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/NextDC-Melbourne-MEL01", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "826-830 Lorimer Street Port Melbourne, VIC 3207", + "contact": "nxtops@nextdc.com", "availableBandwidths": []}}, {"name": "NextDC-Sydney-S1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/NextDC-Sydney-S1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "4 Eden Park Dr, Macquarie Park NSW 2113", "contact": + "nxtops@nextdc.com", "availableBandwidths": []}}, {"name": "NTT-GDC-Berlin-1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/NTT-GDC-Berlin-1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Nonnendammallee 15, 13599 Berlin, Germany", "contact": + "info@e-shelter.com", "availableBandwidths": []}}, {"name": "Sabey-Data-Centers-Quincy-A", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Sabey-Data-Centers-Quincy-A", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Building A, 2200 M St NE, Microsoft c/o Sabey Data + Centers, Quincy, Washington, 98848", "contact": "info@sabey.com", "availableBandwidths": + []}}, {"name": "Switch-Las-Vegas", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Switch-Las-Vegas", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "7135 S Decatur Blvd, Las Vegas, NV 89118", "contact": + "+1-877-818-8538", "availableBandwidths": []}}, {"name": "Tata-Chennai-VSB", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Tata-Chennai-VSB", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Tata Communications 4 Swami Sivananda Salai 600002 + Chennai Tamil Nadu, India", "contact": "ip.noc@tatacommunications.com", "availableBandwidths": + []}}, {"name": "Tata-Mumbai-LVSB", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Tata-Mumbai-LVSB", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Kashinath Dhuru Marg, Opp. Kirti College Prabhadevi. + Mumbai -28 India 40002", "contact": "ip.noc@tatacommunications.com", "availableBandwidths": + []}}, {"name": "Telehouse-London2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Telehouse-London2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Telehouse North Two, Coriander Avenue", "contact": + "salessupport@uk.telehouse.net", "availableBandwidths": []}}, {"name": "Teraco-Cape-Town-CT1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Teraco-Cape-Town-CT1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Great Westerford Building, Rondebosch, Cape Town", + "contact": "support@teraco.co.za", "availableBandwidths": []}}, {"name": "Teraco-Johannesburg-JT1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Teraco-Johannesburg-JT1", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "5 Brewery Street, Isando, Johannesburg, Gauteng", + "contact": "support@teraco.co.za", "availableBandwidths": []}}, {"name": "Tivit-Sao-Paulo-TSM", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Tivit-Sao-Paulo-TSM", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Rua Bento Branco de Andrade Filho ,621 Jardim Dom + Bosco,Sao Paulo,Brazil 04757-000", "contact": "+55 (11) 3757-2222", "availableBandwidths": + []}}, {"name": "Vantage-Quebec-City-QC21", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Vantage-Quebec-City-QC21", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "2675 Boulevard du Parc-Technologique,Quebec City,QC,Canada.G1P + 4S5.", "contact": "+1 (844) 433-7437", "availableBandwidths": []}}, {"name": + "VantageDC-Newport-NGD", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/VantageDC-Newport-NGD", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "Celtic Way, Coedkernew, Duffryn, Newport NP10 8BE, + United Kingdom", "contact": "+44 (0)1633 988 035", "availableBandwidths": + []}}], "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '34868' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04: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: + - 12281804-d642-47e6-b0a6-45cc8afd664b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port location show + Connection: + - keep-alive + ParameterSetName: + - -l + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/ExpressRoutePortsLocations/Equinix-Ashburn-DC2?api-version=2021-02-01 + response: + body: + string: '{"name": "Equinix-Ashburn-DC2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Ashburn-DC2", + "type": "Microsoft.Network/expressRoutePortsLocations", "properties": {"provisioningState": + "Succeeded", "address": "21715 Filigree Court, DC2, Building F, Ashburn, VA + 20147", "contact": "support@equinix.com", "availableBandwidths": [{"offerName": + "10 Gbps", "valueInGbps": 10}, {"offerName": "100 Gbps", "valueInGbps": 100}]}, + "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '610' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04: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: + - fe780d15-4c51-4416-9a8d-78293001e3ec + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port create + Connection: + - keep-alive + Content-Length: + - '128' + Content-Type: + - application/json + ParameterSetName: + - -g -n --location --peering-location --encapsulation --bandwidth + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"a40f9190-15b6-4a5f-8a05-674591d19a0c\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "properties": {"provisioningState": "Updating", "resourceGuid": + "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", "links": [{"name": "link1", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"a40f9190-15b6-4a5f-8a05-674591d19a0c\"", "properties": {"provisioningState": + "Updating", "connectorType": "LC", "adminState": "Disabled", "macSecConfig": + {"cipher": "GcmAes128"}}, "type": "Microsoft.Network/expressRoutePorts/links"}, + {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"a40f9190-15b6-4a5f-8a05-674591d19a0c\"", "properties": {"provisioningState": + "Updating", "connectorType": "LC", "adminState": "Disabled", "macSecConfig": + {"cipher": "GcmAes128"}}, "type": "Microsoft.Network/expressRoutePorts/links"}], + "peeringLocation": "Equinix-Ashburn-DC2", "bandwidthInGbps": 10, "encapsulation": + "QinQ", "provisionedBandwidthInGbps": 0.0}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0f1d9045-87a8-4a88-81ab-b4e62db47f79?api-version=2021-02-01 + cache-control: + - no-cache + content-length: + - '1943' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:38 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: + - c45ab486-96df-4b5a-a5e9-b8f89792ed6c + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --peering-location --encapsulation --bandwidth + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0f1d9045-87a8-4a88-81ab-b4e62db47f79?api-version=2021-02-01 + response: + body: + string: '{"status": "InProgress", "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04: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: + - cca86a25-e0dc-490c-8afc-6a464e36016f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --peering-location --encapsulation --bandwidth + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0f1d9045-87a8-4a88-81ab-b4e62db47f79?api-version=2021-02-01 + response: + body: + string: '{"status": "Succeeded", "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04: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: + - dc0f5265-971d-48e7-b60a-bd1c2137a691 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --peering-location --encapsulation --bandwidth + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "properties": {"provisioningState": "Succeeded", "resourceGuid": + "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", "links": [{"name": "link1", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2391' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:04:59 GMT + etag: + - W/"ee2da196-90a8-4466-83c8-9b0ae7c2280c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3f125f1a-7a65-41f8-99c0-e86af868cdab + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts?api-version=2021-02-01 + response: + body: + string: '{"value": [{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "properties": {"provisioningState": "Succeeded", "resourceGuid": + "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", "links": [{"name": "link1", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}}], "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2640' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - e82fd3ad-f4d4-4a11-be3a-3642d0d3bfc2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "properties": {"provisioningState": "Succeeded", "resourceGuid": + "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", "links": [{"name": "link1", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2391' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:01 GMT + etag: + - W/"ee2da196-90a8-4466-83c8-9b0ae7c2280c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - dd5bed5b-070b-416b-9bf1-c2b52a4196f8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --identity + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "properties": {"provisioningState": "Succeeded", "resourceGuid": + "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", "links": [{"name": "link1", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"ee2da196-90a8-4466-83c8-9b0ae7c2280c\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2391' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:03 GMT + etag: + - W/"ee2da196-90a8-4466-83c8-9b0ae7c2280c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1b4cd6d2-c745-45f7-979f-417ff73abd0f + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "location": "eastus", "identity": {"type": "UserAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"peeringLocation": "Equinix-Ashburn-DC2", "bandwidthInGbps": + 10, "encapsulation": "QinQ", "links": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "name": "link1", "properties": {"adminState": "Disabled", "macSecConfig": {"cipher": + "GcmAes128"}}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "name": "link2", "properties": {"adminState": "Disabled", "macSecConfig": {"cipher": + "GcmAes128"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port identity assign + Connection: + - keep-alive + Content-Length: + - '1304' + Content-Type: + - application/json + ParameterSetName: + - -g -n --identity + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"cceb3538-2ca4-48d3-84ca-1ce8e28d93da\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"provisioningState": "Updating", "resourceGuid": "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", + "links": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"cceb3538-2ca4-48d3-84ca-1ce8e28d93da\"", "properties": {"provisioningState": + "Updating", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"cceb3538-2ca4-48d3-84ca-1ce8e28d93da\"", "properties": {"provisioningState": + "Updating", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ff3cb3d5-46d0-4fcf-ad50-d1d2455e1e0d?api-version=2021-02-01 + cache-control: + - no-cache + content-length: + - '2712' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - 40e55daf-da05-4d37-9407-9488c21d90e1 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --identity + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ff3cb3d5-46d0-4fcf-ad50-d1d2455e1e0d?api-version=2021-02-01 + response: + body: + string: '{"status": "Succeeded", "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - d7ed632c-0bbf-48f9-88a5-1724be0a46ca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --identity + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"provisioningState": "Succeeded", "resourceGuid": "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", + "links": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2715' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:20 GMT + etag: + - W/"5b271dec-6a50-484a-ac8d-60d3710af4fd" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e2546442-f15e-43c6-b5b7-d18125ac3e62 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port identity show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"provisioningState": "Succeeded", "resourceGuid": "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", + "links": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2715' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:21 GMT + etag: + - W/"5b271dec-6a50-484a-ac8d-60d3710af4fd" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a5914dc0-20e8-448e-8370-5535373bff0e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link list + Connection: + - keep-alive + ParameterSetName: + - -g --port-name + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest/links?api-version=2021-02-01 + response: + body: + string: '{"value": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '1568' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - 3c3f52ca-ca8c-4541-8aa8-e980b26f0b32 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link show + Connection: + - keep-alive + ParameterSetName: + - -g --port-name -n + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest/links/link1?api-version=2021-02-01 + response: + body: + string: '{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links", "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '698' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:23 GMT + etag: + - W/"5b271dec-6a50-484a-ac8d-60d3710af4fd" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3f4ddfef-c8cc-4659-8b5f-6debbe3af0ce + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link update + Connection: + - keep-alive + ParameterSetName: + - -g --port-name -n --macsec-ckn-secret-identifier --macsec-cak-secret-identifier + --macsec-cipher --admin-state + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"provisioningState": "Succeeded", "resourceGuid": "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", + "links": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}, {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"5b271dec-6a50-484a-ac8d-60d3710af4fd\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '2715' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:24 GMT + etag: + - W/"5b271dec-6a50-484a-ac8d-60d3710af4fd" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e5c20def-b31d-4ef3-9c58-ecb9094e46a0 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"peeringLocation": "Equinix-Ashburn-DC2", "bandwidthInGbps": + 10, "encapsulation": "QinQ", "links": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "name": "link1", "properties": {"adminState": "Enabled", "macSecConfig": {"cknSecretIdentifier": + "https://test-er-port-kv000002.vault.azure.net/secrets/CKN/614091550a364bcdad992db14a70d395", + "cakSecretIdentifier": "https://test-er-port-kv000002.vault.azure.net/secrets/CAK/e86c133a706b491eb1ed911d3b3a7365", + "cipher": "GcmAes128"}}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "name": "link2", "properties": {"adminState": "Disabled", "macSecConfig": {"cipher": + "GcmAes128"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link update + Connection: + - keep-alive + Content-Length: + - '1543' + Content-Type: + - application/json + ParameterSetName: + - -g --port-name -n --macsec-ckn-secret-identifier --macsec-cak-secret-identifier + --macsec-cipher --admin-state + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"b76ea1b1-a07a-4251-bd38-cc3d9e936757\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {}}}, "properties": {"provisioningState": "Updating", "resourceGuid": "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", + "links": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"b76ea1b1-a07a-4251-bd38-cc3d9e936757\"", "properties": {"provisioningState": + "Updating", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Enabled", "macSecConfig": {"cknSecretIdentifier": "https://test-er-port-kv000002.vault.azure.net/secrets/CKN/614091550a364bcdad992db14a70d395", + "cakSecretIdentifier": "https://test-er-port-kv000002.vault.azure.net/secrets/CAK/e86c133a706b491eb1ed911d3b3a7365", + "cipher": "GcmAes128"}}, "type": "Microsoft.Network/expressRoutePorts/links"}, + {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"b76ea1b1-a07a-4251-bd38-cc3d9e936757\"", "properties": {"provisioningState": + "Updating", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/acaed1d5-2178-43b3-8a8c-fd41c3cd0381?api-version=2021-02-01 + cache-control: + - no-cache + content-length: + - '2977' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - 0e9a6b11-f46a-48f5-891b-d524b8a67142 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link update + Connection: + - keep-alive + ParameterSetName: + - -g --port-name -n --macsec-ckn-secret-identifier --macsec-cak-secret-identifier + --macsec-cipher --admin-state + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/acaed1d5-2178-43b3-8a8c-fd41c3cd0381?api-version=2021-02-01 + response: + body: + string: '{"status": "InProgress", "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - 63358b81-1a8e-4f41-af70-aecc165d177f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link update + Connection: + - keep-alive + ParameterSetName: + - -g --port-name -n --macsec-ckn-secret-identifier --macsec-cak-secret-identifier + --macsec-cipher --admin-state + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/acaed1d5-2178-43b3-8a8c-fd41c3cd0381?api-version=2021-02-01 + response: + body: + string: '{"status": "Succeeded", "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - 2f9f89f0-0da5-4ad6-9b36-d67bbf5c7034 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port link update + Connection: + - keep-alive + ParameterSetName: + - -g --port-name -n --macsec-ckn-secret-identifier --macsec-cak-secret-identifier + --macsec-cipher --admin-state + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/ExpressRoutePorts/expressRouteTest?api-version=2021-02-01 + response: + body: + string: '{"name": "expressRouteTest", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest", + "etag": "W/\"93ceba2b-c950-4cb2-b63f-67cee74e5e01\"", "type": "Microsoft.Network/expressRoutePorts", + "location": "eastus", "identity": {"type": "userAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_express_route_port000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/expressRouteTest": + {"principalId": "d085cdb2-c36a-4be8-8536-6382bb927d15", "clientId": "546558ee-92ba-4500-b2b7-f3e4967d32cb"}}}, + "properties": {"provisioningState": "Succeeded", "resourceGuid": "f0455f24-eb98-4878-bf15-5ffd8cb8d98a", + "links": [{"name": "link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link1", + "etag": "W/\"93ceba2b-c950-4cb2-b63f-67cee74e5e01\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr05.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0201:1216563\tPort 1", "rackId": "ASH 02410-0201", "connectorType": "LC", + "adminState": "Enabled", "macSecConfig": {"cknSecretIdentifier": "https://test-er-port-kv000002.vault.azure.net/secrets/CKN/614091550a364bcdad992db14a70d395", + "cakSecretIdentifier": "https://test-er-port-kv000002.vault.azure.net/secrets/CAK/e86c133a706b491eb1ed911d3b3a7365", + "cipher": "GcmAes128"}}, "type": "Microsoft.Network/expressRoutePorts/links"}, + {"name": "link2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/links/link2", + "etag": "W/\"93ceba2b-c950-4cb2-b63f-67cee74e5e01\"", "properties": {"provisioningState": + "Succeeded", "routerName": "exr06.ash", "interfaceName": "xe-1/1/11:3", "patchPanelId": + "CP:0202:1216566\tPort 1", "rackId": "ASH 02410-0202", "connectorType": "LC", + "adminState": "Disabled", "macSecConfig": {"cipher": "GcmAes128"}}, "type": + "Microsoft.Network/expressRoutePorts/links"}], "peeringLocation": "Equinix-Ashburn-DC2", + "bandwidthInGbps": 10, "encapsulation": "QinQ", "provisionedBandwidthInGbps": + 0.0, "mtu": "1500", "etherType": "0x8100", "allocationDate": "Tuesday, July + 13, 2021"}, "encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '3112' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05:53 GMT + etag: + - W/"93ceba2b-c950-4cb2-b63f-67cee74e5e01" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7acb6126-d3e7-40f1-adb7-9c0ccc288a49 + status: + code: 200 + message: OK +- request: + body: '{"customerName": "MyCustomer"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network express-route port generate-loa + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json + ParameterSetName: + - --customer-name -g --name -f + User-Agent: + - AZURECLI/2.26.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_express_route_port000001/providers/Microsoft.Network/expressRoutePorts/expressRouteTest/generateLoa?api-version=2021-02-01 + response: + body: + string: '{"encodedContent": "UmF3IGJ5dGVzIG9mIGEgUERGIGNvbnRlbnQgcmVwbGFjZWQgYnkgRXhwcmVzc1JvdXRlUG9ydExPQUNvbnRlbnRSZXBsYWNlcg=="}' + headers: + cache-control: + - no-cache + content-length: + - '174620' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 13 Jul 2021 05:05: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: + - 9d233912-c54d-44e7-9f79-21fb900f7d9c + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py index 833977c7f6d..850274e6bbe 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py @@ -17,7 +17,7 @@ from azure.cli.testsdk import ( ScenarioTest, LiveScenarioTest, LocalContextScenarioTest, ResourceGroupPreparer, StorageAccountPreparer, live_only, - record_only, KeyVaultPreparer) + KeyVaultPreparer, record_only) from knack.util import CLIError @@ -2124,43 +2124,65 @@ def __init__(self, method_name): ExpressRoutePortLOAContentReplacer() ]) - def test_network_express_route_port_identity(self): - """ - Since the resource ExpressRoute Port is rare currently, it's very expensive to write test. - We run test manually for now. Any changes related to this command, please contract to Service team for help. - For ussage, run `az network express-route port identity --help` to get help. - """ - pass - - def test_network_express_route_port_config_macsec(self): - """ - Since the resource ExpressRoute Port is rare currently, it's very expensive to write test. - We run test manually for now. Any changes related to this command, please contract to Service team for help. - For ussage, run `az network express-route port link update --help` to get help. - """ - pass - - def test_network_express_route_port_config_adminstate(self): - """ - Since the resource ExpressRoute Port is rare currently, it's very expensive to write test. - We run test manually for now. Any changes related to this command, please contract to Service team for help. - For ussage, run `az network express-route port link update --help` to get help. - """ - pass - - @unittest.skip('rg not found') @AllowLargeResponse() - def test_network_express_route_port_generate_loa(self): - """ - The ExpressRoutePort comes from service team and located in a different subscription. And it will be revoked after this feature. - So, this test is record only. - """ + @ResourceGroupPreparer(name_prefix='cli_test_express_route_port', location='eastus') + @KeyVaultPreparer(name_prefix='test-er-port-kv', location='eastus') + def test_network_express_route_port(self, resource_group, key_vault): self.kwargs.update({ - 'rg': 'ER-AutoTriage-RG', - 'er_port': 'ER-autotriage-erdirect', + 'rg': resource_group, + 'location': 'eastus', + 'name': 'expressRouteTest', + 'peeringRG': 'Equinix-Ashburn-DC2', + 'encapsulation': 'QinQ', + 'bandwidth': '10 Gbps', + 'cipher': 'GcmAes128', + 'kv': key_vault, + 'CAK_name': 'CAK', + 'CAK_value': 'b4355b9ccaf727d2ba7744ee991ce00e', + 'CKN_name': 'CKN', + 'CKN_value': '93e9ce8469eff0536784fc4ad253b5a6', }) + self.kwargs['CAK_id'] = self.cmd('keyvault secret set --name {CAK_name} --vault-name {kv} --value {CAK_value}').get_output_in_json()['id'] + self.kwargs['CKN_id'] = self.cmd('keyvault secret set --name {CKN_name} --vault-name {kv} --value {CKN_value}').get_output_in_json()['id'] + identity = self.cmd('identity create -g {rg} -n {name}').get_output_in_json() + self.cmd('keyvault set-policy -n {kv} --secret-permissions get --object-id ' + identity['principalId']) + + self.cmd('network express-route port location list') + + self.cmd('network express-route port location show -l {peeringRG}', checks=[ + self.check('name', self.kwargs['peeringRG']) + ]) + + self.cmd('network express-route port create -g {rg} -n {name} --location {location} --peering-location {peeringRG} --encapsulation {encapsulation} --bandwidth {bandwidth}', checks=[ + self.check('name', self.kwargs['name']), + self.check('length(links)', 2), + ]) + self.cmd('network express-route port list -g {rg}', checks=[ + self.check('length(@)', 1) + ]) + self.cmd('network express-route port show -g {rg} -n {name}') + + self.cmd('network express-route port identity assign -g {rg} -n {name} --identity ' + identity['id']) + + self.cmd('network express-route port identity show -g {rg} -n {name}') + + self.cmd('network express-route port link list -g {rg} --port-name {name}', checks=[ + self.check('length(@)', 2) + ]) + self.cmd('network express-route port link show -g {rg} --port-name {name} -n link1', checks=[ + self.check('name', 'link1') + ]) + + self.cmd('network express-route port link update -g {rg} --port-name {name} -n link1 ' + '--macsec-ckn-secret-identifier {CKN_id} --macsec-cak-secret-identifier {CAK_id} ' + '--macsec-cipher {cipher} --admin-state', checks=[ + self.check('adminState', 'Enabled'), + self.check('macSecConfig.cakSecretIdentifier', self.kwargs['CAK_id']), + self.check('macSecConfig.cknSecretIdentifier', self.kwargs['CKN_id']), + self.check('macSecConfig.cipher', self.kwargs['cipher']), + ]) - self.cmd('network express-route port generate-loa --customer-name MyCustomer -g {rg} --name {er_port} -f loa1') + self.cmd('network express-route port generate-loa --customer-name MyCustomer -g {rg} --name {name} -f loa1') class NetworkExpressRouteIPv6PeeringScenarioTest(ScenarioTest):