Easy Migration from AzureTable to Serverless CosmosDB Account
I really enjoy using CosmoStore. Thanks for creating it!
Apologies if anyone has already shared this or I missed documentation.
I was running into some of the size limitations using AzureTable storage and decided to give the new AzureTable and Serverless/Consumption plan support for CosmosDB.
https://learn.microsoft.com/en-us/azure/cosmos-db/table/introduction
It was easy enough to update the existing TableStorage configuration to make that happen. After creating your CosmosDB AzureTable instance (see the link above for that)...
let sovereignCloud =
CosmoStore.TableStorage.SovereignCloud (acctName, acctKey, "cosmos.azure.com")
let config =
{
TableName = tableName
Account = sovereignCloud
}
config
|> CosmoStore.TableStorage.EventStore.getEventStore
SovereignCloud to the rescue! Someone was forward-thinking there!
Thanks!
Hi Dave, thanks for that! Feel free to send PR to have this a part of official README 😄