Understanding optimization workflows
  • 05 Aug 2026
  • 2 Minutes to read
  • Dark
    Light
  • Download PDF

Understanding optimization workflows

  • Dark
    Light
  • Download PDF

Article summary

Overview

A Workflow is a background task that runs on a predefined configuration to automate Azure resource management and reduce operational costs. Workflows evaluate target resources against conditions you define, and execute actions — such as purging storage data, shutting down virtual machines, or terminating idle sessions — either on a recurring schedule or on demand.

Workflows are scoped to a Cost group and are configured within the Optimization > Workflows section.

Business value

Workflows eliminate the need for manual, recurring resource management tasks. By automating actions such as storage cleanup, VM shutdown, and session termination, they reduce Azure spend and administrative overhead consistently — without requiring engineers to monitor and act on resource states manually.

How it works

Each workflow is built around three core elements:

  • Target resource — the Azure resource or resource group the workflow acts on (for example, a storage account, a resource group containing VMs, or an AVD host pool).
  • Condition or filter — the criteria that determine when the workflow takes action (for example, blobs older than a specified number of days, VMs below a CPU utilization threshold, or all idle sessions in a host pool).
  • Execution schedule — the timing and recurrence of the workflow. All workflows also support on-demand execution independent of their schedule.

When a workflow runs, it evaluates the target against the configured condition and performs the defined action on any resources that match. Results are available in the View runs section for each workflow.

Workflow types

Cost Analyzer includes three workflow types, each targeting a specific Azure resource category:

WorkflowResource typeWhat it does
Storage account workflowAzure Storage (blob containers, file shares)Purges blobs or files, or changes blob access tiers, based on age or filter criteria
Start/stop virtual machines workflowAzure Virtual MachinesShuts down VMs that drop below a configured utilization threshold during a defined active window
Kill idle sessions workflowAzure Virtual Desktop (AVD)Terminates idle or disconnected user sessions in a host pool

Shared behavior

All workflow types share the following behavior:

  • Scheduling — workflows run on the recurrence and time zone you configure. You can also trigger any workflow manually at any time.
  • Notification channels — each workflow can be configured to send alerts on execution via your organization's notification channels.
  • View runs — each workflow maintains a run history showing completed executions and scheduled runs still awaiting processing.
  • On-demand execution — any workflow can be triggered immediately via the Actions menu next to the workflow, independent of its schedule.

Prerequisites

Required permissions

The following permissions apply to all workflow types.

RolePermission levelAccess
Account owner, Owner, ContributorFull access to Workflows
Custom roleOptimization feature enabled + Workflows: ReadView workflows
Custom roleOptimization feature enabled + Workflows: ManageFull access to Workflows (create, update, delete, run)

Workflow permission.jpg

The Turbo360 Service principal also requires Azure-level access on the target subscription or resource to execute workflow actions. The specific Azure role required varies by workflow type — refer to the individual workflow articles for details.


Was this article helpful?