Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon
Labs

Manage Events with Azure Event Grid and Azure CLI

In this lab, using both the Azure portal and Azure CLI in Cloud Shell, you will create an event-driven solution, with a topic on a storage account, then the subscription with a storage queue as the event handler. To test your new solution, you will upload at least one file to a Blob storage container and then check for a message in a storage queue. Students with experience in Azure CLI will have the best opportunity to complete this lab without assistance, but the lab guide and solution videos are available to guide any motivated student to successful completion.

Azure icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 45m
Published
Clock icon Jun 13, 2023

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Housekeeping

    1. Open an incognito or in-private window and log in to the Azure portal using the user name and password provided in the lab environment.
    2. From within the portal, initiate the Cloud Shell to select Bash (versus PowerShell) and set up with new backing storage — do not use the existing storage account deployed into the lab environment. You will need both storage accounts to complete the lab.
  2. Challenge

    Create a System Topic Using Azure CLI

    1. From the Azure portal, open Cloud Shell. If you need assistance, see the prior objective and associated Housekeeping video.
    2. Use Azure CLI to create an Event Grid system topic, using any name you like, on the storage account already deployed into the lab environment. The correct storage account has a name that starts with pslab, followed by a few random characters. Do not use the storage account you created as backing for Cloud Storage.
  3. Challenge

    Create a Subscription on the System Topic

    Using the Azure portal:

    1. Navigate to the storage account already deployed into the lab environment. The correct storage account has a name that starts with pslab, followed by a few random characters. Do not use the storage account you created as backing for Cloud Storage.

      Tip: Check that a queue has already been created for you. If it has not, then create a queue, using any name you like.

    2. Create a subscription on the system topic you created in the previous objective, with the following properties:
      • Events should get pushed to your destination whenever a blob is created or deleted.
      • The destination (or endpoint) is the storage queue that you just confirmed or created in the pslab... storage account.
      • Leave any other properties not mentioned as their defaults.

      Note: Security constraints in the lab environment will not allow you to create a subscription using Azure CLI.

  4. Challenge

    Test the Topic and Subscription Data Flow

    1. Upload a blob to a container in the storage account associated with the system topic created in the prior objective.
    2. Confirm that a PutBlob message has arrived in the Azure Storage queue associated with the subscription created in the prior objective.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans