Skip to content
Get Started for Free

Resource Manager

Azure Resource Manager (ARM) is the deployment and management layer for Azure resources. It lets you create, query, and organize resources through a consistent control-plane API. ARM is commonly used to manage resource groups, deployments, and provider registrations.

LocalStack for Azure allows you to build and test Resource Manager workflows in your local environment. The supported APIs are available on our API Coverage section, which provides information on the extent of Resource Manager’s integration with LocalStack.

This guide is designed for users new to Resource Manager and assumes basic knowledge of the Azure CLI and our azlocal wrapper script.

Start your LocalStack container using your preferred method. Then start CLI interception:

Terminal window
azlocal start_interception

Create a resource group:

Terminal window
az group create \
--name rg-resources-demo \
--location westeurope
Output
{
"name": "rg-resources-demo",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-resources-demo",
"location": "westeurope",
"properties": {
"provisioningState": "Succeeded"
},
"..."
}

Get the resource group details:

Terminal window
az group show --name rg-resources-demo
Output
{
"name": "rg-resources-demo",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-resources-demo",
"location": "westeurope",
"properties": {
"provisioningState": "Succeeded"
},
"..."
}

List matching resource groups:

Terminal window
az group list --query "[?name=='rg-resources-demo']"
Output
[
{
"name": "rg-resources-demo",
"location": "westeurope",
"..."
}
]

Get a specific provider:

Terminal window
az provider show --namespace Microsoft.Resources
Output
{
"namespace": "Microsoft.Resources",
"registrationState": "Registered",
"registrationPolicy": "RegistrationFree",
"resourceTypes": [
{
"resourceType": "resourceGroups",
"apiVersions": ["2023-07-01", "..."],
"..."
}
...
],
"..."
}

List provider registration state:

Terminal window
az provider list --query "[?namespace=='Microsoft.Resources'].{namespace:namespace,registrationState:registrationState}"
Output
[
{
"namespace": "Microsoft.Resources",
"registrationState": "Registered"
}
]
OperationImplemented
Page 1 of 0
Was this page helpful?