Quickstart
Introduction
Section titled “Introduction”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.
Prerequisites
Section titled “Prerequisites”Instructions
Section titled “Instructions”Before you begin, make sure that the Emulator is running, see the installation instructions.
Set up the az CLI integration
Section titled “Set up the az CLI integration”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 azureCreate a resource group
Section titled “Create a resource group”To create a resource group, prefix the same az command you would normally run with lstk az:
$ lstk az group create --name myResourceGroup --location westeuropeThe following output would be displayed:
{ "id": "/subscriptions/some-generated-id/resourceGroups/myResourceGroup", "location": "westeurope", "managedBy": null, "name": "myResourceGroup", "properties": { "provisioningState": "Succeeded" }, "tags": null, "type": "Microsoft.Resources/resourceGroups"}Check & list resource groups
Section titled “Check & list resource groups”To check the resource group details, run the following command:
$ lstk az group show --name myResourceGroupTo list all the resource groups, run the following command:
$ lstk az group listDelete the resource group
Section titled “Delete the resource group”To delete the resource group, run the following command:
$ lstk az group delete --name myResourceGroup --yes