Skip to main content

Notifications

Community site session details

Community site session details

Session Id : qnGpNcu8fKAoLc40FNrj+K
Power Automate - General Discussion
Answered

Create Azure VM

Like (0) ShareShare
ReportReport
Posted on 23 Jul 2020 22:48:55 by 92

How can I create an Axure VM. I see several options for Azure VM but none have the possibility to create a VM. We are trying to automate this process from a Approval work flow. Has anyone found or done this.  WE also tried to save a VM template to see if we would be able to ex

  • mailrhk Profile Picture
    14 on 22 Feb 2023 at 09:26:57
    Re: Create Azure VM

    Hi, is there any way to get Parse JSON for creating vm, i followed above article but stuck in parse JSON.

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on 24 Jul 2020 at 05:09:06
    Re: Create Azure VM

    Hi @drako 

     

    One of the best practices followed while creating azure infrastructure deployments is using ARM templates. I have a blog post here: https://www.bythedevs.com/post/automate-azure-infrastructure-deployments-with-power-automate that shows how to invoke the ARM action by connecting to azure and deploying a storage account (you can replace that with a VM template). 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on 24 Jul 2020 at 03:34:21
    Re: Create Azure VM

    Hi Drako,

     

    You can also try azure automation option and it is a premium one. You create a job in azure to create virtual machine and execute the same from power automate. Follow the below article. You should create a resource manager template for vm and then using runbook you can automate vm creation.

     

    https://docs.microsoft.com/en-us/azure/automation/automation-deploy-template-runbook

     

    Azureautomation.JPG

  • Community Power Platform Member Profile Picture
    on 24 Jul 2020 at 03:04:58
    Re: Create Azure VM

    Hi Drako,

     

    There is no direction actions available in power automate or Winatuomation tool bought by microsot. refer the pic below.

     

    But you can use powershell script to connect azure and create virtual machine from WinAutomation desktop rpa software owned by microsoft now. You can use your power automate license to use this tool.  You can use the below link to download this software

    https://www.winautomation.com/

    Also refer the below link to know the about the sample about how to create VM using Powershell tool.

    https://docs.microsoft.com/en-us/azure-stack/user/azure-stack-quick-create-vm-windows-powershell?view=azs-2002

    PA-AzureVM.JPG

    Below is one of the sample automation to monitor the database size from multiple servers and update the data in SharePoint online using Powershell. This can be automated and run in an unattended manner.

     

    unattendedflowwithpwershell.JPG

     

    Happy Automating

     

    Cheers

     

    Achyut

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,765 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard