Skip to content

Easy Migration from AzureTable to Serverless CosmosDB Account #56

@DaveJohnson8080

Description

@DaveJohnson8080

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions