Skip to content

Particular/NServiceBus.Persistence.AzureTable

Repository files navigation

NServiceBus.Persistence.AzureTable

NServiceBus.Persistence.AzureTable is the official NServiceBus persistence implementation for Azure Table Storage and Azure Cosmos DB Table API.

It is part of the Particular Service Platform, which includes NServiceBus and tools to build, monitor, and debug distributed systems.

See the Azure Table Persistence documentation for more details on how to use it.

Running tests locally

The tests require a connection to Azure Table Storage and Cosmos Table API. We recommend creating an Azure Storage account and an Azure Cosmos DB instance using the Table API rather than using the Azure Storage or the Cosmos DB Emulator.

After creating the Azure Storage account, locate the connection string for the account. You can find it by selecting the storage account in the Azure portal, selecting "Access keys", then clicking "View connection string" next to the key you wish to use. (Click the ellipsis next to the key if you don't see the option to view the connection string.)

Copy the connection string into an environment variable called AzureTable_StorageTable_ConnectionString.

After creating the Azure Cosmos DB Table API account, locate the connection string for the account. You can find it by selecting the Azure Cosmos DB instance, selecting "Connection String", then copy the primary or secondary connection string.

Copy the connection string into an environment variable called AzureTable_CosmosDB_ConnectionString.