Implement Azure Queue Storage Queues with the Python SDK
Use the Azure Storage Python SDK to create queues, send and receive messages, manage visibility and TTL, and handle poison messages.

Lab overview
Azure Queue Storage provides a simple, cost-effective messaging solution for decoupling application components in distributed systems. Unlike more feature-rich brokers such as Azure Service Bus, Queue Storage is built directly into Azure Storage Accounts, making it lightweight and accessible for scenarios where reliable, asynchronous message passing is needed without the overhead of advanced routing or ordering guarantees.
In this lab, you will use the Azure Storage Python SDK to programmatically create queues, send and receive messages, peek at messages without removing them, control message visibility timeouts and TTL, and implement a poison message handling pattern that moves repeatedly-failed messages to a dead-letter queue for manual review.
Objectives
Upon completing this intermediate level lab, you will be able to:
- Create and configure Azure Queue Storage queues using the Python SDK
- Send messages to a queue with custom time-to-live (TTL) settings
- Receive, peek, and delete messages from a queue programmatically
- Configure message visibility timeouts to control processing windows
- Implement a poison message handler that detects failed messages by dequeue count and moves them to a dead-letter queue
Who is this lab for?
This lab is designed for:
- Developers preparing for the AZ-204 certification who need hands-on experience with Queue Storage messaging
- Cloud engineers building distributed applications that require asynchronous message passing
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed, not multiple choice, real-world proficiency.
More labs like this
Managing Azure Blob Storage Operations with Azure CLI
Learn how to perform essential Azure Blob Storage operations using Azure CLI commands. Practice uploading, downloading, listing, and deleting blobs with batch operations.
Convert Text to Speech and Speech to Text with Azure AI Speech SDK in Python
Learn to implement text-to-speech synthesis and speech recognition using Azure AI Speech SDK in Python for voice-enabled applications.
Analyze Text Using Azure AI Language SDK in Python
Learn to extract key phrases, recognize entities, and detect PII in text using Azure AI Language SDK in Python for document analysis and privacy compliance.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Logging into Azure CLI
- 02
Create a Queue and Send Messages with the Python SDK
1 automated check
- 03
Receive Peek and Delete Queue Messages
1 automated check
- 04
Manage Visibility Timeout and Message TTL Settings
1 automated check
- 05
Implement a Poison Message Handling Pattern
1 automated check
Skills validated
Not the lab you were looking for?
Browse 200+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.