Loading...

Common Scenarios When Exporting/Importing Azure Redis Cache

Common Scenarios When Exporting/Importing Azure Redis Cache

Purpose

There are several reasons where users may fail to export / import Redis Cache data. To ease the troubleshooting process, this blog will follow the subsequent structure to introduce some possible causes and troubleshooting methods in detail.

  • Scenarios
  • Symptoms
  • Possible Reasons
  • Mitigation Methods

 

Possible causes when failed to export Redis Cache

Scenario 1: failed to export Redis Cache with “AuthorizationFailure” – (HTTP 403 at Redis Cache RP log)

Symptoms:

Error message: “The request to export data from cache ‘testexport’ failed with status ‘error’ and error ‘AuthorizationFailure: this request is not authorized to perform this operation’
Request ID: 05e9db08-301e-0068-3d64-a569cd000000
Time: 2022-08-01T05:09:34.7925950Z”. 

 

Ryan_Chen_0-1660709117334.png

 

Possible Reasons: target storage account has enabled firewall setting.

Mitigation Methods:

  • Option 1: disable storage firewall setting

  • Option 2: enable managed identity for existing Redis Cache: Enable Managed Identity . Choose either type of managed identity below to achieve the same goal (Note: managed identity functionality is only available in the Premium tier)

Scenario 2: conflict error when exporting Redis Cache – HTTP 409

Symptoms:

Error Message: "(Conflict) The resource '/subscription/xxx/resourceGroups/xxx/providers/Microsoft.Cache/Redis/testexport' is busy processing a previous update request or is undergoing system maintenance. As such, it is currently unable to accept the update request. Please try again later.
RequestID: 8e2a97e0-0c22-48c5-9e9a-b9554f61f83e"

Ryan_Chen_0-1660709537808.png

 

Possible Reasons: multiple requests were sent to the same Redis Cache concurrently. The previous export job has not completed either due to long running job needs more time or stuck in the backend for some reasons.

Mitigation Methods:

  • Option 1: retry after a while.
  • Option 2: If the previous request stuck for long time and retry does not resolve the issue, open a support ticket for further investigation.

 

Scenario 3: BlobTypeNotSupported: Page blob is not supported for this account type.

Symptom:

Error message: “The request to export data from cache 'textexport' failed with status error and error 'BlobTypeNotSupported: Page blob is not supported for this account type.
RequestID: cd355d17-701e-007c-58e7-a66d23000000
Time:2022-08-03T03:17:31.8342062Z'”. 

 

Ryan_Chen_1-1660709195123.png

 

Possible Reasons: exporting Redis Cache works only with RDB files stored as page blobs and target storage account does not support page bob - Supported blob type when export Redis.

Mitigation Methods: use premium page blob account or normal standard general-purpose V2 account.

 

Possible causes when failed to import Redis Cache

Scenario 1: The request is not authorized to perform this operation – HTTP 403

Symptom:

Usually the Authorization Failure during import process consists of IP authorization(from local machine to target storage account) and authorization error(from target storage account to Redis Cache).

  • Picture 1 - "The request is not authorized to perform this operation"

Ryan_Chen_2-1660709235043.png

 

  • Picture 2 - "The request to import data into cache 'testexport' failed with status 'error' and error"

Ryan_Chen_3-1660709273128.png

 

Possible Reasons: target storage account has enabled firewall setting.

Mitigation Methods:

  • Option 1: disable target storage account firewall setting.

  • Option 2: Alternatively, whitelist the IP address and make use of managed identity to import Redis.
    a. Go to Azure Portal and choose target storage account. From Networking panel, whitelist desired IP address.

Ryan_Chen_4-1660709331600.png

 

 

         b. Enable managed identity to import data when firewall setting is switched on (refer to the document for more details:  Enable Managed Identity

 

Scenario 2: conflict error when importing Redis Cache – HTTP 409

Symptoms:

Error Message: "(Conflict) The resource '/subscription/xxx/resourceGroups/xxx/providers/Microsoft.Cache/Redis/testexport' is busy processing a previous update request or is undergoing system maintenance. As such, it is currently unable to accept the update request. Please try again later.
RequestID: 9bda6421-f232-4a1d-8e03-02a17ee6659f"

Ryan_Chen_1-1660709589256.png

 

Possible Reasons: multiple requests were sent to the same Redis Cache concurrently. The previous import job has not completed either due to long running job needs more time or stuck in the backend for some reasons.

Mitigation Methods:

  • Option 1: retry after a while.
  • Option 2: If the previous request stuck for long time and retry does not resolve the issue, open a support ticket for further investigation.

Published on:

Learn more
Need help with this product?

We can help you with Common Scenarios When Exporting/Importing Azure Redis Cache

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

Azure PaaS Blog articles
Azure PaaS Blog articles

Azure PaaS Blog articles

Share post:

Related posts

Azure Storage - TLS 1.0 and 1.1 retirement

Overview TLS 1.0 and 1.1 retirement on Azure Storage was previously announced for Nov 1st, 2024, and it was postponed recently to 1 year later...

1 year ago

Efficient Management of Append and Page Blobs Using Azure Storage Actions

  Overview In Azure Storage, Blob Lifecycle Management (BLM) allows you to automate the management of your data based on rules defined by...

1 year ago

[Azure AI Search] Internal Server Error when creating CMK encrypted objects

Scenario Customers follow the Microsoft doc to create CMK encrypted objects (data source, index etc.), but get the 500 Internal Serv...

1 year ago

Optimizing Azure Table Storage: Automated Data Cleanup using a PowerShell script with Azure Automate

Scenario This blog’s aim is to manage Table Storage data efficiently. Imagine you have a large Azure Table Storage that accumulates logs from ...

1 year ago

Optimizing Azure Table Storage: Automated Data Clean-up using a PowerShell script with Azure Automat

Scenario This blog’s aim is to manage Table Storage data efficiently. Imagine you have a large Azure Table Storage that accumulates logs from ...

1 year ago

Restoring Soft-Deleted Blobs with multithreading in Azure Storage Using C#

Blob soft delete is an essential feature that safeguards your data against accidental deletions or overwrites. By retaining deleted data for a...

1 year ago

Performing simple Azure Table Storage REST API operations using curl command.

The blog provides guidance to perform simple Table Storage REST API operations such as Create table, Delete Table, Insert entity, Delete entit...

2 years ago

Bulk delete all the old jobs from the batch account

Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also overrides the retention period for Task dat...

2 years ago

Utilizing Azure Storage and Runbooks for scheduled automated backups of Azure SQL Databases

In this article, we are going to provide detailed steps to create a scheduled Azure SQL Database backup to storage account using automation. T...

2 years ago

[Azure Service Bus] JMS messages getting dead-lettered

The article discusses a problem where numerous messages end up in the dead letter queue (DLQ) when the JMS service bus consumer connects to th...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.