Skip to content

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.

Last updated 28 min read Edit this page on GitHub
On this page

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#

  1. In the Azure portal, go to Microsoft Entra ID → App registrations → New registration. Note the Application (client) ID and Directory (tenant) ID.
  2. 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.
  3. Give the app roles in Access control (IAM) on the subscription, resource groups or resources it should manage (see Permissions).
  4. 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).
  5. 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.
azure.yamlYAML
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}
Bash
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#

CloudSign-inResource Manager
Azure (global)login.microsoftonline.commanagement.azure.com
Azure US Governmentlogin.microsoftonline.usmanagement.usgovcloudapi.net
Azure China (21Vianet)login.chinacloudapi.cnmanagement.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:

OutputMeaning
statusSucceeded, Failed, Canceled or InProgress (still running when the wait ended)
donetrue once Azure finished
operation_urlPass to Get Operation Status to check again later
resultThe resource or the operation's result (for example the What-If changes, or Run Command output)
errorAzure'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).

InputTypeRequiredDescription
subscription_idstringnoSubscription 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
filterstringnoOData filter, e.g. tagName eq 'env' and tagValue eq 'prod'
topnumbernoItems 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
locationstringyesAzure region (e.g. eastus, westeurope)
tagsobjectnoTags 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
filterstringnoOData filter, e.g. resourceType eq 'Microsoft.Compute/virtualMachines' or tagName eq 'env'
expandstringnoExtra fields, e.g. createdTime,changedTime,provisioningState
topnumbernoItems 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
filterstringnoOData filter
topnumbernoItems 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.

InputTypeRequiredDescription
resource_idstringyesFull resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name>
api_versionstringnoAPI 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.

InputTypeRequiredDescription
resource_idstringyesFull resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name>
api_versionstringnoAPI 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.

InputTypeRequiredDescription
resource_idstringyesScope: /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).

InputTypeRequiredDescription
resource_idstringyesScope: /subscriptions/<id>, a resource group ID or a resource ID
tagsobjectyesTags as a JSON object, e.g. {"env":"prod","owner":"ops"}
operationstringnoMerge (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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
namespacestringyesProvider 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
namespacestringyesProvider 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
status_onlybooleannoReturn 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
expandstringnoinstanceView (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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
skip_shutdownbooleannoSkip 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
hibernatebooleannoHibernate 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
vm_sizestringyesNew 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
command_idstringnoRunShellScript (Linux) or RunPowerShellScript (Windows) (default RunShellScript)
scriptarrayyesScript lines as a JSON array, or one string (split into lines)
parametersarraynoScript 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
vmobjectyesVirtual 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
vm_namestringyesVirtual machine name
force_deletionbooleannoForce 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale set name
capacitynumberyesInstance 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale set name
instance_idsarraynoInstance 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale set name
instance_idsarraynoInstance 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale set name
instance_idsarraynoInstance 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale set name
instance_idsarraynoInstance 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
scale_set_namestringyesScale 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
snapshot_namestringyesSnapshot name
locationstringyesAzure region (e.g. eastus, westeurope)
source_disk_idstringyesResource ID of the disk to snapshot
incrementalbooleannoIncremental snapshot (default true)
tagsobjectnoTags 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp Service or Function app name
soft_restartbooleannoSoft restart (reload configuration without recycling the process)
synchronousbooleannoReturn only when the restart has finished

Outputs: success (boolean).

Stop Web App#

stop_web_app · risk: write

Stop an App Service or Function app.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp Service or Function app name

Outputs: success (boolean).

Start Web App#

start_web_app · risk: write

Start a stopped App Service or Function app.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp Service or Function app name
settingsobjectyesSettings to add or change: {"FEATURE_X":"on"}
removearraynoSetting 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp Service or Function app name
slotstringyesSource slot, e.g. staging
target_slotstringnoTarget slot (default production)
preserve_vnetbooleannoKeep 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
app_namestringyesApp 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
cluster_namestringyesAKS 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
cluster_namestringyesAKS 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
cluster_namestringyesAKS 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
cluster_namestringyesAKS 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
cluster_namestringyesAKS cluster name
node_poolstringyesNode pool name
countnumberyesNode 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
account_namestringyesStorage 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
account_namestringyesStorage account name (3-24 lowercase letters and digits)
locationstringyesAzure region (e.g. eastus, westeurope)
skustringnoSKU, e.g. Standard_LRS, Standard_ZRS, Standard_GRS (default Standard_LRS)
kindstringnoStorageV2 (default), BlockBlobStorage, FileStorage (default StorageV2)
tagsobjectnoTags 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
account_namestringyesStorage account name (3-24 lowercase letters and digits)
propertiesobjectnoProperties to change, e.g. {"allowBlobPublicAccess":false,"minimumTlsVersion":"TLS1_2"}
tagsobjectnoTags 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
account_namestringyesStorage 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
topnumbernoItems 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.

InputTypeRequiredDescription
vault_namestringyesKey Vault name (the <name> in https://<name>.vault.azure.net)
max_resultsnumbernoSecrets 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.

InputTypeRequiredDescription
vault_namestringyesKey Vault name (the <name> in https://<name>.vault.azure.net)
namestringyesSecret name
max_resultsnumbernoVersions 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.

InputTypeRequiredDescription
vault_namestringyesKey Vault name (the <name> in https://<name>.vault.azure.net)
namestringyesSecret name
versionstringnoVersion (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.

InputTypeRequiredDescription
vault_namestringyesKey Vault name (the <name> in https://<name>.vault.azure.net)
namestringyesSecret name (letters, digits and dashes)
secret_valuestringyesSecret value
content_typestringnoContent type hint, e.g. text/plain
tagsobjectnoTags as a JSON object, e.g. {"env":"prod","owner":"ops"}
enabledbooleannoEnabled (default true)
expiresstringnoExpiry (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).

InputTypeRequiredDescription
vault_namestringyesKey Vault name (the <name> in https://<name>.vault.azure.net)
namestringyesSecret name
versionstringnoVersion (latest when empty)
enabledbooleannoEnabled
expiresstringnoExpiry (ISO 8601 date-time or Unix seconds)
content_typestringnoContent type
tagsobjectnoTags 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.

InputTypeRequiredDescription
vault_namestringyesKey Vault name (the <name> in https://<name>.vault.azure.net)
namestringyesSecret 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.

InputTypeRequiredDescription
scopestringyesScope: /subscriptions/<id>, a resource group ID or a resource ID
filterstringnoOData 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.

InputTypeRequiredDescription
scopestringyesScope: /subscriptions/<id>, a resource group ID or a resource ID
filterstringnoOData 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.

InputTypeRequiredDescription
scopestringyesScope: /subscriptions/<id>, a resource group ID or a resource ID
rolestringyesRole name (e.g. Reader, Contributor) or role definition ID / GUID
principal_idstringyesObject ID of the user, group or service principal
principal_typestringnoUser, Group or ServicePrincipal (recommended: avoids replication-delay errors for new principals)
descriptionstringnoWhy 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.

InputTypeRequiredDescription
role_assignment_idstringyesRole 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
deployment_namestringyesDeployment name
templateobjectnoARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link
template_linkobjectnoTemplate link instead of an inline template: {"uri":"https://…/azuredeploy.json"}
parametersobjectnoParameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {})
modestringnoIncremental (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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
deployment_namestringyesDeployment name
templateobjectnoARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link
template_linkobjectnoTemplate link instead of an inline template: {"uri":"https://…/azuredeploy.json"}
parametersobjectnoParameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {})
modestringnoIncremental (default) or Complete (default Incremental)
result_formatstringnoFullResourcePayloads (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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
deployment_namestringyesDeployment name
templateobjectnoARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link
template_linkobjectnoTemplate link instead of an inline template: {"uri":"https://…/azuredeploy.json"}
parametersobjectnoParameters: {"name":{"value":…}} — plain values ({"name":"x"}) are wrapped for you (default {})
modestringnoIncremental (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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
deployment_namestringyesDeployment 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
filterstringnoOData filter, e.g. provisioningState eq 'Failed'
topnumbernoItems 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
deployment_namestringyesDeployment 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
deployment_namestringyesDeployment 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
deployment_namestringyesDeployment name
locationstringyesAzure region (e.g. eastus, westeurope)
templateobjectnoARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link
template_linkobjectnoTemplate link instead of an inline template: {"uri":"https://…/azuredeploy.json"}
parametersobjectnoParameters: {"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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
deployment_namestringyesDeployment name
locationstringyesAzure region (e.g. eastus, westeurope)
templateobjectnoARM template (JSON object). Bicep: compile with az bicep build first. Use this or template_link
template_linkobjectnoTemplate link instead of an inline template: {"uri":"https://…/azuredeploy.json"}
parametersobjectnoParameters: {"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.

InputTypeRequiredDescription
resource_idstringyesFull 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.

InputTypeRequiredDescription
resource_idstringyesFull resource ID: /subscriptions/<id>/resourceGroups/<rg>/providers/<namespace>/<type>/<name>
metric_namesstringyesComma-separated metric names, e.g. Percentage CPU
timespanstringnoISO 8601 interval, e.g. PT1H or 2026-11-01T00:00:00Z/2026-11-02T00:00:00Z (default PT1H)
intervalstringnoGrain, e.g. PT1M, PT5M, PT1H (default PT5M)
aggregationstringnoAverage, Maximum, Minimum, Total, Count (default Average)
filterstringnoDimension filter
topnumbernoItems 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
alert_statestringnoNew, Acknowledged or Closed
monitor_conditionstringnoFired or Resolved
severitystringnoSev0 … Sev4
resource_groupstringnoOnly alerts on this resource group
time_rangestringno1h, 1d, 7d or 30d (default 1d)
topnumbernoItems 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
alert_idstringyesAlert ID (the GUID at the end of the alert's id)
new_statestringyesNew, 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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).

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
rule_namestringyesAlert rule name
enabledbooleanyesEnabled

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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
filterstringyesOData 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'
selectstringnoFields, 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.

InputTypeRequiredDescription
workspace_idstringyesWorkspace ID (the GUID on the workspace overview page)
querystringyesKQL query, e.g. AzureActivity | where Level == "Error" | take 50
timespanstringnoISO 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.

InputTypeRequiredDescription
querystringyesResource Graph query, e.g. Resources | where type =~ 'microsoft.compute/virtualmachines' | project name, location, tags
subscriptionsarraynoSubscription IDs (the connector default when empty)
management_groupsarraynoManagement group IDs (instead of subscriptions)
topnumbernoRows per page (at most 1000) (default 100)
skip_tokenstringnoskip_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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
typestringnoActualCost, AmortizedCost or Usage (default ActualCost)
timeframestringnoMonthToDate, BillingMonthToDate, TheLastMonth, WeekToDate or Custom (default MonthToDate)
time_periodobjectnoFor Custom: {"from":"2026-11-01T00:00:00Z","to":"2026-11-27T23:59:59Z"}
granularitystringnoNone (totals) or Daily (default None)
groupingarraynoGrouping, e.g. [{"type":"Dimension","name":"ResourceGroupName"}] (at most 2) (default [])
filterobjectnoFilter 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
nsg_namestringyesNetwork security group name
rule_namestringyesRule name
prioritynumberyesPriority 100-4096 (lower runs first)
directionstringnoInbound or Outbound (default Inbound)
accessstringnoAllow or Deny (default Deny)
protocolstringnoTcp, Udp, Icmp or * (default Tcp)
source_address_prefixstringnoSource CIDR, IP, service tag or * (default *)
source_port_rangestringnoSource ports (default *)
destination_address_prefixstringnoDestination CIDR, IP, service tag or * (default *)
destination_port_rangestringyesDestination port or range, e.g. 22 or 8000-8100
descriptionstringnoWhy 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.

InputTypeRequiredDescription
subscription_idstringnoSubscription ID (the connector's default subscription when empty)
resource_groupstringyesResource group name
nsg_namestringyesNetwork security group name
rule_namestringyesRule 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.

InputTypeRequiredDescription
selectstringnoFields (default id,displayName,userPrincipalName,mail,accountEnabled)
filterstringnoOData filter
topnumbernoItems 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.

InputTypeRequiredDescription
user_idstringyesObject ID or user principal name
selectstringnoFields (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.

InputTypeRequiredDescription
selectstringnoFields (default id,displayName,mail,securityEnabled,groupTypes)
filterstringnoOData filter
topnumbernoItems 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.

InputTypeRequiredDescription
group_idstringyesGroup object ID
selectstringnoFields (default id,displayName,userPrincipalName,mail)
topnumbernoItems 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).

InputTypeRequiredDescription
group_idstringyesGroup object ID
member_idstringyesObject 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.

InputTypeRequiredDescription
group_idstringyesGroup object ID
member_idstringyesObject 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.

InputTypeRequiredDescription
methodstringyesGET, PUT, PATCH, POST or DELETE (default GET)
pathstringyesPath from /subscriptions/… or /providers/… (a full https://management… URL is accepted)
api_versionstringnoapi-version (required unless the path has one)
bodyobjectnoJSON request body
queryobjectnoExtra 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).

InputTypeRequiredDescription
operation_urlstringyesoperation_url from an earlier action

Outputs: status (string), done (boolean), operation_url (string), result (object), error (object).

Was this page helpful?