In this video, discover how existing code for Azure storage tables can be re-used when connecting to Cosmos DB table APIs without modification.
- [Instructor] For a brief introduction…to the CosmosDB table API,…we will copy and paste some of our existing code…that works against Azure Storage tables…and reuse it as is,…against the CosmosDB table API.…And so, returning to our Visual Studio project,…right click, add class,…Test_Tables_50 for CosmosDB.…Will add the attributes for our Unit Test.…
Ctrl+. to add the using clause.…Make the class public,…add a Test Method,…being async method,…returning Task.…Ctrl+. to add the using for System.Threading.Tasks…and this is Test_51_CosmosDB.…Now let's return to the Azure portal…and copy and paste the connection string.…Here I have my learn azure CosmosDB resource open.…
I will go to Quick Start…and copy and paste from here.…Note I'm not copy and pasting all the lines.…Will use the existing using statements from…the Azure Storage tables part of the library.…So I'll paste from here.…Note for CloudStorageAccount I'll hit Ctrl+.…Microsoft.WindowsAzure.Storage, good enough.…And for CloudTableClient just make it var for now.…
Looking for study partners?Join the AZ-203 Azure Exam study group
Azure Table storage tables allow developers to store structured NoSQL data in the cloud. In this installment of the Azure Storage for Developers series, learn how to most effectively leverage this cost-effective service. Instructor Anton Delsink explains how to create a storage account and take steps to configure security, including how to use shared access signatures and encrypt data at rest. He then introduces Azure Table storage, explaining how to create and query tables. Finally, he goes over Cosmos DB, a multi-modal database offering in Microsoft Azure that includes an API compatible with Azure Storage tables.
- Creating a Blob storage account
- Stored access policies for granting privileges
- Shared access signatures
- Encrypting data at rest
- Connecting to and creating a table
- Creating entities
- Querying tables
- Performance constraints of Azure Storage tables