Skip to content
Get Started for Free

Installation

LocalStack for Azure provides multiple installation paths depending on your development environment and requirements. We recommend a CLI-based installation for the most consistent local startup experience.

Use lstk to install, authenticate, and start LocalStack for Azure with minimal setup.

LocalStack for Azure features require an Auth Token to activate your running instance. lstk handles authentication through a browser-based login flow, while Docker and CI workflows can use LOCALSTACK_AUTH_TOKEN.

Alternatively, you can set up LocalStack directly using the LocalStack for Azure Docker image, localstack/localstack-azure, with the docker CLI or Docker Compose.

lstk is a lightweight CLI for LocalStack that manages the authentication and container lifecycle for LocalStack for AWS, LocalStack for Azure, and LocalStack for Snowflake.

Requirement: You must have a working Docker installation before proceeding.

Terminal window
brew install localstack/tap/lstk

Before your first start, let lstk verify that your machine and network can run LocalStack:

Terminal window
lstk doctor
Output
✔︎ All checks passed

lstk doctor checks DNS and HTTPS access to the LocalStack API, corporate proxies and TLS interception, the container engine, and available memory and disk. Every failed check comes with a concrete fix, so you can resolve blockers before they surface as confusing startup errors. See lstk Doctor for the full list of checks.

Terminal window
lstk start

The first execution initiates a browser-based login flow and, in an interactive terminal, prompts you to pick which emulator to run — choose z for Azure. Your choice is written to config.toml and used as the default on subsequent runs. Subsequent starts use credentials stored in your system keyring.

Terminal window
lstk update

For more details, see the lstk documentation.

Already using lstk with a different default emulator?

Section titled “Already using lstk with a different default emulator?”

If your global config.toml already defaults to a different emulator (for example, AWS), target Azure for a specific project instead by creating a project-local .lstk/config.toml:

.lstk/config.toml
[[containers]]
type = "azure"
port = "4566"

Use these methods when you need explicit container configuration or want to run LocalStack alongside other services. For everyday local development, lstk is usually simpler.

To start LocalStack for Azure using the docker CLI, execute the following command:

$ docker run \
--rm -it \
-p 4566:4566 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.localstack/volume:/var/lib/localstack \
-e LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?} \
localstack/localstack-azure

Create a docker-compose.yml file with the specified content:

version: "3.8"
services:
localstack:
container_name: "localstack-main"
image: localstack/localstack-azure
ports:
- "127.0.0.1:4566:4566"
environment:
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?}
volumes:
- "./volume:/var/lib/localstack"

Start LocalStack for Azure with the following command:

$ docker-compose up

To update the Azure Docker container, pull the latest image and restart the container.

The LocalStack for Azure Docker image is published with two tags, latest and dev, which every new build of the emulator updates together, so they always point to the same image. The image has no version tags, so you can’t pin a release by tag. To keep using a build you’ve tested, copy the image to your own registry, as described in How do I pin a specific LocalStack version?. For what changed in each month, see the Changelog.

Was this page helpful?