Azure Storage emulator for development in Windows 10

I want to be able to run locally my back end apps that use Azure while I’m working on it.

In the past I used the Azure Storage Emulator but is no longer being supported, Azurite is the new version and in this post I will show you how to install it and start using it.

Install

There are several ways to install Azurite in your development machine like a Visual Studio Code extension, NPM or Docker, we are going to use Docker (If you don’t have it installed, check my post Installing Docker for Windows).

Open a powershell command prompt and use the following command to pull the latest Azurite docker image

docker pull mcr.microsoft.com/azure-storage/azurite

Run

Run Azurite with the following powershell commands

md c:\azurite

docker run -p 10000:10000 -p 10001:10001 -v c:/azurite:/data mcr.microsoft.com/azure-storage/azurite

Now Azurite is ready to be used and you can use your Azure Storage Explorer to access your data or develop your apps.

References

Azurite

Installing Docker for Windows 10

Docker Desktop for Windows is Docker for Windows 10, you can get the installer from here.

I started the installer, and continue using the default options.

After the installation is completed (reboot required), I needed to download and install the WSL 2 Linux Kernel and reboot again.

One of the advantages of using WSL is that we can now run Hyper-V (I use Hyper-V for android emulators) side by side with Linux containers, this was not possible before when Docker needed to use VirtualBox.

At this point Docker is installed and we can follow the provided tutorial.

To check that everything is working as expected, we can open a powershell window and execute the docker -v command.

Also in the context menu from the docker taskbar icon, we can switch to Windows Containers

And that is all! I hope this was useful and let me know what do you think in the comments!