Microsoft Azure · Arazzo Workflow

Microsoft Azure Resource Group Lifecycle Tag and Inventory

Version 1.0.0

List resource groups, get the first, patch governance tags onto it, then inventory its resources.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub API ManagementCloudCloud ComputingEnterpriseInfrastructure-as-a-ServicePlatform-as-a-ServiceT1ArazzoWorkflows

Provider

microsoft-azure

Workflows

resource-group-lifecycle-tag-and-inventory
Discover, tag, and inventory the first resource group in a subscription.
Lists resource groups, gets the first, patches governance tags, then lists the resources within it.
4 steps inputs: accessToken, apiVersion, subscriptionId, tags outputs: resourceGroupId, resources, updatedTags
1
listResourceGroups
List the resource groups so the first one can be selected for the governance pass.
2
getResourceGroup
Get the selected resource group to confirm it exists before tagging it.
3
tagResourceGroup
Patch the governance tags onto the selected resource group.
4
inventoryResources
List the resources in the now-tagged resource group to complete the pass.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Azure Resource Group Lifecycle Tag and Inventory
  summary: List resource groups, get the first, patch governance tags onto it, then inventory its resources.
  description: >-
    An end-to-end governance pass over the first resource group in a subscription.
    The workflow lists the resource groups, gets the first one, patches a set of
    governance tags onto it, and then lists the resources inside it so the caller
    has both the updated group and its contents in a single run. It chains the
    list, get, patch, and resource-list operations across the resource group and
    resource scopes. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-600.50
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-600.50
      capability_name: IT Infrastructure Management
      spec: microsoft-azure-resources-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: resourceGroupsApi
  url: ../openapi/microsoft-azure-resource-groups-api-openapi.yml
  type: openapi
- name: resourcesApi
  url: ../openapi/microsoft-azure-resources-api-openapi.yml
  type: openapi
workflows:
- workflowId: resource-group-lifecycle-tag-and-inventory
  summary: Discover, tag, and inventory the first resource group in a subscription.
  description: >-
    Lists resource groups, gets the first, patches governance tags, then lists
    the resources within it.
  inputs:
    type: object
    required:
    - accessToken
    - subscriptionId
    - tags
    properties:
      accessToken:
        type: string
        description: An Azure Resource Manager OAuth2 bearer access token.
      subscriptionId:
        type: string
        description: The ID of the target subscription.
      tags:
        type: object
        description: The governance tag map to apply to the resource group.
      apiVersion:
        type: string
        description: The Azure Resource Manager API version.
        default: '2024-03-01'
  steps:
  - stepId: listResourceGroups
    description: List the resource groups so the first one can be selected for the governance pass.
    operationId: ResourceGroups_List
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstResourceGroupName: $response.body#/value/0/name
  - stepId: getResourceGroup
    description: Get the selected resource group to confirm it exists before tagging it.
    operationId: ResourceGroups_Get
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $steps.listResourceGroups.outputs.firstResourceGroupName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      resourceGroupId: $response.body#/id
  - stepId: tagResourceGroup
    description: Patch the governance tags onto the selected resource group.
    operationId: ResourceGroups_Update
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $steps.listResourceGroups.outputs.firstResourceGroupName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    requestBody:
      contentType: application/json
      payload:
        tags: $inputs.tags
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      updatedTags: $response.body#/tags
  - stepId: inventoryResources
    description: List the resources in the now-tagged resource group to complete the pass.
    operationId: Resources_ListByResourceGroup
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $steps.listResourceGroups.outputs.firstResourceGroupName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      resources: $response.body#/value
  outputs:
    resourceGroupId: $steps.getResourceGroup.outputs.resourceGroupId
    updatedTags: $steps.tagResourceGroup.outputs.updatedTags
    resources: $steps.inventoryResources.outputs.resources

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-azure-resource-group-lifecycle-tag-and-inventory-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.