diff --git a/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py b/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py index f1725f03b9a..496e94edf32 100644 --- a/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py @@ -21,7 +21,7 @@ def register_providers(): _register_one_provider('Microsoft.AppConfiguration/configurationStores', '2020-06-01', True) _register_one_provider("Microsoft.Batch/batchAccounts", "2020-03-01", True) _register_one_provider("Microsoft.BotService/botServices", "2021-03-01", True) - + _register_one_provider("Microsoft.Cache/Redis", "2020-12-01", True) # "Microsoft.Cache/redisEnterprise", "2021-03-01", True _register_one_provider('Microsoft.CognitiveServices/accounts', '2021-04-30', True) _register_one_provider('Microsoft.Compute/diskAccesses', '2020-09-30', True) diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_acfr.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_acfr.yaml new file mode 100644 index 00000000000..ef30e61b72b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_acfr.yaml @@ -0,0 +1,2305 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"tenantSettings": {}, "sku": {"name": + "Standard", "family": "c", "capacity": 1}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + Content-Length: + - '119' + Content-Type: + - application/json + ParameterSetName: + - --location --name --resource-group --sku --vm-size + User-Agent: + - AZURECLI/2.29.1 azsdk-python-mgmt-redis/13.0.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/redis/cli-test-acfr-pe-000002?api-version=2020-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002","location":"West + US","name":"cli-test-acfr-pe-000002","type":"Microsoft.Cache/Redis","tags":{},"properties":{"provisioningState":"Creating","redisVersion":"4.0.14","sku":{"name":"Standard","family":"C","capacity":1},"enableNonSslPort":false,"instances":[{"sslPort":15000,"isMaster":false,"isPrimary":false},{"sslPort":15001,"isMaster":false,"isPrimary":false}],"publicNetworkAccess":"Enabled","tenantSettings":{},"redisConfiguration":{"maxclients":"1000","maxmemory-reserved":"50","maxfragmentationmemory-reserved":"50","maxmemory-delta":"50"},"accessKeys":{"primaryKey":"","secondaryKey":""},"hostName":"cli-test-acfr-pe-000002.redis.cache.windows.net","port":6379,"sslPort":6380,"linkedServers":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '1011' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:47:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/redis/cli-test-acfr-pe-000002?api-version=2020-12-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - --location --name --resource-group --sku --vm-size + User-Agent: + - AZURECLI/2.29.1 azsdk-python-mgmt-redis/13.0.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/redis/cli-test-acfr-pe-000002?api-version=2020-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002","location":"West + US","name":"cli-test-acfr-pe-000002","type":"Microsoft.Cache/Redis","tags":{},"properties":{"provisioningState":"Creating","redisVersion":"4.0.14","sku":{"name":"Standard","family":"C","capacity":1},"enableNonSslPort":false,"instances":[{"sslPort":15000,"isMaster":false,"isPrimary":false},{"sslPort":15001,"isMaster":false,"isPrimary":false}],"publicNetworkAccess":"Enabled","tenantSettings":{},"redisConfiguration":{"maxclients":"1000","maxmemory-reserved":"50","maxfragmentationmemory-reserved":"50","maxmemory-delta":"50"},"accessKeys":null,"hostName":"cli-test-acfr-pe-000002.redis.cache.windows.net","port":6379,"sslPort":6380,"linkedServers":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '892' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:47:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "cli-subnet-000004", + "properties": {"addressPrefix": "10.0.0.0/24", "privateEndpointNetworkPolicies": + "Enabled", "privateLinkServiceNetworkPolicies": "Enabled"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '315' + Content-Type: + - application/json + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"0513bffd-bfb4-458d-9098-cd2c7f6ad081\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"e2d54dc1-1853-40cc-9a72-2f6286561697\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"cli-subnet-000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"0513bffd-bfb4-458d-9098-cd2c7f6ad081\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/98506df2-56de-406a-9674-8916a2391d0a?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '1494' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5c5890a1-26e7-46b7-b264-6b807e7deccf + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/98506df2-56de-406a-9674-8916a2391d0a?api-version=2021-03-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 39c9236e-b81d-4940-a0d4-48b82662714e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"9bace41d-62f8-4955-9594-d85c72c929ee\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"e2d54dc1-1853-40cc-9a72-2f6286561697\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"cli-subnet-000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"9bace41d-62f8-4955-9594-d85c72c929ee\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1496' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:13 GMT + etag: + - W/"9bace41d-62f8-4955-9594-d85c72c929ee" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 84cff6f0-cb4e-493b-8a5f-cb35bb0aab73 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"9bace41d-62f8-4955-9594-d85c72c929ee\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '639' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:15 GMT + etag: + - W/"9bace41d-62f8-4955-9594-d85c72c929ee" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e5100207-d540-41bc-81d8-1d4a3b2632d3 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004", + "name": "cli-subnet-000004", "type": "Microsoft.Network/virtualNetworks/subnets", + "properties": {"addressPrefix": "10.0.0.0/24", "delegations": [], "privateEndpointNetworkPolicies": + "Disabled", "privateLinkServiceNetworkPolicies": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + Content-Length: + - '504' + Content-Type: + - application/json + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"14f57a35-6854-4f51-b9b6-f4b0983f923b\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b22f75b0-f642-4d3d-8352-306c82e05ba4?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '639' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 601035d7-aa2d-4c82-993f-6519a515a672 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b22f75b0-f642-4d3d-8352-306c82e05ba4?api-version=2021-03-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2dee9a67-edfb-4cf9-ae60-463d4bd9e7b1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"3b4edfd7-563d-487c-985e-318431f2edce\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '640' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:48:22 GMT + etag: + - W/"3b4edfd7-563d-487c-985e-318431f2edce" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4294fcb4-ad8a-45ed-a8d6-b8acedd63a1e + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004", + "properties": {"privateEndpointNetworkPolicies": "Enabled", "privateLinkServiceNetworkPolicies": + "Enabled"}}, "privateLinkServiceConnections": [{"name": "cli-pec-000006", "properties": + {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002", + "groupIds": ["redisCache"]}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + Content-Length: + - '761' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"cd0a5753-fa3e-4bc8-bb3c-df11653eb3c2\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"32fd0307-1d5f-41f5-b2b7-b773722dfb96\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"cd0a5753-fa3e-4bc8-bb3c-df11653eb3c2\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002\",\r\n + \ \"groupIds\": [\r\n \"redisCache\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.0b46900e-8df4-4cd7-9236-867ae8050511\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9829baec-5c6b-4553-8874-8e1b09cb529f?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '2353' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5498a251-d23b-410e-ace8-087b6f757e51 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9829baec-5c6b-4553-8874-8e1b09cb529f?api-version=2021-03-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7cc51d80-66cf-4799-94ad-10fa3bc85e69 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9829baec-5c6b-4553-8874-8e1b09cb529f?api-version=2021-03-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8b98b3bd-eebc-4a8d-8715-dd6ba2c52278 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9829baec-5c6b-4553-8874-8e1b09cb529f?api-version=2021-03-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2f4614d9-5704-4784-aa56-76dbb6696e89 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"2307929c-3d03-43d0-86f4-0a8c283befb2\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"32fd0307-1d5f-41f5-b2b7-b773722dfb96\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"2307929c-3d03-43d0-86f4-0a8c283befb2\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002\",\r\n + \ \"groupIds\": [\r\n \"redisCache\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.0b46900e-8df4-4cd7-9236-867ae8050511\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": + \"cli-test-acfr-pe-000002.redis.cache.windows.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.4\"\r\n ]\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2510' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:41 GMT + etag: + - W/"2307929c-3d03-43d0-86f4-0a8c283befb2" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - bc12999a-74ca-48e6-b6f7-1f050e5dc4e2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"2307929c-3d03-43d0-86f4-0a8c283befb2\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"32fd0307-1d5f-41f5-b2b7-b773722dfb96\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"2307929c-3d03-43d0-86f4-0a8c283befb2\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002\",\r\n + \ \"groupIds\": [\r\n \"redisCache\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.0b46900e-8df4-4cd7-9236-867ae8050511\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": + \"cli-test-acfr-pe-000002.redis.cache.windows.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.4\"\r\n ]\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2510' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:44 GMT + etag: + - W/"2307929c-3d03-43d0-86f4-0a8c283befb2" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c15f8458-27ed-48b8-9c41-d780b5fa11be + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-network/19.1.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"2307929c-3d03-43d0-86f4-0a8c283befb2\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"32fd0307-1d5f-41f5-b2b7-b773722dfb96\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"2307929c-3d03-43d0-86f4-0a8c283befb2\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002\",\r\n + \ \"groupIds\": [\r\n \"redisCache\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.0b46900e-8df4-4cd7-9236-867ae8050511\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": + \"cli-test-acfr-pe-000002.redis.cache.windows.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.4\"\r\n ]\r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2510' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:48 GMT + etag: + - W/"2307929c-3d03-43d0-86f4-0a8c283befb2" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1dea3c93-bf51-484a-b496-10b1980debdd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - redis show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.29.1 azsdk-python-mgmt-redis/13.0.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/redis/cli-test-acfr-pe-000002?api-version=2020-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002","location":"West + US","name":"cli-test-acfr-pe-000002","type":"Microsoft.Cache/Redis","tags":{},"properties":{"provisioningState":"Succeeded","redisVersion":"4.0.14","sku":{"name":"Standard","family":"C","capacity":1},"enableNonSslPort":false,"instances":[{"sslPort":15000,"isMaster":true,"isPrimary":true},{"sslPort":15001,"isMaster":false,"isPrimary":false}],"publicNetworkAccess":"Disabled","tenantSettings":{},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a","properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}],"redisConfiguration":{"maxclients":"1000","maxmemory-reserved":"50","maxfragmentationmemory-reserved":"50","maxmemory-delta":"50"},"accessKeys":null,"hostName":"cli-test-acfr-pe-000002.redis.cache.windows.net","port":6379,"sslPort":6380,"linkedServers":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '1593' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '886' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:32:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '886' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:32:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a", + "name": "cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a", "type": "Microsoft.Cache/Redis/privateEndpointConnections", + "properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"}, + "privateLinkServiceConnectionState": {"status": "Rejected", "description": null, + "actionsRequired": "None"}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + Content-Length: + - '803' + Content-Type: + - application/json + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US/asyncOperations/3bb684ea-0f3a-4cb0-a251-cc7d3f8adece?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 15:32:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US/asyncOperations/3bb684ea-0f3a-4cb0-a251-cc7d3f8adece?api-version=2019-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '886' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:33:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:33:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:33:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:33:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:33:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:34:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:34:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:34:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:34:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:34:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:35:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:35:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:35:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:35:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:35:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:36:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:36:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:36:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:36:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n + \ \"name\": \"cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a\",\r\n \"type\": + \"Microsoft.Cache/Redis/privateEndpointConnections\",\r\n \"properties\": + {\r\n \"privateEndpoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\"\r\n + \ },\r\n \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Rejected\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json + date: + - Fri, 22 Oct 2021 15:36:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id -y + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_pe000001/providers/Microsoft.Cache/Redis/cli-test-acfr-pe-000002/privateEndpointConnections/cli-pe-000005.030b0853-665c-4761-ac80-2069f6f9375a?api-version=2020-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 22 Oct 2021 15:37:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-rp-server-mvid: + - 7f0866bf-4a40-4916-a4ac-78e2c7101218 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_acfr.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_acfr.yaml new file mode 100644 index 00000000000..d9bdff6b488 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_acfr.yaml @@ -0,0 +1,153 @@ +interactions: +- request: + body: '{"location": "eastus", "properties": {"tenantSettings": {}, "sku": {"name": + "Basic", "family": "c", "capacity": 0}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + ParameterSetName: + - --location --name --resource-group --sku --vm-size + User-Agent: + - AZURECLI/2.29.1 azsdk-python-mgmt-redis/13.0.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/redis/cli-test-acfr-plr000002?api-version=2020-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/Redis/cli-test-acfr-plr000002","location":"East + US","name":"cli-test-acfr-plr000002","type":"Microsoft.Cache/Redis","tags":{},"properties":{"provisioningState":"Creating","redisVersion":"4.0.14","sku":{"name":"Basic","family":"C","capacity":0},"enableNonSslPort":false,"instances":[{"sslPort":15000,"isMaster":false,"isPrimary":false}],"publicNetworkAccess":"Enabled","tenantSettings":{},"redisConfiguration":{"maxclients":"256","maxmemory-reserved":"2","maxfragmentationmemory-reserved":"12","maxmemory-delta":"2"},"accessKeys":{"primaryKey":"","secondaryKey":""},"hostName":"cli-test-acfr-plr000002.redis.cache.windows.net","port":6379,"sslPort":6380,"linkedServers":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '952' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:47:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/redis/cli-test-acfr-plr000002?api-version=2020-12-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-rp-server-mvid: + - e9eff5e9-9e25-4d27-a011-698050231f0f + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - --location --name --resource-group --sku --vm-size + User-Agent: + - AZURECLI/2.29.1 azsdk-python-mgmt-redis/13.0.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/redis/cli-test-acfr-plr000002?api-version=2020-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/Redis/cli-test-acfr-plr000002","location":"East + US","name":"cli-test-acfr-plr000002","type":"Microsoft.Cache/Redis","tags":{},"properties":{"provisioningState":"Creating","redisVersion":"4.0.14","sku":{"name":"Basic","family":"C","capacity":0},"enableNonSslPort":false,"instances":[{"sslPort":15000,"isMaster":false,"isPrimary":false}],"publicNetworkAccess":"Enabled","tenantSettings":{},"redisConfiguration":{"maxclients":"256","maxmemory-reserved":"2","maxfragmentationmemory-reserved":"12","maxmemory-delta":"2"},"accessKeys":null,"hostName":"cli-test-acfr-plr000002.redis.cache.windows.net","port":6379,"sslPort":6380,"linkedServers":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '833' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:47:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - e9eff5e9-9e25-4d27-a011-698050231f0f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-link-resource list + Connection: + - keep-alive + ParameterSetName: + - --name -g --type + User-Agent: + - python/3.9.7 (Windows-10-10.0.19043-SP0) AZURECLI/2.29.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/Redis/cli-test-acfr-plr000002/privateLinkResources?api-version=2020-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acfr_plr000001/providers/Microsoft.Cache/redis/cli-test-acfr-plr000002/privateLinkResources/redisCache","name":"redisCache","type":"Microsoft.Cache/Redis/privateLinkResources","properties":{"groupId":"redisCache","requiredMembers":["redisCache"],"requiredZoneNames":["privatelink.redis.cache.windows.net"]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '459' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 22 Oct 2021 14:47:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - e9eff5e9-9e25-4d27-a011-698050231f0f + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py index 141b31daeb8..f755df307b1 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py @@ -2409,5 +2409,76 @@ def test_private_link_resource_hdinsight(self, resource_group): self.cmd('network private-endpoint-connection show --id {private-endpoint-connection-id}', expect_failure=True) +class NetworkPrivateLinkAzureCacheforRedisScenarioTest(ScenarioTest): + @ResourceGroupPreparer(name_prefix='cli_test_acfr_plr') + def test_private_link_resource_acfr(self, resource_group): + self.kwargs.update({ + 'cache_name': self.create_random_name('cli-test-acfr-plr', 28), + 'loc': 'eastus' + }) + self.cmd('az redis create --location {loc} --name {cache_name} --resource-group {rg} --sku Basic --vm-size c0') + + self.cmd('network private-link-resource list --name {cache_name} -g {rg} --type Microsoft.Cache/Redis' , checks=[ + self.check('length(@)', 1)]) ##### + + @ResourceGroupPreparer(name_prefix='cli_test_acfr_pe') + def test_private_endpoint_connection_acfr(self,resource_group): + self.kwargs.update({ + 'cache_name': self.create_random_name('cli-test-acfr-pe-', 28), + 'loc': 'westus', + 'vnet': self.create_random_name('cli-vnet-', 24), + 'subnet': self.create_random_name('cli-subnet-', 24), + 'pe': self.create_random_name('cli-pe-', 24), + 'pe_connection': self.create_random_name('cli-pec-', 24) + }) + + # Prepare Redis Cache and network + cache = self.cmd('az redis create --location {loc} --name {cache_name} --resource-group {rg} --sku Standard --vm-size c1').get_output_in_json() + self.kwargs['acfr_id'] = cache['id'] + + self.cmd('az network vnet create -n {vnet} -g {rg} -l {loc} --subnet-name {subnet}', + checks=self.check('length(newVNet.subnets)', 1)) + + self.cmd('az network vnet subnet update -n {subnet} --vnet-name {vnet} -g {rg} ' + '--disable-private-endpoint-network-policies true', + checks=self.check('privateEndpointNetworkPolicies', 'Disabled')) + + # Waiting for Cache creation + if self.is_live: + time.sleep(25 * 60) + + # Creating Private Endpoint + pe = self.cmd('az network private-endpoint create -g {rg} -n {pe} --vnet-name {vnet} --subnet {subnet} -l {loc} --connection-name {pe_connection} --private-connection-resource-id {acfr_id} --group-id redisCache').get_output_in_json() + self.kwargs['pe_id'] = pe['id'] + self.kwargs['pe_name'] = self.kwargs['pe_id'].split('/')[-1] + + # Test get details of private endpoint + results = self.kwargs['pe_id'].split('/') + self.kwargs['pec_id'] = '/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/privateEndpoints/{2}'.format(results[2], results[4], results[-1]) + + self.cmd('az network private-endpoint show --id {pec_id}', + checks=self.check('id', '{pec_id}')) + + self.cmd( + 'az network private-endpoint show --resource-group {rg} --name {pe_name}', + checks=self.check('name', '{pe_name}')) + + + # Show the connection at azure cache for redis + + redis = self.cmd('az redis show -n {cache_name} -g {rg}').get_output_in_json() + self.assertIn('privateEndpointConnections', redis) + self.assertEqual(len(redis['privateEndpointConnections']), 1) + self.assertEqual(redis['privateEndpointConnections'][0]['privateLinkServiceConnectionState']['status'], 'Approved') + + self.kwargs['red_pec_id'] = redis['privateEndpointConnections'][0]['id'] + + self.cmd('az network private-endpoint-connection show --id {red_pec_id}', checks=self.check('id', '{red_pec_id}')) + + self.cmd('az network private-endpoint-connection reject --id {red_pec_id}', checks=[self.check('properties.privateLinkServiceConnectionState.status', 'Rejected')]) + + # Test delete + self.cmd('az network private-endpoint-connection delete --id {red_pec_id} -y') + if __name__ == '__main__': unittest.main() diff --git a/src/azure-cli/azure/cli/command_modules/redis/_help.py b/src/azure-cli/azure/cli/command_modules/redis/_help.py index 09b894b0bc4..4a00f19273c 100644 --- a/src/azure-cli/azure/cli/command_modules/redis/_help.py +++ b/src/azure-cli/azure/cli/command_modules/redis/_help.py @@ -19,6 +19,15 @@ - name: Create new Redis Cache instance. (autogenerated) text: az redis create --location westus2 --name MyRedisCache --resource-group MyResourceGroup --sku Basic --vm-size c0 crafted: true + - name: Configure the multiple zones for new Premium Azure Cache for Redis + text: az redis create --location westus2 --name MyRedisCache --resource-group MyResourceGroup --sku Premium --vm-size p1 --zones 1 2 + crafted: true + - name: Create a Premium Azure Cache for Redis with clustering enabled + text: az redis create --location westus2 --name MyRedisCache --resource-group MyResourceGroup --sku Premium --vm-size p1 --shard-count 2 + crafted: true + - name: Deploying a Premium Azure Cache for Redis inside an existing Azure Virtual Network + text: az redis create --location westus2 --name MyRedisCache --resource-group MyResourceGroup --sku Premium --vm-size p1 --subnet-id "/subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers/Microsoft.{Network|ClassicNetwork}/virtualNetworks/vnet1/subnets/subnet1" + crafted: true """ helps['redis export'] = """ @@ -85,6 +94,28 @@ type: command short-summary: Update a Redis cache. long-summary: Scale or update settings of a Redis cache. +examples: + - name: Update the maxmemory-policy for your Azure Cache for Redis named MyRedisCache + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "redisConfiguration.maxmemory-policy"="allkeys-lru" + crafted: true + - name: Disable the RDB back up data persistence for Premium Azure Cache for Redis + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "redisConfiguration.rdb-backup-enabled"="false" + crafted: true + - name: Configure the RDB back up enabled data persistence for already created Premium Azure Cache for Redis + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "redisConfiguration.rdb-storage-connection-string"="DefaultEndpointsProtocol=https;AccountName=mystorageaccount;AccountKey=myAccountKey;EndpointSuffix=core.windows.net" "redisConfiguration.rdb-backup-enabled"="true" "redisConfiguration.rdb-backup-frequency"="15" "redisConfiguration.rdb-backup-max-snapshot-count"="1" + crafted: true + - name: Scale an Azure Cache for Redis Instance - Update to different size (An example to scale from c0 to c1). + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "sku.capacity"="2" + crafted: true + - name: Scale an Azure Cache for Redis Instance - Update to different tier (From Basic to Standard or Standard to Premium). + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "sku.name"="Premium" "sku.capacity"="1" "sku.family"="P" + crafted: true + - name: Scale an Azure Cache for Redis Instance - Enable Clustering. + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "shardCount"="1" + crafted: true + - name: Scale an Azure Cache for Redis Instance in/out using Redis Cluster. + text: az redis update --name MyRedisCache --resource-group MyResourceGroup --set "shardCount"="2" + crafted: true """ helps['redis force-reboot'] = """