CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Develop for Azure Storage

Afficher le cours

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.

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice