Integrations
Microsoft Azure connector
Manage Azure from workflows and agents: VMs, scale sets, App Service, AKS, storage, Key Vault secrets, role assignments, ARM deployments with what-if, Monitor, Log Analytics, Resource Graph and costs.
On this page
- Set up
- Clouds and endpoints
- Permissions
- Safety
- Long-running operations
- Paging
- Examples
- Any other Azure API
- Action reference
- Subscriptions
- Resource groups
- Resources (any type), tags and providers
- Virtual machines
- VM scale sets
- Disks and snapshots
- App Service and Function apps
- Kubernetes (AKS)
- Storage accounts
- Key Vault secrets
- Access control (RBAC)
- ARM template deployments
- Azure Monitor
- Log Analytics, Resource Graph and Cost Management
- Network security groups
- Microsoft Entra ID (users and groups)
- Any ARM API and operation status
The Microsoft Azure connector (key azure) gives workflows, agents, the API and MCP 102 ready-made actions for running Azure: power and scale operations, deployments, access control, secrets, monitoring and cost reports. It signs in as one Entra ID service principal and works in global Azure, Azure US Government and Azure China. The storage and AI connectors (Azure Blob Storage, Azure OpenAI and others) stay separate.
Set up#
- In the Azure portal, go to Microsoft Entra ID → App registrations → New registration. Note the Application (client) ID and Directory (tenant) ID.
- Under Certificates & secrets, either create a client secret (copy its Value), or upload a certificate (the public
.cer/.pem). Certificates are recommended for production: nothing reusable is stored in UserTasks except a private key that only signs short-lived assertions. - Give the app roles in Access control (IAM) on the subscription, resource groups or resources it should manage (see Permissions).
- In UserTasks, go to Integrations → Connectors → Cloud and choose Microsoft Azure. Enter the tenant ID, an optional default subscription ID, the cloud, the client ID and the secret or certificate (paste the private key and the certificate together in one PEM; add the passphrase if the key is encrypted).
- Click Test connection. It signs in and reads the default subscription (or lists subscriptions). The message says whether sign-in failed (wrong tenant, client ID, secret or certificate), the app has no role on the subscription, or the subscription is in another tenant or cloud.
connector_key: azure
display_name: Azure (production)
# Only the actions this workspace uses (omit for all of them):
reference_mode: selected
reference_template_keys: [list_virtual_machines, start_vm, deallocate_vm, get_operation_status, query_costs]
config:
tenant_id: 00000000-0000-0000-0000-000000000000
subscription_id: 11111111-1111-1111-1111-111111111111
cloud: public
credentials:
client_id: 22222222-2222-2222-2222-222222222222
auth_method: client_secret
client_secret: ${env:AZURE_CLIENT_SECRET}usertasks connectors create -f azure.yaml
usertasks connectors test <id>Secrets and private keys are encrypted at rest and never shown again. Tokens are minted per API (Resource Manager, Key Vault, Microsoft Graph, Log Analytics), kept in memory until shortly before they expire, and never logged.
Clouds and endpoints#
| Cloud | Sign-in | Resource Manager |
|---|---|---|
| Azure (global) | login.microsoftonline.com | management.azure.com |
| Azure US Government | login.microsoftonline.us | management.usgovcloudapi.net |
| Azure China (21Vianet) | login.chinacloudapi.cn | management.chinacloudapi.cn |
Key Vault, Microsoft Graph and Log Analytics follow the cloud too. Resource Manager endpoint override (advanced) points the connector at Azure Stack Hub, a private Resource Manager proxy or a test double; it must be https, and a private address needs EGRESS_PRIVATE_ALLOW on a self-hosted server. Nothing else is needed to self-host: the connector calls Azure's REST APIs directly with Node's built-in crypto and fetch.
Permissions#
Give the service principal the narrowest roles that cover the actions you use:
- Reader on the subscription: every list / get action, Resource Graph, metrics, alerts and the activity log
- Virtual Machine Contributor (VMs and scale sets: start, stop, deallocate, restart, resize, run command), Website Contributor (App Service and Function apps), Azure Kubernetes Service Contributor Role (start / stop / scale AKS) — on the resource groups the workflows manage
- Storage Account Contributor (storage accounts), Network Contributor (NSG rules), Contributor only where templates deploy arbitrary resources
- Role Based Access Control Administrator (create / delete role assignments) — ideally with a condition that limits the roles it may assign
- Key Vault Secrets User (read secrets) or Key Vault Secrets Officer (set / delete) on each vault — or vault access policies
- Log Analytics Reader on the workspaces queried; Cost Management Reader for costs and budgets
- Microsoft Graph application permissions (only for the Entra actions): User.Read.All, GroupMember.Read.All, and GroupMember.ReadWrite.All to add / remove members — with admin consent
A 403 answer names the missing permission: the action's error keeps Azure's code (for example AuthorizationFailed) and adds what to change.
Safety#
- Risk levels. Every action is marked read, write or destructive. Destructive actions delete or terminate resources, change access (role assignments, group membership, network security rules), read or write secrets, run commands on VMs, deploy templates, or call any ARM API. An agent always asks a person before it runs one, and an MCP client must pass
confirm: true. - Dry runs. What-If Deployment shows what a template would create, change or delete without changing anything. Run it first, and put its result in an approval task before Deploy Template.
- Secrets. Get Secret returns the value as
secret_value. Run history and assistant views mask keys like that, and the integration call log stores***in its place. App setting values from List App Settings are masked in the call log too. - Retries. Throttling (429) is retried with backoff for every call and honours
Retry-After; 5xx answers are retried only for reads, PUT and DELETE. Other errors come back at once with Azure's code and message. - Links. Paging links and operation URLs must stay on the Azure host they came from, so a crafted link cannot send the token elsewhere.
Long-running operations#
Starting a VM, deleting a resource group or deploying a template runs in the background on Azure. Those actions follow Azure's Azure-AsyncOperation or Location header and, by default, wait until the operation ends (wait_timeout_seconds, default 120, at most 600). They return:
| Output | Meaning |
|---|---|
status | Succeeded, Failed, Canceled or InProgress (still running when the wait ended) |
done | true once Azure finished |
operation_url | Pass to Get Operation Status to check again later |
result | The resource or the operation's result (for example the What-If changes, or Run Command output) |
error | Azure's error code and message when it failed |
Set wait_for_completion to false to return at once, then check with Get Operation Status — for example from a loop with a delay in a workflow. A failed operation fails the step with Azure's error.
Paging#
List actions return value, count and next_link. Pass next_link back to get the next page, or set all_pages to follow the links for you, up to max_pages (default 10, at most 50) and 10,000 items. truncated is true when more remained. Resource Graph pages with skip_token the same way.
Examples#
Approve before deallocating idle VMs. A scheduled workflow runs Query Resource Graph with Resources | where type =~ 'microsoft.compute/virtualmachines' and tags.autoshutdown == 'true' | project id, name, resourceGroup, sends the list to an approval task, then loops over the approved VMs with Deallocate VM.
Cost report. Query Costs with timeframe MonthToDate and grouping [{"type":"Dimension","name":"ResourceGroupName"}] returns rows such as {"Cost": 1234.56, "ResourceGroupName": "rg-app", "Currency": "USD"}. Post the top five to Teams, or open a task when a group passes USD 5,000.
Safe template rollout. What-If Deployment → an approval task showing result.changes → Deploy Template → Get Deployment outputs into the next step.
Just-in-time access. An access request form → approval → Create Role Assignment (role Reader, principal_id from the form, principal_type User) → a timer → Delete Role Assignment with the returned id.
Any other Azure API#
Call Any ARM API takes a method, a path (from /subscriptions/… or /providers/…), an api_version, an optional body and query, and the same waiting and paging options. It reaches only the connector's Resource Manager endpoint. For a resource ID, Get Resource by ID and Delete Resource by ID look up the latest stable api-version for the resource type when you leave api_version empty.
Action reference#
Subscriptions#
Subscriptions the service principal can see, and their regions.
List Subscriptions#
list_subscriptions · risk: read · paged (next_link, all_pages, max_pages)
List the subscriptions the service principal has a role on. Pass next_link back for the next page, or set all_pages.
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Subscription#
get_subscription · risk: read
Get a subscription (display name, state, tenant).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: subscriptionId (string), displayName (string), state (string), tenantId (string).
List Locations#
list_locations · risk: read · paged (next_link, all_pages, max_pages)
List the regions available to a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Resource groups#
Create, read and delete resource groups.
List Resource Groups#
list_resource_groups · risk: read · paged (next_link, all_pages, max_pages)
List resource groups, optionally filtered (e.g. tagName eq 'env' and tagValue eq 'prod'). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
filter | string | no | OData filter, e.g. tagName eq 'env' and tagValue eq 'prod' |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Resource Group#
get_resource_group · risk: read
Get a resource group (location, tags, provisioning state).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object).
Create or Update Resource Group#
create_or_update_resource_group · risk: write
Create a resource group, or update its tags. The tags given replace the group's tags.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
location | string | yes | Azure region (e.g. eastus, westeurope) |
tags | object | no | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object).
Delete Resource Group#
delete_resource_group · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Delete a resource group and EVERY resource in it. Cannot be undone.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Resources (any type), tags and providers#
Generic actions on any resource by ID. api_version may be left empty: the latest stable version of the resource type is looked up for you.
List Resources#
list_resources · risk: read · paged (next_link, all_pages, max_pages)
List resources in a subscription, optionally filtered by type, tag or name. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
filter | string | no | OData filter, e.g. resourceType eq 'Microsoft.Compute/virtualMachines' or tagName eq 'env' |
expand | string | no | Extra fields, e.g. createdTime,changedTime,provisioningState |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Resources in Resource Group#
list_resources_in_group · risk: read · paged (next_link, all_pages, max_pages)
List the resources in one resource group. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
filter | string | no | OData filter |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Resource by ID#
get_resource · risk: read
Get any resource by its ID.
| Input | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Full resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name> |
api_version | string | no | API version (latest stable for the resource type when empty) |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object).
Delete Resource by ID#
delete_resource · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Delete any resource by its ID. Cannot be undone.
| Input | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Full resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name> |
api_version | string | no | API version (latest stable for the resource type when empty) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Get Tags#
get_tags · risk: read
Get the tags of a subscription, resource group or resource.
| Input | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Scope: /subscriptions/<id>, a resource group ID or a resource ID |
Outputs: properties (object).
Update Tags#
update_tags · risk: write
Merge, replace or delete tags on a subscription, resource group or resource (no other property changes).
| Input | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Scope: /subscriptions/<id>, a resource group ID or a resource ID |
tags | object | yes | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
operation | string | no | Merge (add or update), Replace (exactly these tags) or Delete (remove these tags) (default Merge) |
Outputs: properties (object).
Get Resource Provider#
get_resource_provider · risk: read
Get a resource provider's registration state, resource types and API versions.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
namespace | string | yes | Provider namespace, e.g. Microsoft.ContainerService |
Outputs: namespace (string), registrationState (string), resourceTypes (array).
Register Resource Provider#
register_resource_provider · risk: write
Register a resource provider on the subscription (needed once before its resources can be created).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
namespace | string | yes | Provider namespace, e.g. Microsoft.ContainerService |
Outputs: namespace (string), registrationState (string).
Virtual machines#
Power operations, resize, run command, create and delete. Power operations are long-running: by default the action waits until Azure reports the result.
List Virtual Machines#
list_virtual_machines · risk: read · paged (next_link, all_pages, max_pages)
List the VMs in a subscription (status_only adds power state). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
status_only | boolean | no | Return instance view (power state) instead of the full model |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Virtual Machines in Resource Group#
list_virtual_machines_in_group · risk: read · paged (next_link, all_pages, max_pages)
List the VMs in one resource group. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Virtual Machine#
get_virtual_machine · risk: read
Get a VM, with its instance view (power state) by default.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
expand | string | no | instanceView (default) or userData (default instanceView) |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object), power_state (string).
Get VM Instance View#
get_vm_instance_view · risk: read
Get a VM's runtime status: power state, provisioning state, agent and disk status.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
Outputs: power_state (string), provisioning_state (string), statuses (array), vmAgent (object).
Start VM#
start_vm · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Start a stopped or deallocated VM.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Power Off VM#
power_off_vm · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Stop a VM. It keeps its compute allocation and is still billed for compute; use Deallocate VM to stop billing.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
skip_shutdown | boolean | no | Skip the graceful OS shutdown |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Deallocate VM#
deallocate_vm · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Stop a VM and release its compute (no compute charges; a dynamic public IP is released).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
hibernate | boolean | no | Hibernate instead (VMs with hibernation enabled) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Restart VM#
restart_vm · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Restart a running VM.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Resize VM#
resize_vm · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Change a VM's size. Azure restarts the VM; some sizes need it deallocated first (List VM Sizes shows the sizes available).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
vm_size | string | yes | New size, e.g. Standard_D4s_v5 |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
List VM Sizes#
list_vm_sizes · risk: read · paged (next_link, all_pages, max_pages)
List the sizes a VM can be resized to on its current hardware. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Run Command on VM#
run_command_vm · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Run a shell (Linux) or PowerShell (Windows) script on a VM through the VM agent and return its output.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
command_id | string | no | RunShellScript (Linux) or RunPowerShellScript (Windows) (default RunShellScript) |
script | array | yes | Script lines as a JSON array, or one string (split into lines) |
parameters | array | no | Script parameters: [{"name":"x","value":"y"}] |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object), output (string).
Create or Update VM#
create_or_update_vm · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Create a VM, or update one, from a full virtual machine definition (the request body of the Virtual Machines - Create Or Update API).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
vm | object | yes | Virtual machine definition: {"location":…,"properties":{"hardwareProfile":…,"storageProfile":…,"osProfile":…,"networkProfile":…}} |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Delete VM#
delete_vm · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Delete a VM. Disks and NICs are deleted only when their deleteOption says so. Cannot be undone.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
vm_name | string | yes | Virtual machine name |
force_deletion | boolean | no | Force delete (skips graceful cleanup) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
VM scale sets#
Scale a scale set to a capacity and run power operations on all or some instances.
List Scale Sets#
list_scale_sets · risk: read · paged (next_link, all_pages, max_pages)
List the VM scale sets in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Scale Set#
get_scale_set · risk: read
Get a VM scale set (SKU and capacity in sku).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object), sku (object).
Scale Scale Set#
scale_scale_set · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Set the number of instances of a scale set.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
capacity | number | yes | Instance count |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Start Scale Set Instances#
start_scale_set · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Start all instances of a scale set, or the ones listed.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
instance_ids | array | no | Instance IDs (all instances when empty) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Power Off Scale Set Instances#
power_off_scale_set · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Power off all instances of a scale set, or the ones listed (still billed; deallocate to stop billing).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
instance_ids | array | no | Instance IDs (all instances when empty) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Deallocate Scale Set Instances#
deallocate_scale_set · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Deallocate all instances of a scale set, or the ones listed.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
instance_ids | array | no | Instance IDs (all instances when empty) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Restart Scale Set Instances#
restart_scale_set · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Restart all instances of a scale set, or the ones listed.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
instance_ids | array | no | Instance IDs (all instances when empty) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
List Scale Set Instances#
list_scale_set_instances · risk: read · paged (next_link, all_pages, max_pages)
List the VM instances of a scale set. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
scale_set_name | string | yes | Scale set name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Disks and snapshots#
List managed disks and snapshots, and snapshot a disk before a risky change.
List Disks#
list_disks · risk: read · paged (next_link, all_pages, max_pages)
List the managed disks in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Snapshots#
list_snapshots · risk: read · paged (next_link, all_pages, max_pages)
List the disk snapshots in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Create Disk Snapshot#
create_snapshot · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Snapshot a managed disk (incremental by default).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
snapshot_name | string | yes | Snapshot name |
location | string | yes | Azure region (e.g. eastus, westeurope) |
source_disk_id | string | yes | Resource ID of the disk to snapshot |
incremental | boolean | no | Incremental snapshot (default true) |
tags | object | no | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
App Service and Function apps#
Restart, stop and start web and function apps, manage app settings and swap deployment slots.
List Web and Function Apps#
list_web_apps · risk: read · paged (next_link, all_pages, max_pages)
List the App Service and Function apps in a subscription (kind tells them apart). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Web App#
get_web_app · risk: read
Get an App Service or Function app (state, host names, plan).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object), kind (string).
Restart Web App#
restart_web_app · risk: write
Restart an App Service or Function app.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
soft_restart | boolean | no | Soft restart (reload configuration without recycling the process) |
synchronous | boolean | no | Return only when the restart has finished |
Outputs: success (boolean).
Stop Web App#
stop_web_app · risk: write
Stop an App Service or Function app.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
Outputs: success (boolean).
Start Web App#
start_web_app · risk: write
Start a stopped App Service or Function app.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
Outputs: success (boolean).
List App Settings#
list_app_settings · risk: read
Read an app's application settings. Values often hold secrets: they are masked in call logs.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
Outputs: properties (object).
Update App Settings#
update_app_settings · risk: destructive
Add or change application settings (merged into the existing ones; the app restarts). remove deletes settings by name.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
settings | object | yes | Settings to add or change: {"FEATURE_X":"on"} |
remove | array | no | Setting names to delete |
Outputs: changed (array), removed (array), setting_names (array).
List Deployment Slots#
list_slots · risk: read · paged (next_link, all_pages, max_pages)
List an app's deployment slots. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Swap Deployment Slot#
swap_slot · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Swap a deployment slot with production (or another slot).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
slot | string | yes | Source slot, e.g. staging |
target_slot | string | no | Target slot (default production) |
preserve_vnet | boolean | no | Keep the virtual network integration (default true) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
List Functions#
list_functions · risk: read · paged (next_link, all_pages, max_pages)
List the functions in a Function app. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
app_name | string | yes | App Service or Function app name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Kubernetes (AKS)#
Start and stop clusters and scale node pools.
List AKS Clusters#
list_aks_clusters · risk: read · paged (next_link, all_pages, max_pages)
List the AKS clusters in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get AKS Cluster#
get_aks_cluster · risk: read
Get an AKS cluster (version, power state, node pools).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
cluster_name | string | yes | AKS cluster name |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object).
Start AKS Cluster#
start_aks_cluster · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Start a stopped AKS cluster.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
cluster_name | string | yes | AKS cluster name |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Stop AKS Cluster#
stop_aks_cluster · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Stop an AKS cluster (control plane and nodes; workloads stop).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
cluster_name | string | yes | AKS cluster name |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
List AKS Node Pools#
list_aks_node_pools · risk: read · paged (next_link, all_pages, max_pages)
List a cluster's node pools (count, VM size, autoscaling). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
cluster_name | string | yes | AKS cluster name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Scale AKS Node Pool#
scale_aks_node_pool · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Set a node pool's node count (refused when the pool autoscales: change its min/max instead).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
cluster_name | string | yes | AKS cluster name |
node_pool | string | yes | Node pool name |
count | number | yes | Node count |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Storage accounts#
Account-level management (Azure Blob Storage has its own connector for blobs).
List Storage Accounts#
list_storage_accounts · risk: read · paged (next_link, all_pages, max_pages)
List the storage accounts in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Storage Account#
get_storage_account · risk: read
Get a storage account (SKU, endpoints, network and security settings).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
account_name | string | yes | Storage account name (3-24 lowercase letters and digits) |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object), sku (object), kind (string).
Create Storage Account#
create_storage_account · risk: write · long-running (wait_for_completion, wait_timeout_seconds)
Create a storage account with secure defaults (TLS 1.2, HTTPS only, no anonymous blob access).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
account_name | string | yes | Storage account name (3-24 lowercase letters and digits) |
location | string | yes | Azure region (e.g. eastus, westeurope) |
sku | string | no | SKU, e.g. Standard_LRS, Standard_ZRS, Standard_GRS (default Standard_LRS) |
kind | string | no | StorageV2 (default), BlockBlobStorage, FileStorage (default StorageV2) |
tags | object | no | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Update Storage Account#
update_storage_account · risk: write
Change storage account properties or tags (only the fields given change).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
account_name | string | yes | Storage account name (3-24 lowercase letters and digits) |
properties | object | no | Properties to change, e.g. {"allowBlobPublicAccess":false,"minimumTlsVersion":"TLS1_2"} |
tags | object | no | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object).
Delete Storage Account#
delete_storage_account · risk: destructive
Delete a storage account and ALL of its data. Cannot be undone.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
account_name | string | yes | Storage account name (3-24 lowercase letters and digits) |
Outputs: success (boolean).
Key Vault secrets#
Secrets in a vault (data plane: the service principal needs Key Vault Secrets User to read, Key Vault Secrets Officer to change, or matching access policies). Secret values come back as secret_value, which run logs and call logs mask.
List Key Vaults#
list_key_vaults · risk: read · paged (next_link, all_pages, max_pages)
List the key vaults in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Secrets#
list_secrets · risk: read · paged (next_link, all_pages, max_pages)
List the secrets in a vault (names and attributes, never values). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
vault_name | string | yes | Key Vault name (the <name> in https://<name>.vault.azure.net) |
max_results | number | no | Secrets per page (at most 25) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Secret Versions#
list_secret_versions · risk: read · paged (next_link, all_pages, max_pages)
List the versions of a secret (attributes only). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
vault_name | string | yes | Key Vault name (the <name> in https://<name>.vault.azure.net) |
name | string | yes | Secret name |
max_results | number | no | Versions per page (at most 25) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Secret#
get_secret · risk: destructive
Read a secret's value (latest version unless version is given). High risk: the value is returned to the caller.
| Input | Type | Required | Description |
|---|---|---|---|
vault_name | string | yes | Key Vault name (the <name> in https://<name>.vault.azure.net) |
name | string | yes | Secret name |
version | string | no | Version (latest when empty) |
Outputs: secret_value (string), name (string), version (string), id (string), contentType (string), attributes (object), tags (object).
Set Secret#
set_secret · risk: destructive
Create a secret, or add a new version of it.
| Input | Type | Required | Description |
|---|---|---|---|
vault_name | string | yes | Key Vault name (the <name> in https://<name>.vault.azure.net) |
name | string | yes | Secret name (letters, digits and dashes) |
secret_value | string | yes | Secret value |
content_type | string | no | Content type hint, e.g. text/plain |
tags | object | no | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
enabled | boolean | no | Enabled (default true) |
expires | string | no | Expiry (ISO 8601 date-time or Unix seconds) |
Outputs: name (string), version (string), id (string), attributes (object).
Update Secret Attributes#
update_secret_attributes · risk: destructive
Enable or disable a secret version, or change its expiry, content type or tags (the value does not change).
| Input | Type | Required | Description |
|---|---|---|---|
vault_name | string | yes | Key Vault name (the <name> in https://<name>.vault.azure.net) |
name | string | yes | Secret name |
version | string | no | Version (latest when empty) |
enabled | boolean | no | Enabled |
expires | string | no | Expiry (ISO 8601 date-time or Unix seconds) |
content_type | string | no | Content type |
tags | object | no | Tags as a JSON object, e.g. {"env":"prod","owner":"ops"} |
Outputs: name (string), version (string), attributes (object).
Delete Secret#
delete_secret · risk: destructive
Delete a secret (all versions). With soft delete on (the default) it can be recovered until purged.
| Input | Type | Required | Description |
|---|---|---|---|
vault_name | string | yes | Key Vault name (the <name> in https://<name>.vault.azure.net) |
name | string | yes | Secret name |
Outputs: name (string), recoveryId (string), scheduledPurgeDate (number).
Access control (RBAC)#
Role assignments at any scope. Creating and deleting assignments changes who can do what: both always need approval when an agent calls them.
List Role Assignments#
list_role_assignments · risk: read · paged (next_link, all_pages, max_pages)
List role assignments at a scope (filter e.g. atScope() or principalId eq '<id>'). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
scope | string | yes | Scope: /subscriptions/<id>, a resource group ID or a resource ID |
filter | string | no | OData filter: atScope(), principalId eq '<object id>', assignedTo('<object id>') |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Role Definitions#
list_role_definitions · risk: read · paged (next_link, all_pages, max_pages)
List role definitions at a scope (filter e.g. roleName eq 'Reader'). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
scope | string | yes | Scope: /subscriptions/<id>, a resource group ID or a resource ID |
filter | string | no | OData filter, e.g. roleName eq 'Reader' or type eq 'BuiltInRole' |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Create Role Assignment#
create_role_assignment · risk: destructive
Assign a role (by name, e.g. Reader, or role definition ID) to a user, group or service principal at a scope.
| Input | Type | Required | Description |
|---|---|---|---|
scope | string | yes | Scope: /subscriptions/<id>, a resource group ID or a resource ID |
role | string | yes | Role name (e.g. Reader, Contributor) or role definition ID / GUID |
principal_id | string | yes | Object ID of the user, group or service principal |
principal_type | string | no | User, Group or ServicePrincipal (recommended: avoids replication-delay errors for new principals) |
description | string | no | Why the assignment exists |
Outputs: id (string), name (string), properties (object), already_existed (boolean).
Delete Role Assignment#
delete_role_assignment · risk: destructive
Delete a role assignment by its ID.
| Input | Type | Required | Description |
|---|---|---|---|
role_assignment_id | string | yes | Role assignment ID: <scope>/providers/Microsoft.Authorization/roleAssignments/<guid> |
Outputs: id (string), properties (object).
ARM template deployments#
Deploy ARM templates at resource group or subscription scope, preview them with what-if (a dry run that changes nothing), validate, follow and cancel them.
Deploy Template (Resource Group)#
deploy_template · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Deploy an ARM template to a resource group. Incremental mode adds and updates; Complete mode also DELETES resources not in the template. Run What-If first.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
deployment_name | string | yes | Deployment name |
template | object | no | ARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link |
template_link | object | no | Template link instead of an inline template: {"uri":"https://…/azuredeploy.json"} |
parameters | object | no | Parameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {}) |
mode | string | no | Incremental (default) or Complete (default Incremental) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
What-If Deployment (Resource Group)#
what_if_deployment · risk: read · long-running (wait_for_completion, wait_timeout_seconds)
Preview the changes a resource group deployment would make (create, modify, delete) without changing anything.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
deployment_name | string | yes | Deployment name |
template | object | no | ARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link |
template_link | object | no | Template link instead of an inline template: {"uri":"https://…/azuredeploy.json"} |
parameters | object | no | Parameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {}) |
mode | string | no | Incremental (default) or Complete (default Incremental) |
result_format | string | no | FullResourcePayloads (default) or ResourceIdOnly (default FullResourcePayloads) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Validate Deployment (Resource Group)#
validate_deployment · risk: read · long-running (wait_for_completion, wait_timeout_seconds)
Check that a template and parameters would be accepted, without deploying.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
deployment_name | string | yes | Deployment name |
template | object | no | ARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link |
template_link | object | no | Template link instead of an inline template: {"uri":"https://…/azuredeploy.json"} |
parameters | object | no | Parameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {}) |
mode | string | no | Incremental (default) or Complete (default Incremental) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Get Deployment#
get_deployment · risk: read
Get a resource group deployment's state, outputs and error.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
deployment_name | string | yes | Deployment name |
Outputs: id (string), name (string), properties (object).
List Deployments#
list_deployments · risk: read · paged (next_link, all_pages, max_pages)
List a resource group's deployments (filter e.g. provisioningState eq 'Failed'). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
filter | string | no | OData filter, e.g. provisioningState eq 'Failed' |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Deployment Operations#
list_deployment_operations · risk: read · paged (next_link, all_pages, max_pages)
List the per-resource operations of a deployment (find which resource failed and why). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
deployment_name | string | yes | Deployment name |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Cancel Deployment#
cancel_deployment · risk: write
Cancel a running resource group deployment (resources already deployed stay).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
deployment_name | string | yes | Deployment name |
Outputs: success (boolean).
Deploy Template (Subscription)#
deploy_subscription_template · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Deploy an ARM template at subscription scope (resource groups, policies, role assignments).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
deployment_name | string | yes | Deployment name |
location | string | yes | Azure region (e.g. eastus, westeurope) |
template | object | no | ARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link |
template_link | object | no | Template link instead of an inline template: {"uri":"https://…/azuredeploy.json"} |
parameters | object | no | Parameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {}) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
What-If Deployment (Subscription)#
what_if_subscription_deployment · risk: read · long-running (wait_for_completion, wait_timeout_seconds)
Preview the changes a subscription-scope deployment would make, without changing anything.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
deployment_name | string | yes | Deployment name |
location | string | yes | Azure region (e.g. eastus, westeurope) |
template | object | no | ARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link |
template_link | object | no | Template link instead of an inline template: {"uri":"https://…/azuredeploy.json"} |
parameters | object | no | Parameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {}) |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Azure Monitor#
Metrics, fired alerts, metric alert rules and the activity log (who changed what).
List Metric Definitions#
list_metric_definitions · risk: read · paged (next_link, all_pages, max_pages)
List the metrics a resource emits (names, units, aggregations). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Full resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name> |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get Metrics#
get_metrics · risk: read
Read metric values of a resource, e.g. Percentage CPU over the last hour.
| Input | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Full resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name> |
metric_names | string | yes | Comma-separated metric names, e.g. Percentage CPU |
timespan | string | no | ISO 8601 interval, e.g. PT1H or 2026-11-01T00:00:00Z/2026-11-02T00:00:00Z (default PT1H) |
interval | string | no | Grain, e.g. PT1M, PT5M, PT1H (default PT5M) |
aggregation | string | no | Average, Maximum, Minimum, Total, Count (default Average) |
filter | string | no | Dimension filter |
top | number | no | Items per page |
Outputs: value (array), timespan (string), interval (string).
List Fired Alerts#
list_alerts · risk: read · paged (next_link, all_pages, max_pages)
List fired alerts (Alerts Management), newest first. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
alert_state | string | no | New, Acknowledged or Closed |
monitor_condition | string | no | Fired or Resolved |
severity | string | no | Sev0 … Sev4 |
resource_group | string | no | Only alerts on this resource group |
time_range | string | no | 1h, 1d, 7d or 30d (default 1d) |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Change Alert State#
change_alert_state · risk: write
Acknowledge or close a fired alert.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
alert_id | string | yes | Alert ID (the GUID at the end of the alert's id) |
new_state | string | yes | New, Acknowledged or Closed |
Outputs: id (string), properties (object).
List Metric Alert Rules#
list_metric_alert_rules · risk: read · paged (next_link, all_pages, max_pages)
List the metric alert rules in a subscription. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Enable or Disable Metric Alert Rule#
set_metric_alert_rule_enabled · risk: write
Turn a metric alert rule on or off (e.g. during maintenance).
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
rule_name | string | yes | Alert rule name |
enabled | boolean | yes | Enabled |
Outputs: id (string), name (string), type (string), location (string), tags (object), properties (object).
List Activity Log#
list_activity_log · risk: read · paged (next_link, all_pages, max_pages)
List activity log events (who did what, when) in a time window. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
filter | string | yes | OData filter with a time window, e.g. eventTimestamp ge '2026-11-27T00:00:00Z' and eventTimestamp le '2026-11-28T00:00:00Z' and resourceGroupName eq 'rg-app' |
select | string | no | Fields, e.g. eventTimestamp,caller,operationName,status,resourceId |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Log Analytics, Resource Graph and Cost Management#
Query logs with KQL, inventory resources across subscriptions with Resource Graph, and report costs (amounts in the billing currency, e.g. USD).
Query Log Analytics#
query_log_analytics · risk: read
Run a KQL query against a Log Analytics workspace. Returns rows as objects.
| Input | Type | Required | Description |
|---|---|---|---|
workspace_id | string | yes | Workspace ID (the GUID on the workspace overview page) |
query | string | yes | KQL query, e.g. AzureActivity | where Level == "Error" | take 50 |
timespan | string | no | ISO 8601 duration or interval, e.g. PT24H (default PT24H) |
Outputs: rows (array), columns (array), count (number), tables (array).
Query Resource Graph#
query_resource_graph · risk: read · paged (next_link, all_pages, max_pages)
Query resources across subscriptions with Resource Graph (KQL), e.g. every VM without an owner tag.
| Input | Type | Required | Description |
|---|---|---|---|
query | string | yes | Resource Graph query, e.g. Resources | where type =~ 'microsoft.compute/virtualmachines' | project name, location, tags |
subscriptions | array | no | Subscription IDs (the connector default when empty) |
management_groups | array | no | Management group IDs (instead of subscriptions) |
top | number | no | Rows per page (at most 1000) (default 100) |
skip_token | string | no | skip_token from the previous page |
Outputs: data (array), count (number), total_records (number), skip_token (string), truncated (boolean).
Query Costs#
query_costs · risk: read
Cost Management query for a subscription: actual or amortized cost by day or month, grouped by e.g. ResourceGroupName or ServiceName. Returns rows as objects.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
type | string | no | ActualCost, AmortizedCost or Usage (default ActualCost) |
timeframe | string | no | MonthToDate, BillingMonthToDate, TheLastMonth, WeekToDate or Custom (default MonthToDate) |
time_period | object | no | For Custom: {"from":"2026-11-01T00:00:00Z","to":"2026-11-27T23:59:59Z"} |
granularity | string | no | None (totals) or Daily (default None) |
grouping | array | no | Grouping, e.g. [{"type":"Dimension","name":"ResourceGroupName"}] (at most 2) (default []) |
filter | object | no | Filter expression, e.g. {"dimensions":{"name":"ResourceGroupName","operator":"In","values":["rg-app"]}} |
Outputs: rows (array), columns (array), count (number), next_link (string).
List Budgets#
list_budgets · risk: read · paged (next_link, all_pages, max_pages)
List a subscription's budgets with current spend and forecast. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Network security groups#
Open or close ports, block an address: security rules change who can reach what, so the write actions always need approval for agents.
List Network Security Groups#
list_network_security_groups · risk: read · paged (next_link, all_pages, max_pages)
List the network security groups in a subscription, with their rules. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Create or Update NSG Rule#
create_or_update_nsg_rule · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Create or replace a security rule in a network security group.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
nsg_name | string | yes | Network security group name |
rule_name | string | yes | Rule name |
priority | number | yes | Priority 100-4096 (lower runs first) |
direction | string | no | Inbound or Outbound (default Inbound) |
access | string | no | Allow or Deny (default Deny) |
protocol | string | no | Tcp, Udp, Icmp or * (default Tcp) |
source_address_prefix | string | no | Source CIDR, IP, service tag or * (default *) |
source_port_range | string | no | Source ports (default *) |
destination_address_prefix | string | no | Destination CIDR, IP, service tag or * (default *) |
destination_port_range | string | yes | Destination port or range, e.g. 22 or 8000-8100 |
description | string | no | Why the rule exists |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Delete NSG Rule#
delete_nsg_rule · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds)
Delete a security rule from a network security group.
| Input | Type | Required | Description |
|---|---|---|---|
subscription_id | string | no | Subscription ID (the connector's default subscription when empty) |
resource_group | string | yes | Resource group name |
nsg_name | string | yes | Network security group name |
rule_name | string | yes | Rule name |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).
Microsoft Entra ID (users and groups)#
Basic directory lookups and group membership through Microsoft Graph (no other UserTasks connector covers these). Needs Graph application permissions: User.Read.All, GroupMember.Read.All, and GroupMember.ReadWrite.All to change membership.
List Users#
list_users · risk: read · paged (next_link, all_pages, max_pages)
List directory users (filter e.g. startswith(displayName,'A')). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
select | string | no | Fields (default id,displayName,userPrincipalName,mail,accountEnabled) |
filter | string | no | OData filter |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Get User#
get_user · risk: read
Get a user by object ID or user principal name.
| Input | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | Object ID or user principal name |
select | string | no | Fields (default id,displayName,userPrincipalName,mail,accountEnabled,jobTitle,department) |
Outputs: id (string), displayName (string), userPrincipalName (string), mail (string), accountEnabled (boolean).
List Groups#
list_groups · risk: read · paged (next_link, all_pages, max_pages)
List directory groups (filter e.g. displayName eq 'Ops'). Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
select | string | no | Fields (default id,displayName,mail,securityEnabled,groupTypes) |
filter | string | no | OData filter |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
List Group Members#
list_group_members · risk: read · paged (next_link, all_pages, max_pages)
List the direct members of a group. Pass next_link back for the next page, or set all_pages.
| Input | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | Group object ID |
select | string | no | Fields (default id,displayName,userPrincipalName,mail) |
top | number | no | Items per page |
Outputs: value (array), count (number), next_link (string), truncated (boolean).
Add Group Member#
add_group_member · risk: destructive
Add a user, group or service principal to a group (grants whatever the group grants).
| Input | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | Group object ID |
member_id | string | yes | Object ID of the user, group or service principal to add |
Outputs: success (boolean).
Remove Group Member#
remove_group_member · risk: destructive
Remove a member from a group.
| Input | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | Group object ID |
member_id | string | yes | Object ID of the member to remove |
Outputs: success (boolean).
Any ARM API and operation status#
The escape hatch for everything else, and a status check for long-running operations started without waiting.
Call Any ARM API#
arm_request · risk: destructive · long-running (wait_for_completion, wait_timeout_seconds) · paged (next_link, all_pages, max_pages)
Call any Azure Resource Manager API in the connector's cloud: method, path and api-version. High risk: it can change or delete anything the service principal may.
| Input | Type | Required | Description |
|---|---|---|---|
method | string | yes | GET, PUT, PATCH, POST or DELETE (default GET) |
path | string | yes | Path from /subscriptions/… or /providers/… (a full https://management… URL is accepted) |
api_version | string | no | api-version (required unless the path has one) |
body | object | no | JSON request body |
query | object | no | Extra query parameters: {"$filter":"…"} |
Outputs: status (string), result (object), value (array), next_link (string), operation_url (string).
Get Operation Status#
get_operation_status · risk: read
Check a long-running operation by the operation_url an action returned (status InProgress, Succeeded, Failed or Canceled, and the result once done).
| Input | Type | Required | Description |
|---|---|---|---|
operation_url | string | yes | operation_url from an earlier action |
Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).