# Azure Resource Manager

> Manage Azure subscriptions: create and delete resource groups, find resources and tag them, deploy and preview ARM templates, register resource providers and read the activity log. Start a workflow when a resource group or resource appears, a deployment succeeds or fails, or the activity log records an event.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/azure-resource-manager

## Actions

### Cancel deployment

Stop a deployment that is still running. Resources it already made stay. A deployment that has finished is left as it is.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.
- Deployment (`deployment_name`, text, required): The deployment. Pick one, or give its name from an earlier step.

**Outputs**

- `canceled` (true/false): False if it had already finished
- `deployment` (object): The deployment

**Example output**

```json
{
  "canceled": true,
  "deployment": {
    "correlation_id": "22222222-2222-2222-2222-222222222222",
    "duration": "PT1M3S",
    "error_code": "",
    "error_message": "",
    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Resources/deployments/lodol-20261118-090000",
    "mode": "Incremental",
    "name": "lodol-20261118-090000",
    "output_resources": [
      "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore"
    ],
    "outputs": {
      "storageEndpoint": "https://mystore.blob.core.windows.net/"
    },
    "resource_group": "my-rg",
    "state": "Canceled",
    "timestamp": "2026-11-18T09:01:03Z"
  }
}
```

### Create resource group

Create a resource group in a region. If one of that name is already in that region, it is returned unchanged.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Name (`name`, text, required): Up to 90 letters, digits, underscores, hyphens, periods and parentheses, such as web-prod.
- Region (`location`, text, required): Where the group keeps its information, such as East US.
- Tags (`tags`, object): Tags as name: value, such as {"env": "prod"}.

**Outputs**

- `created` (true/false): False if it already existed and was left as it was
- `resource_group` (object): The resource group

**Example output**

```json
{
  "created": true,
  "resource_group": {
    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg",
    "location": "eastus",
    "managed_by": "",
    "name": "my-rg",
    "provisioning_state": "Succeeded",
    "tags": {
      "env": "prod"
    }
  }
}
```

### Delete resource group

Delete a resource group and everything in it. Azure carries on in the background, which can take several minutes. This can't be undone.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.
- Succeed if it's already gone (`if_missing_ok`, true/false): When on, the step succeeds if there is no such group. Default: `false`.

**Outputs**

- `resource_group` (text): The group's name
- `status` (text): Deleting, Deleted, or Not found if it was already gone

**Example output**

```json
{
  "resource_group": "my-rg",
  "status": "Deleting"
}
```

### Deploy template

Deploy an ARM template to a resource group and, by default, wait for it to finish. The step fails if the deployment fails, with Azure's reason.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.
- Template (`template`, object): The ARM template, as JSON: its $schema, contentVersion, parameters and resources. Leave empty when you give a template link.
- Template link (`template_url`, text): An https:// address Azure can download the template from, instead of pasting it.
- Parameters (`parameters`, object): The template's parameters as name: value, such as {"storageName": "mystore"}. A whole parameters file works too.
- Mode (`mode`, text): Add and update only leaves other resources in the group alone. Match the template exactly deletes any resource in the group the template doesn't list. One of: `Incremental` (Add and update only), `Complete` (Match the template exactly (deletes what it leaves out)). Default: `Incremental`.
- Deployment name (`deployment_name`, text): A name for this deployment in the group's history. Leave empty for one made from today's date and time.
- Wait until it finishes (`wait`, true/false): When on, the step waits up to four minutes for the result. A longer deployment carries on in Azure. Default: `true`.

**Outputs**

- `deployment` (object): The deployment
- `finished` (true/false): False if it was still running when the step stopped waiting

**Example output**

```json
{
  "deployment": {
    "correlation_id": "22222222-2222-2222-2222-222222222222",
    "duration": "PT1M3S",
    "error_code": "",
    "error_message": "",
    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Resources/deployments/lodol-20261118-090000",
    "mode": "Incremental",
    "name": "lodol-20261118-090000",
    "output_resources": [
      "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore"
    ],
    "outputs": {
      "storageEndpoint": "https://mystore.blob.core.windows.net/"
    },
    "resource_group": "my-rg",
    "state": "Succeeded",
    "timestamp": "2026-11-18T09:01:03Z"
  },
  "finished": true
}
```

### Get deployment

One deployment's state, outputs, the resources it made and, if it failed, why.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.
- Deployment (`deployment_name`, text, required): The deployment. Pick one, or give its name from an earlier step.

**Outputs**

- `deployment` (object): The deployment

**Example output**

```json
{
  "deployment": {
    "correlation_id": "22222222-2222-2222-2222-222222222222",
    "duration": "PT1M3S",
    "error_code": "",
    "error_message": "",
    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Resources/deployments/lodol-20261118-090000",
    "mode": "Incremental",
    "name": "lodol-20261118-090000",
    "output_resources": [
      "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore"
    ],
    "outputs": {
      "storageEndpoint": "https://mystore.blob.core.windows.net/"
    },
    "resource_group": "my-rg",
    "state": "Succeeded",
    "timestamp": "2026-11-18T09:01:03Z"
  }
}
```

### Get resource

Everything Azure says about one resource, given its ID, including the settings particular to its type.

**Inputs**

- Resource (`resource_id`, text, required): The resource's ID, starting /subscriptions/, from 'List resources' or the resource's Properties page in the portal.

**Outputs**

- `api_version` (text): The API version it was read with
- `properties` (object): The settings particular to its type, as Azure gives them
- `resource` (object): The resource

**Example output**

```json
{
  "api_version": "2025-01-01",
  "properties": {
    "accessTier": "Hot",
    "provisioningState": "Succeeded"
  },
  "resource": {
    "changed_time": "2026-11-02T09:00:00Z",
    "created_time": "2026-11-01T09:00:00Z",
    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore",
    "kind": "StorageV2",
    "location": "eastus",
    "name": "mystore",
    "provisioning_state": "Succeeded",
    "resource_group": "my-rg",
    "sku": "Standard_LRS",
    "tags": {
      "env": "prod"
    },
    "type": "Microsoft.Storage/storageAccounts"
  }
}
```

### Get resource group

One resource group's region, state and tags.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.

**Outputs**

- `resource_group` (object): The resource group

**Example output**

```json
{
  "resource_group": {
    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg",
    "location": "eastus",
    "managed_by": "",
    "name": "my-rg",
    "provisioning_state": "Succeeded",
    "tags": {
      "env": "prod"
    }
  }
}
```

### List activity log events

Who changed what in a subscription and when, from its activity log (the last 90 days), filtered by resource group, level, status or operation.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- From (`start`, date and time): Events from this time. Defaults to 24 hours before 'To'.
- To (`end`, date and time): Events up to this time. Defaults to now.
- Resource group (`resource_group`, text): Only this resource group. Leave empty for the whole subscription.
- Levels (`levels`, list): Only events at these levels. Leave empty for all. One or more of: `Critical`, `Error`, `Warning`, `Informational`, `Verbose`.
- Status (`status`, text): Only events with this status. One of: `any` (Any status), `Succeeded`, `Failed`, `Started`, `Accepted`. Default: `any`.
- Operation contains (`operation_contains`, text): Only operations containing this text, such as delete or virtualMachines.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `100`.

**Outputs**

- `count` (number): How many were returned
- `end` (text): The end of the window read (ISO 8601)
- `events` (list): The events, newest first
- `start` (text): The start of the window read (ISO 8601)
- `truncated` (true/false): True if there were more than 'Maximum results'

**Example output**

```json
{
  "count": 1,
  "end": "2026-11-18T09:00:00Z",
  "events": [
    {
      "caller": "admin@contoso.com",
      "category": "Administrative",
      "correlation_id": "22222222-2222-2222-2222-222222222222",
      "description": "",
      "event_id": "44ade6b4-3813-45e6-ae27-7420a95fa2f8",
      "level": "Informational",
      "operation": "Microsoft.Storage/storageAccounts/write",
      "operation_name": "Create/Update Storage Account",
      "resource_group": "my-rg",
      "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore",
      "resource_provider": "Microsoft.Storage",
      "status": "Succeeded",
      "sub_status": "OK (HTTP Status Code: 200)",
      "time": "2026-11-18T09:00:00Z"
    }
  ],
  "start": "2026-11-17T09:00:00Z",
  "truncated": false
}
```

### List deployments

The template deployments of a resource group, newest first.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.
- State (`state`, text): Only deployments in this state. One of: `any` (Any state), `Succeeded`, `Failed`, `Running`, `Accepted`, `Canceled`. Default: `any`.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `100`.

**Outputs**

- `count` (number): How many were returned
- `deployments` (list): The deployments
- `truncated` (true/false): True if there were more than 'Maximum results'

**Example output**

```json
{
  "count": 1,
  "deployments": [
    {
      "correlation_id": "22222222-2222-2222-2222-222222222222",
      "duration": "PT1M3S",
      "error_code": "",
      "error_message": "",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Resources/deployments/lodol-20261118-090000",
      "mode": "Incremental",
      "name": "lodol-20261118-090000",
      "output_resources": [
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore"
      ],
      "outputs": {
        "storageEndpoint": "https://mystore.blob.core.windows.net/"
      },
      "resource_group": "my-rg",
      "state": "Succeeded",
      "timestamp": "2026-11-18T09:01:03Z"
    }
  ],
  "truncated": false
}
```

### List regions

The Azure regions a subscription can use, with the name other steps take, such as eastus.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.

**Outputs**

- `count` (number): How many were returned
- `locations` (list): The regions

**Example output**

```json
{
  "count": 1,
  "locations": [
    {
      "display_name": "East US",
      "geography": "United States",
      "name": "eastus",
      "paired_regions": [
        "westus"
      ],
      "physical_location": "Virginia",
      "region_category": "Recommended",
      "region_type": "Physical",
      "regional_display_name": "(US) East US"
    }
  ]
}
```

### List resource groups

The resource groups in a subscription, optionally only those with a tag.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Tag name (`tag_name`, text): Only those with this tag, such as env.
- Tag value (`tag_value`, text): Only those whose tag has this value, such as prod. Needs a tag name.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `100`.

**Outputs**

- `count` (number): How many were returned
- `resource_groups` (list): The resource groups
- `truncated` (true/false): True if there were more than 'Maximum results'

**Example output**

```json
{
  "count": 1,
  "resource_groups": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg",
      "location": "eastus",
      "managed_by": "",
      "name": "my-rg",
      "provisioning_state": "Succeeded",
      "tags": {
        "env": "prod"
      }
    }
  ],
  "truncated": false
}
```

### List resource providers

The resource providers (Microsoft.Storage, Microsoft.Compute and the rest) and whether the subscription is registered to use each.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Registration (`registration_state`, text): Only providers that are, or aren't, registered. One of: `any` (All), `Registered`, `NotRegistered` (Not registered). Default: `any`.

**Outputs**

- `count` (number): How many were returned
- `providers` (list): The resource providers

**Example output**

```json
{
  "count": 1,
  "providers": [
    {
      "namespace": "Microsoft.Storage",
      "registration_policy": "RegistrationRequired",
      "registration_state": "Registered",
      "resource_types": [
        "storageAccounts"
      ]
    }
  ]
}
```

### List resources

The resources in a subscription or resource group, filtered by type, name, region or tag.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text): Only this resource group. Leave empty for the whole subscription.
- Resource type (`resource_type`, text): Only this type, such as Microsoft.Storage/storageAccounts.
- Name contains (`name_contains`, text): Only resources whose name contains this text.
- Region (`location`, text): Only resources in this region.
- Tag name (`tag_name`, text): Only those with this tag, such as env.
- Tag value (`tag_value`, text): Only those whose tag has this value, such as prod. Needs a tag name.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `100`.

**Outputs**

- `count` (number): How many were returned
- `resources` (list): The resources
- `truncated` (true/false): True if there were more than 'Maximum results'

**Example output**

```json
{
  "count": 1,
  "resources": [
    {
      "changed_time": "2026-11-02T09:00:00Z",
      "created_time": "2026-11-01T09:00:00Z",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore",
      "kind": "StorageV2",
      "location": "eastus",
      "name": "mystore",
      "provisioning_state": "Succeeded",
      "resource_group": "my-rg",
      "sku": "Standard_LRS",
      "tags": {
        "env": "prod"
      },
      "type": "Microsoft.Storage/storageAccounts"
    }
  ],
  "truncated": false
}
```

### List subscriptions

The Azure subscriptions the app has a role on, with each one's ID and state.

**Inputs**

- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `100`.

**Outputs**

- `count` (number): How many were returned
- `subscriptions` (list): The subscriptions
- `truncated` (true/false): True if there were more than 'Maximum results'

**Example output**

```json
{
  "count": 1,
  "subscriptions": [
    {
      "name": "Production",
      "state": "Enabled",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "tags": {},
      "tenant_id": "11111111-1111-1111-1111-111111111111"
    }
  ],
  "truncated": false
}
```

### Preview deployment changes

See what deploying a template would create, change or delete, without deploying it (Azure's what-if).

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource group (`resource_group`, text, required): The resource group. Pick one, or give its name from an earlier step.
- Template (`template`, object): The ARM template, as JSON: its $schema, contentVersion, parameters and resources. Leave empty when you give a template link.
- Template link (`template_url`, text): An https:// address Azure can download the template from, instead of pasting it.
- Parameters (`parameters`, object): The template's parameters as name: value, such as {"storageName": "mystore"}. A whole parameters file works too.
- Mode (`mode`, text): Add and update only leaves other resources in the group alone. Match the template exactly deletes any resource in the group the template doesn't list. One of: `Incremental` (Add and update only), `Complete` (Match the template exactly (deletes what it leaves out)). Default: `Incremental`.

**Outputs**

- `changes` (list): Each resource the deployment would touch
- `creates` (number): How many resources it would create
- `deletes` (number): How many it would delete
- `modifies` (number): How many it would change
- `status` (text): Succeeded once the preview is ready
- `unchanged` (number): How many it would leave as they are

**Example output**

```json
{
  "changes": [
    {
      "change_type": "Modify",
      "changed_properties": [
        "tags.env"
      ],
      "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystore",
      "unsupported_reason": ""
    }
  ],
  "creates": 0,
  "deletes": 0,
  "modifies": 1,
  "status": "Succeeded",
  "unchanged": 0
}
```

### Register resource provider

Let a subscription use a kind of resource, such as Microsoft.Storage, the first time. Registering takes a minute or two to finish in Azure.

**Inputs**

- Subscription (`subscription_id`, text): The Azure subscription. Leave it blank when the connection can see only one.
- Resource provider (`namespace`, text, required): The provider, such as Microsoft.Storage.

**Outputs**

- `provider` (object): The resource provider

**Example output**

```json
{
  "provider": {
    "namespace": "Microsoft.Storage",
    "registration_policy": "RegistrationRequired",
    "registration_state": "Registering",
    "resource_types": [
      "storageAccounts"
    ]
  }
}
```

### Update tags

Add, replace or remove the tags on a resource or a resource group. Adding keeps the tags already there.

**Inputs**

- Subscription (`subscription_id`, text): The subscription of the resource group. Not needed for a resource given by ID.
- Resource group (`resource_group`, text): Tag this resource group. Leave empty when you give a resource.
- Resource (`resource_id`, text): Tag this resource instead: its ID, starting /subscriptions/.
- How (`mode`, text): Add or change tags (keeping the rest), replace them all, or remove some. One of: `add` (Add or change these tags), `replace` (Replace all tags with these), `remove` (Remove these tags). Default: `add`.
- Tags (`tags`, object): Tags as name: value, such as {"env": "prod"}. Only when How is Add or change these tags or Replace all tags with these.
- Tags to remove (`tag_names`, list): The names of the tags to remove. Names that aren't there are ignored. Only when How is Remove these tags.

**Outputs**

- `changed` (true/false): False if the tags were already that way, so nothing was sent
- `scope` (text): The ID of what was tagged
- `tags` (object): Its tags now, as name: value

**Example output**

```json
{
  "changed": true,
  "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg",
  "tags": {
    "env": "prod"
  }
}
```
