Share via

Unable to create a connection in "Add a task" in Azure VM automation task

heng yeow (nova) 20 Reputation points
2026-03-27T03:07:52.43+00:00

I would like to add a task on my Azure VM to start the VM, after clicking the "create" connection, it stuck there with no response, no error message as well. Is my account missing certain access right/role to do this?

User's image

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Answer accepted by question author
  1. Manish Deshpande 5,255 Reputation points Microsoft External Staff Moderator
    2026-04-06T09:26:37.87+00:00

    Hi Heng Yeow (nova),

    Thank you for reaching out with the details and screenshot of the issue. I understand you're trying to set up a Start Virtual Machine automation task on your Azure VM, but the process gets stuck at "Creating..." (or "Connecting...") after clicking Create connection, with no error message or further progress. This is a common issue when setting up automation tasks.

    Automation tasks for Azure Virtual Machines are lightweight workflows powered by Azure Logic Apps (they create a Logic App and API connections behind the scenes in your resource group). The "Create connection" step authenticates to your Azure resources (in this case, the Azure VM connection and the Office 365 Outlook connection).

    Root cause (most common): Your account is missing the necessary Azure RBAC permissions to create Logic Apps and API connections. The process requires at least Contributor permissions at the Resource Group level (where your VM lives). Without this, the UI simply hangs with no error.

    Please follow these steps in order:

    1. Verify and assign the required role
      • Go to the Resource Group that contains your Azure VM.
      • In the left menu, select Access control (IAM) → View my role assignments (or Check access).
      • If you do not see Contributor (or Owner), ask your Azure administrator (or subscription owner) to assign you the Contributor role scoped to this Resource Group.
      • Alternative (more limited): Logic App Contributor role also works for this scenario.
    2. Retry after role assignment
      • Wait 1–2 minutes for the permission to propagate.
      • Open the Azure portal in Incognito/Private mode (or clear your browser cache/cookies).
      • Navigate back to your VM → Automation → Tasks → Add a task → Select the Start Virtual Machine template.
      • Under Authenticate, click Create for each connection and sign in with your Azure account when prompted.
    3. Complete the task setup
      • Once both connections show as Connected, proceed to configure the schedule and create the task.

    This should resolve the stuck "Creating..." screen immediately.

    Link :
    https://dotnet.territoriali.olinfo.it/en-us/azure/logic-apps/create-automation-tasks-azure-resources

    If the issue persists please comment into comment section we will be happy to assist you further.

    Thanks,
    Manish.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.