Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy Migration from AzureTable to Serverless CosmosDB Account #56

Open
DaveJohnson8080 opened this issue Oct 31, 2023 · 1 comment
Open

Comments

@DaveJohnson8080
Copy link

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!

@Dzoukr
Copy link
Owner

Dzoukr commented Nov 1, 2023

Hi Dave, thanks for that! Feel free to send PR to have this a part of official README 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants