I'm looking for a way to provision infrastructure and test applications locally, including identity and outage scenarios. How close can an emulator get to Azure, and what are the limitations?
Can I emulate Azure and Entra locally for development?
Answers
Locally is one option in public preview. It aims to emulate Azure and Entra on a developer machine, with infrastructure provisioning, application data plane emulators, identities, role-based access control, policy integration and outage simulation.
It supports tools including the Azure CLI, Terraform, Pulumi, OpenTofu, Bicep and ARM templates. The proposed pricing includes a free tier and paid plans, though the source doesn't give pricing details.
Reply to this answer
For an existing landing zone, the key question is resource coverage. You can try deploying existing Terraform or Bicep configurations, but that depends on the resource types you use being supported. Check things like virtual WAN, firewall and policy resources before assuming the whole setup will work.
The emulator uses its own subscription and tenant IDs, credentials and locations. Expect to adjust configuration that assumes the real Azure values.
Reply to this answer
Watch out for VM tests. The described approach represents VMs as containers rather than running full virtual machines. That can help check whether a configuration provisions the expected VM resources, but it isn't the same as testing a real Azure VM or its underlying infrastructure.
Reply to this answer
Add your answer
Answers are reviewed before publication.
6w~gimbalnotch_527:
That distinction matters for tests that rely on VM-specific behavior or Azure's metadata service. Those would need separate verification.