Idle Session Management Workflow for AVD
  • 07 Jan 2026
  • 1 Minute to read
  • Dark
    Light
  • PDF

Idle Session Management Workflow for AVD

  • Dark
    Light
  • PDF

Article summary

Introduction

Kill idle sessions is a workflow that enables automated termination of idle user sessions in an Azure Virtual Desktop (AVD) host pool. The workflow can be executed on demand or configured to run on a schedule, helping organizations proactively manage session sprawl and optimize resource usage.

By automatically identifying and terminating idle or disconnected sessions, this workflow helps reduce unnecessary consumption of compute resources, improve host pool availability, and control operational costs.

It eliminates the need for manual session cleanup while ensuring that idle sessions do not continue to occupy system resources.

Sample Use Case

An organization uses Azure Virtual Desktop to support a large remote workforce operating primarily during business hours. However, many users disconnect without properly signing out, leaving idle sessions running overnight and on weekends. These idle sessions consume resources and prevent optimal scaling of the host pool.

By creating a Kill idle sessions workflow scheduled to run after business hours, the organization can automatically terminate all idle sessions in the host pool. This ensures that resources are freed up, virtual machines can scale down efficiently, and costs are reduced—without requiring manual intervention from administrators.

Workflow setup

  1. Click New configuration -> Host Pool -> Kill idle sessions in the Workflows section.
    Workflow.png
  2. Provide a name to the workflow.
  3. Select the required Azure Virtual Desktop (AVD) host pool from the list of available subscriptions accessible to the cost group.

Set resource.png

  1. Control the frequency and timing of workflow execution.

Workflow.png.png

  1. Configure the desired notification services to receive alerts for workflow executions.

By checking one or both the options under Advanced settings, users can authorize the workflow's notifications to be received in specific situations.

Notification services.png

  1. Press the Save button to finish setting up the workflow.

Overview.png

Run history

The View Runs option offers details of both processed runs and scheduled runs awaiting processing.

View runs.png

On demand runs

In order to run a configured workflow manually, select Run from the context menu of the workflow configuration.

On demand run.png


Was this article helpful?