Skip to content
Get Started for Free

Quickstart

This guide explains how to set up the Azure emulator and interact with it using the az CLI. In this guide, you will run some basic Azure CLI commands to manage resource groups in an local Azure development environment without connecting to the real cloud services.

Before you begin, make sure that the Emulator is running, see the installation instructions.

lstk az proxies your host az CLI against the Azure emulator, using an isolated configuration directory so your global ~/.azure setup is left untouched. Run the following command once to prepare it:

$ lstk setup azure

To create a resource group, prefix the same az command you would normally run with lstk az:

$ lstk az group create --name myResourceGroup --location westeurope

The following output would be displayed:

Terminal window
{
"id": "/subscriptions/some-generated-id/resourceGroups/myResourceGroup",
"location": "westeurope",
"managedBy": null,
"name": "myResourceGroup",
"properties": {
"provisioningState": "Succeeded"
},
"tags": null,
"type": "Microsoft.Resources/resourceGroups"
}

To check the resource group details, run the following command:

$ lstk az group show --name myResourceGroup

To list all the resource groups, run the following command:

$ lstk az group list

To delete the resource group, run the following command:

$ lstk az group delete --name myResourceGroup --yes
Was this page helpful?