Azurite Blob Service

To develop and run a Storage function locally, the Azurite Blob Service needs to be set up. This is achieved by using the Azurite Blob Service button in the bottom toolbar, Microsoft Azure Storage Explorer, and the projec'ts local.settings.json file.

How to set up the Azurite Blob Service

  1. Start the Azurite Blob Service by clicking the [Azurite Blob Service] button in the bottom toolbar.
  2. Start the windows application "Microsoft Azure Storage Explorer". Note that the Azurite Blob Service needs to be started first; otherwise, it's not possible to access the necessary blob storage.
  3. In the left side menu tree in Microsoft Azure Storage Explorer, find the "Emulator/Blob Container" node under "Storage Accounts".
  4. Right click the "Blob Containers" node and select "Create Blob Container".
  5. Give the new blob container the name 'default'.
  6. Create a folder in the local file system and refer that folder in the VSCode "Azurite: Location" setting. This persists the data when changing between different projects.

    Done. You can use the Microsoft Azure Storage Explorer to browse your storage by navigating to the 'default' blob storage.

Note: In the local.settings.json file of the service, there is property named "BAAS_STORAGE_SOURCE_NAME" that holds the name of the local Blob Container, "default" in this case. If the name of the Blob Container has been changed in Microsoft Azure Storage Explorer, the "BAAS_STORAGE_SOURCE_NAME" property has to be updated to match the new name.