ComeçarComece de graça

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.

Este exercício faz parte do curso

Develop for Azure Storage

Ver curso

Instruções do exercício

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.

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício