Skip to main content

Posts

Showing posts with the label Blob

Get Notified via Azure Event Grid whenever Azure Blob is updated

In this article, we will learn how to get notification whenever something is changed in Azure Storage . Let’s say, we want our application to get notified whenever any new file is uploaded to the blob or say any file is deleted from the blob. How can we do that? Before directly jumping into the solution, let’s have all the major pieces listed here which will contribute towards this. Azure Storage: We need an Azure storage wherein we will be uploading our blog objects, i.e. image files. Azure Event Grid: Next we need is Azure Event Grid. It is a routing service provided by Microsoft and the best part about this service is, it has built-in support for events coming from storage blobs and resource groups. So, we need to create a subscription which will tell what event and which specific topic we are interested in. Endpoint: Lastly, we need an endpoint, which will receive notifications. So, it could be Function App, Logic App, or any custom application which is hosted somewhere a

Utilizing Azure Blob and WebJob to Convert Excel Files to Flat File Format

I believe, there are many articles or blogs already available which speaks about how to convert an excel file to a comma separated file using C# and in all the cases (which I referred), excel is read from a hard drive of a local machine and csv file is saved back to the same hard drive. But in spite of knowing this, again, I’m going to draft another post. Wondering, why? Well, this post is going to be slightly different in the way files are being read and saved back. Below are the major offerings of this post:     What if we have many excel files to convert but disk is not having enough space to save all of those? Same is the case for conversion output too. What if we don’t have permission to save our converted files on to the local machine? How can we run this conversion utility using web jobs? In order to address the above challenges, we can utilize Azure capabilities wherein we will do everything on the fly without utilizing disk space as a storage for our files. Let