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 ce0fb2f8d9f..7bd48573106 100644 --- a/src/azure-cli/azure/cli/command_modules/redis/_help.py +++ b/src/azure-cli/azure/cli/command_modules/redis/_help.py @@ -111,6 +111,11 @@ long-summary: Lists details about all caches within current Subscription or provided Resource Group. """ +helps['redis flush'] = """ +type: command +short-summary: Deletes all of the keys in a cache. +""" + helps['redis patch-schedule'] = """ type: group short-summary: Manage Redis patch schedules. diff --git a/src/azure-cli/azure/cli/command_modules/redis/commands.py b/src/azure-cli/azure/cli/command_modules/redis/commands.py index 5d5173ed56b..1a17a749ff1 100644 --- a/src/azure-cli/azure/cli/command_modules/redis/commands.py +++ b/src/azure-cli/azure/cli/command_modules/redis/commands.py @@ -51,6 +51,7 @@ def load_command_table(self, _): g.custom_command('regenerate-keys', 'cli_redis_regenerate_key') g.show_command('show', 'get') g.generic_update_command('update', setter_name='custom_update_setter', setter_type=redis_operations_custom, custom_func_name='cli_redis_update') + g.command('flush', 'begin_flush_cache', confirmation=True) with self.command_group('redis patch-schedule', redis_patch, custom_command_type=redis_patch_schedules_custom) as g: g.custom_command('create', 'cli_redis_patch_schedule_create_or_update') diff --git a/src/azure-cli/azure/cli/command_modules/redis/tests/latest/recordings/test_redis_cache_flush.yaml b/src/azure-cli/azure/cli/command_modules/redis/tests/latest/recordings/test_redis_cache_flush.yaml new file mode 100644 index 00000000000..db6c1cb4ee4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/redis/tests/latest/recordings/test_redis_cache_flush.yaml @@ -0,0 +1,1258 @@ +interactions: +- request: + body: '{"location": "WestUS2", "properties": {"redisConfiguration": {}, "tenantSettings": + {}, "sku": {"name": "Premium", "family": "p", "capacity": 1}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + Content-Length: + - '145' + Content-Type: + - application/json + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_redis000001/providers/Microsoft.Cache/redis/cliredis000002?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_redis000001/providers/Microsoft.Cache/Redis/cliredis000002\",\r\n + \ \"location\": \"West US 2\",\r\n \"name\": \"cliredis000002\",\r\n \"type\": + \"Microsoft.Cache/Redis\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Creating\",\r\n \"redisVersion\": \"6.0\",\r\n \"sku\": {\r\n \"name\": + \"Premium\",\r\n \"family\": \"P\",\r\n \"capacity\": 1\r\n },\r\n + \ \"enableNonSslPort\": false,\r\n \"instances\": [\r\n {\r\n \"sslPort\": + 15000,\r\n \"isMaster\": false,\r\n \"isPrimary\": false\r\n + \ },\r\n {\r\n \"sslPort\": 15001,\r\n \"isMaster\": + false,\r\n \"isPrimary\": false\r\n }\r\n ],\r\n \"publicNetworkAccess\": + \"Enabled\",\r\n \"tenantSettings\": {},\r\n \"redisConfiguration\": + {\r\n \"maxclients\": \"7500\",\r\n \"maxmemory-reserved\": \"642\",\r\n + \ \"maxfragmentationmemory-reserved\": \"642\",\r\n \"maxmemory-delta\": + \"642\"\r\n },\r\n \"accessKeys\": {\r\n \"primaryKey\": \"Fy10itpWrdjY9QmbEJ39LW5XjcJos64LnAzCaOJWQDo=\",\r\n + \ \"secondaryKey\": \"maWtJri5bxQWQKW7cLV7In2w6z4oZovJjAzCaJOJ0F4=\"\r\n + \ },\r\n \"hostName\": \"cliredis000002.redis.cache.windows.net\",\r\n + \ \"port\": 6379,\r\n \"sslPort\": 6380,\r\n \"linkedServers\": [],\r\n + \ \"updateChannel\": \"Stable\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '1277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 18 Oct 2023 19:32:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_redis000001/providers/Microsoft.Cache/redis/cliredis000002?api-version=2023-08-01 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 43E12194BE7C4A88B3574A2BEBAA20BD Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:32:20Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:32:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 61EB9DF42C9B4B7E98E5F1BC47231E1E Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:32:21Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:32:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 2B3A362DC96E40ED9F39BA3A5517DCB4 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:32:51Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:33:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: CC23F2530A0446ECB2331527122471D4 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:33:21Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:33:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 40F6CD5FC40C4F46A46500AC9ACA667C Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:33:51Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:34:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: F3A8266523BE4F269D9F2937004A3B9B Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:34:22Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:34:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: FCC80E8F8BF84F3087D5ED4B82B0D9DC Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:34:52Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:35:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 0F6B7745D5B84EB0A40BDDE3865D2B94 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:35:22Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:35:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 40572A41F87545CB8E5252836B7D48C1 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:35:52Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:36:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 537A76DBF3704DA198591B147668D73B Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:36:22Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:36:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7BD464E4970B4BAD8FD8E0BD442E7EC2 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:36:52Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:37:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E34957955D3F44D3AEEABBB687D7EF4A Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:37:22Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:37:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 235697D2D5D94188A9EC9F0C5A6E398F Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:37:52Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:38:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5338E58DF3284BFD8DE0567A64A23698 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:38:22Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:38:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B95FF0341F57439D8EE1C4905F10F21B Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:38:52Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:39:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 087049FB237745C78971347AF117084B Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:39:22Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:39:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8A0215E10A8648919EEC614C4504D8AE Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:39:53Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"InProgress\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '355' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:40:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A9CEBF7F1D19408D94162A30BE2AB029 Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:40:23Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"name\": + \"4dff3238-4363-44aa-9429-9fd97e11429a\",\r\n \"status\": \"Succeeded\",\r\n + \ \"startTime\": null,\r\n \"endTime\": null,\r\n \"percentComplete\": null,\r\n + \ \"properties\": null,\r\n \"error\": null\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/asyncOperations/4dff3238-4363-44aa-9429-9fd97e11429a?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '354' + content-type: + - application/json + date: + - Wed, 18 Oct 2023 19:40:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C4414AE115E141888C87AE1FC449F98D Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:40:53Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --sku --vm-size + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_redis000001/providers/Microsoft.Cache/redis/cliredis000002?api-version=2023-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_redis000001/providers/Microsoft.Cache/Redis/cliredis000002","location":"West + US 2","name":"cliredis000002","type":"Microsoft.Cache/Redis","tags":{},"properties":{"provisioningState":"Succeeded","redisVersion":"6.0","sku":{"name":"Premium","family":"P","capacity":1},"enableNonSslPort":false,"instances":[{"sslPort":15000,"isMaster":true,"isPrimary":true},{"sslPort":15001,"isMaster":false,"isPrimary":false}],"publicNetworkAccess":"Enabled","tenantSettings":{},"redisConfiguration":{"maxclients":"7500","maxmemory-reserved":"642","maxfragmentationmemory-reserved":"642","maxmemory-delta":"642"},"accessKeys":null,"hostName":"cliredis000002.redis.cache.windows.net","port":6379,"sslPort":6380,"linkedServers":[],"updateChannel":"Stable"}}' + headers: + cache-control: + - no-cache + content-length: + - '820' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 18 Oct 2023 19:40:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1BF87840B58F4D0499FF5256066044BD Ref B: CO6AA3150218023 Ref C: 2023-10-18T19:40:53Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - redis flush + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_redis000001/providers/Microsoft.Cache/redis/cliredis000002/flush?api-version=2023-08-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 18 Oct 2023 19:40:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 4F398FCFF3D540859E9C9D6857FDAC6B Ref B: CO6AA3150219053 Ref C: 2023-10-18T19:40:53Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis flush + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f\",\r\n \"name\": + \"7d9d1456-721e-4b14-9578-5b325af21c2f\",\r\n \"status\": \"InProgress\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + cache-control: + - no-cache + content-length: + - '245' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 18 Oct 2023 19:40:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6511602C40F14183805324C733CDA594 Ref B: CO6AA3150219053 Ref C: 2023-10-18T19:40:54Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis flush + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f\",\r\n \"name\": + \"7d9d1456-721e-4b14-9578-5b325af21c2f\",\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '244' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 18 Oct 2023 19:41:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 332CFC27FE884963878BC483E2709BC8 Ref B: CO6AA3150219053 Ref C: 2023-10-18T19:41:24Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - redis flush + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.53.0 azsdk-python-mgmt-redis/14.3.0 Python/3.10.12 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West%20US%202/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f?api-version=2023-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/West + US 2/operationresults/7d9d1456-721e-4b14-9578-5b325af21c2f\",\r\n \"name\": + \"7d9d1456-721e-4b14-9578-5b325af21c2f\",\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '244' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 18 Oct 2023 19:41:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 0C88C99ECA53446D95C7C17EDB9437AA Ref B: CO6AA3150219053 Ref C: 2023-10-18T19:41:24Z' + x-rp-server-mvid: + - 7018fa08-1d27-4b37-9579-89853b092fbf + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/redis/tests/latest/test_redis_scenario.py b/src/azure-cli/azure/cli/command_modules/redis/tests/latest/test_redis_scenario.py index 7b803d2b8b8..0465092375e 100644 --- a/src/azure-cli/azure/cli/command_modules/redis/tests/latest/test_redis_scenario.py +++ b/src/azure-cli/azure/cli/command_modules/redis/tests/latest/test_redis_scenario.py @@ -448,3 +448,16 @@ def test_redis_cache_update(self, resource_group): if self.is_live: time.sleep(5*60) self.cmd('az redis create -n {name} -g {rg} -l {location} --sku {sku} --vm-size {size}') + + @ResourceGroupPreparer(name_prefix='cli_test_redis') + def test_redis_cache_flush(self, resource_group): + self.kwargs = { + 'rg': resource_group, + 'name': self.create_random_name(prefix=name_prefix, length=24), + 'location': location, + 'sku': premium_sku, + 'size': premium_size + } + self.cmd('az redis create -n {name} -g {rg} -l {location} --sku {sku} --vm-size {size}') + result = self.cmd('az redis flush -g {rg} -n {name} -y').get_output_in_json() + assert result['status'] == 'Succeeded' \ No newline at end of file