Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.39 KB

powershell-blob.md

File metadata and controls

33 lines (22 loc) · 1.39 KB
title description ms.devlang ms.custom ms.topic ms.date
Azure PowerShell - subscribe to Blob storage account
This article provides a sample Azure PowerShell script that shows how to subscribe to Event Grid events for a Blob Storage account.
powershell
devx-track-azurepowershell
sample
09/15/2021

Subscribe to events for a Blob storage account with PowerShell

This script creates an Event Grid subscription to the events for a Blob storage account.

[!INCLUDE updated-for-az]

[!INCLUDE quickstarts-free-trial-note]

Sample script - stable

[!code-powershellmain]

Script explanation

This script uses the following command to create the event subscription. Each command in the table links to command-specific documentation.

Command Notes
New-AzEventGridSubscription Create an Event Grid subscription.

Next steps