Integrating Azure Storage Blob With MuleSoft

  1. Writing Log files on the Azure Storage.
  2. Storing data for backup and restore, disaster recovery, and archiving.
  3. Storing data for analysis by an on-premises or Azure-hosted service.
  4. Saving images or documents directly to a browser.
  1. List Blobs in Container
  2. Download Blob
  3. Delete Blob
  4. Upload Blob
  1. Microsoft Azure Account( Enterprise or Student Version)
  2. Microsoft Azure Storage Connector.
  3. Anypoint Studio.
  1. Goto Home-> Resource Groups -> Create.
  2. Name the Resource Group and select the region.
  3. Click Review and Create.
  1. Goto Home -> Storage Accounts -> Create
  2. In the Project Details, provide the Resource Group(created in the previous step) for the Storage Account.
  3. In the Instance Details, provide the Storage Account Name, Region, Performance(Standard or Premium) and Data Storage Redundancy (Geo Redundant Storage is used in our use-case).
  4. Review + create.
  1. Goto Storage Accounts -> (your_storage_account) -> Containers -> Create.
  2. Provide the Name and Select Public Access Level as Blob.
  3. Create
  1. Download the Azure Storage Connector from Exchange.
  2. Note the Storage Account Name and Connection String( in Storage Account -> Access Keys -> Connection String).
  1. Create a scheduler based application.
  2. It gets the list of all the blobs from a container using List blobs in the container connector.
  3. If there exists any blob, it downloads it and deletes it using Download blob and Delete blob connectors respectively, otherwise.
  4. It creates a new blob within the specified container using the Upload blob connector.

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store