Get startedGet started for free

Insert and query data in Table storage

Cipher Coffee wants to store simple, structured data for its loyalty program without the overhead of a full database. Your task is to use Azure Table Storage to create a table, insert sample loyalty entities, and run a query to retrieve customer records efficiently. You will insert entities using different PartitionKeys and RowKeys, then query by PartitionKey to validate fast lookups.

This exercise is part of the course

Develop for Azure Storage

View Course

Exercise instructions

In your Storage account, open Data storageTables and create a table named "LoyaltyProfiles".,Insert two entities that share PartitionKey "CustomerA" and use distinct RowKey values "1001" and "1002".,Insert a third entity using PartitionKey "VIP" and RowKey "2001".,Query the table with the filter PartitionKey eq 'CustomerA' to return only the two "CustomerA" entities. Screenshot showing the Azure Portal *Tables* view with a table named LoyaltyProfiles, the Add entity panel, and a query input filtering by PartitionKey.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise