The long running operation is failed or been cancelled

Prev Next

Summary

When attempting to spin up a new Azure VM using a Power management-enabled template, the provisioning failed with the following error:

Error: “Long running operation is Failed or Cancelled.”

Control Error

Azure Error

Root Cause:

The failure occurred due to an incorrect page file configuration on the template VM. When Power Management (Hibernation) is enabled for an Azure template, certain prerequisites must be met; specifically, the page file must be configured on the C: drive rather than the D: drive. This misconfiguration prevented Azure from successfully completing the VM build process.

Resolution Steps

Step 1: Review Template Settings, Check if the affected template has Power Management enabled:

  • Log in to the Workspot Control.

  • Navigate to Templates → [Your Template Name].

  • Confirm that Power Management is set to Enabled.

(If Power Management is not required, disable it and rebuild the template.)


Step 2: Correct Page File Configuration

  • Launch the template VM in Azure. (If the Template is published, Clone the Template, and if the Template is in Preview, move to Draft)

  • Right-click on This PC → Properties → Advanced System Settings.

  • Under the Performance section, click Settings → Advanced → Virtual Memory.

  • Verify the drive configurations:

    • C: Drive → System managed (recommended)

    • D: Drive → No paging file

Before

A screenshot of a computer AI-generated content may be incorrect.

After Correction

  • Apply changes and reboot the template VM.

Step 3: Validate Pool Creation

  • Move the updated template to the Preview state.

  • Create a new pool using the corrected template.

  • Verify that the VM deployment status transitions to “Ready.”