Azure Redis cache import

%3CLINGO-SUB%20id%3D%22lingo-sub-2367036%22%20slang%3D%22en-US%22%3EAzure%20Redis%20cache%20import%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367036%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20to%20import%20.csv%20file%20to%20Azure%20Redis%20cache%20manually%20through%20portal%20or%20powershell%3F%3CBR%20%2F%3EI%20am%20getting%20below%20exception%20when%20I%20tries%20to%20import.%20looks%20like%20its%20expecting%20.rdb%20file%20which%20I%20am%20not%20aware%20of.%3C%2FP%3E%3CP%3EImport-AzRedisCache%3A%20One%20of%20the%20SAS%20URIs%20provided%20could%20not%20be%20used%20for%20the%20following%20reason%3A%20The%20data%20contained%20within%20the%20selected%20blob%20is%20not%20in%20a%20format%20supported%20by%20the%20Redis%20Import%20operation.%20Please%20select%20a%20blob%20in%20the%20Redis%20RDB%20file%20format.%20As%20an%20example%2C%20a%20blob%20that%20was%20generated%20using%20the%20Azure%20Redis%20Export%20feature%20would%20bein%20the%20correct%20format.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2372067%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Redis%20cache%20import%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2372067%22%20slang%3D%22en-US%22%3EHi%20in%20the%20Powershell%20instructions%20you%20can%20find%20this%20%3A%20%22%20Format%20for%20the%20blob.%20Currently%20%22rdb%22%20is%20the%20only%20supported%2C%20with%20other%20formats%20expected%20in%20the%20future.%22%20So%20i%20guess%20you%20cannot%20unfortunately%20use%20another%20format.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Ffr-fr%2Fazure%2Fazure-cache-for-redis%2Fcache-how-to-manage-redis-cache-powershell%23to-import-an-azure-cache-for-redis%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Ffr-fr%2Fazure%2Fazure-cache-for-redis%2Fcache-how-to-manage-redis-cache-powershell%23to-import-an-azure-cache-for-redis%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

How to import .csv file to Azure Redis cache manually through portal or powershell?
I am getting below exception when I tries to import. looks like its expecting .rdb file which I am not aware of.

Import-AzRedisCache: One of the SAS URIs provided could not be used for the following reason: The data contained within the selected blob is not in a format supported by the Redis Import operation. Please select a blob in the Redis RDB file format. As an example, a blob that was generated using the Azure Redis Export feature would bein the correct format.

2 Replies
Hi in the Powershell instructions you can find this : " Format for the blob. Currently "rdb" is the only supported, with other formats expected in the future." So i guess you cannot unfortunately use another format.

https://docs.microsoft.com/fr-fr/azure/azure-cache-for-redis/cache-how-to-manage-redis-cache-powersh...

@ibrahimambodji 

I need to upload half million records. I have also created a web application to convert csv data to json and used StringSet() to import data under Redis cache. For 1000 records it was working fine but for half million records it was giving below error

"An unknown error occurred when writing the message" for StackExchange package