When it comes to native ways of monitoring what is stored inside an Azure Blob storage, there is no tool that allows you to do this. However, you may still want to implement that kind of functionality—either to introduce some way of validating what is actually stored or to understand the actual data volume and inflow.
In this section, we will use Azure Event Grid with Azure Functions, written in PowerShell, to discuss the possibilities and show you the easiest way to achieve this functionality. To get started, we will need the following services deployed to a resource group:
- Azure storage with a selected kind of Blob storage
- Azure Event Grid integrated with the Storage account (see Chapter 2, Managing Azure Resources, for reference)
To deploy the Blob storage, use the following command:
az storage account create -g <rg-name>-n <account-name> --kind BlobStorage --access-tier <Hot|Cold>
It is important to...