Skip to main content

List Resource Groups

Retrieve all resource groups across subscriptions

Response

value
array
Array of resource group objects
subscriptionId
string
Azure subscription ID
resourceGroup
string
Resource group name
location
string
Azure region location

Error Responses

error
string
Error message
Status Codes:
  • 401 - Unauthorized (missing access_token in session)
  • 500 - Internal server error

Create Resource Group

Create a new resource group

Request Body

subscriptionId
string
required
Azure subscription ID where the resource group will be created
rgName
string
required
Name for the new resource group
location
string
required
Azure region where the resource group will be located (e.g., “westeurope”, “eastus”)

Response

message
string
Success message with resource group name and location

Error Responses

error
string
Error message
Status Codes:
  • 200 - Resource group created successfully
  • 400 - Missing required parameters
  • 401 - Unauthorized
  • 500 - Internal server error

Get Resource Group Contents

List all resources within a resource group

Query Parameters

subscriptionId
string
required
Azure subscription ID
rgName
string
required
Resource group name

Response

value
array
Array of resource objects
name
string
Resource name
type
string
Azure resource type (e.g., “Microsoft.Compute/virtualMachines”)
location
string
Resource location
id
string
Full Azure resource ID

Error Responses

Status Codes:
  • 400 - Missing required query parameters
  • 401 - Unauthorized
  • 500 - Internal server error

Delete Resource Group

Delete a resource group and all its resources
This operation is irreversible and will delete all resources within the resource group.

Request Body

subscriptionId
string
required
Azure subscription ID
rgName
string
required
Resource group name to delete

Response

message
string
Confirmation message with the deleted resource group name

Error Responses

Status Codes:
  • 200 - Resource group deleted successfully
  • 400 - Missing required parameters
  • 401 - Unauthorized
  • 500 - Internal server error

Build docs developers (and LLMs) love