Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.95 KB

event-grid-cli-blob.md

File metadata and controls

47 lines (32 loc) · 1.95 KB
title description services documentationcenter author ms.service ms.devlang ms.topic ms.tgt_pltfrm ms.workload ms.date ms.author
Azure CLI script sample - Subscribe to Blob storage account | Microsoft Docs
Azure CLI Script Sample - Subscribe to Blob storage account
event-grid
na
tfitzmac
event-grid
azurecli
sample
na
na
11/02/2018
tomfitz

Subscribe to events for a Blob storage account with Azure CLI

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

[!INCLUDE sample-cli-install]

[!INCLUDE quickstarts-free-trial-note]

The preview sample script requires the Event Grid extension. To install, run az extension add --name eventgrid.

Sample script - stable

[!code-azureclimain]

Sample script - preview extension

[!code-azureclimain]

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
az eventgrid event-subscription create Create an Event Grid subscription.
az eventgrid event-subscription create - extension version Create an Event Grid subscription.

Next steps