Storage account workflow
  • 05 Aug 2026
  • 4 Minutes to read
  • Dark
    Light
  • Download PDF

Storage account workflow

  • Dark
    Light
  • Download PDF

Article summary

Overview

A Workflow is a background task that runs on a predefined configuration to optimize Azure cost. You can trigger a workflow manually or schedule it to run at specific hours of the day.

The Storage account workflow automates file purging and blob access tier changes for storage accounts, removing outdated data and moving infrequently accessed blobs to lower-cost tiers. This enforces data lifecycle policies consistently and reduces manual effort.

Business value

Automating storage cleanup and tiering reduces manual maintenance work and keeps storage costs down by removing outdated data and shifting cold data to lower-cost tiers on a consistent, recurring basis.

Prerequisites

Required permissions

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)

Storage account workflow permission.jpg

The Service Principal used by Turbo360 requires Azure-level access on the target subscription or storage account to execute purge and access-tier-change actions.

How it works

The Workflow feature in Cost Analyzer offers three task types for storage accounts:

  • Purge blobs from storage blob container — streamlines the automated deletion of blobs from a storage container, following the specified configuration.
  • Change access tier of blobs in Storage blob container — automates changing the access tier of blobs as per the provided workflow configuration.
  • Purge files from Storage file share — streamlines the automated deletion of files from a storage file share, following the specified configuration.

Setting up a workflow for these tasks automates clearing storage data from storage services and optimizes the storage size of blob data. The workflow runs according to the time zone and configuration you set.

Steps

Use the following steps to create and run a storage account workflow. Navigate to Optimization > Workflows within a Cost group to get started.

Create a workflow

Creating a workflow defines the task type, resource target, scheduling, and notification settings for automated storage management.

  1. Go to Optimization > Workflows in a Cost group.
  2. Click the New configuration dropdown and select the required task type — Purge blobs from storage blob container, Change access tier of blobs in Storage blob container, or Purge files from Storage file share.

New configuration.jpg

  1. Enter the name of the workflow and click Next.

Add workflow 1.PNG

  1. Select the subscription, storage account, and the respective blob container or file share that requires processing.

Set resource 1.gif

  1. Define the configuration that determines when the action runs.

Condition 1.PNG

  1. Control the timing and frequency of the workflow execution.

Scheduling.png

  1. Choose the notification channels to receive alerts on workflow executions. Under Advanced settings, check one or both options to authorize notifications for specific situations.

notification channels 2.PNG

  1. Review the workflow configuration summary and click Save to complete setup.

Summary 1.PNG

The View Runs section shows both processed runs and scheduled runs awaiting processing.

View runs 1.PNG

View runs section 1.PNG

Run a workflow on demand

Running a workflow on demand lets you trigger storage cleanup or tiering immediately without waiting for the next scheduled execution.

  1. Go to Optimization > Workflows in a Cost group.
  2. Click the Actions menu next to the workflow.
  3. Select Run.

Manual run.jpg

Example scenario

A team manages a storage account used by a development environment. Blobs accumulate daily from build artifacts and test outputs, inflating storage costs. They create a Purge blobs from storage blob container workflow that runs nightly at midnight, targeting the build artifacts container and deleting blobs older than 7 days. Storage costs drop as outdated files are automatically removed on a recurring basis without manual cleanup.

Troubleshooting

  1. The workflow runs but no blobs are purged or tiers changed
    Cause: The configured condition doesn't match any blobs in the target container — for example, the age or filter criteria are too restrictive.
    Fix: Review the condition settings in the workflow configuration and confirm they match the expected blob population.

  2. The workflow fails to execute on schedule
    Cause: The Service Principal used by Turbo360 lacks the required Azure-level access on the target storage account.
    Fix: Grant the required Azure role to the Service Principal on the storage account or subscription, then trigger the workflow manually to verify access.

  3. Notifications for workflow runs aren't being received
    Cause: The notification channel wasn't configured, or the wrong channel was selected during setup.
    Fix: Reopen the workflow configuration and confirm the correct notification channel is selected under Advanced settings.

  4. The View Runs section shows no completed runs
    Cause: The workflow hasn't triggered yet, or the schedule is set to a future time.
    Fix: Check the scheduling settings and confirm the timing is correct, or trigger the workflow manually to confirm it runs successfully.

  5. The access tier of blobs didn't change as expected
    Cause: The target blobs are already in the configured tier, or the filter condition excluded them.
    Fix: Verify the access tier configuration and confirm the blob population in the target container meets the filter criteria.

FAQs

  1. Can a single workflow perform more than one task type (e.g. purge blobs and change access tier together)?
    No. Each workflow is created for a single task type — Purge blobs from storage blob container, Change access tier of blobs in Storage blob container, or Purge files from Storage file share — selected from the New configuration dropdown at creation.

  2. Can I run a scheduled workflow immediately instead of waiting for its next scheduled time?
    Yes. Click the Actions menu next to the workflow and select Run to trigger it on demand, independent of its schedule.

  3. Where can I check whether a workflow has run and what happened?
    Open the View Runs section for the workflow. It shows both completed runs and scheduled runs still awaiting processing.


Was this article helpful?