Microsoft Power Automate

Nowadays, automation became an essential part of every single job in order to save time in your day-to-day tasks. Automation is part of IT jobs, but it is important to think automation even if you do not work in IT.

Automation can be done using scripting languages, but you can also use low-code application if you do not have scripting skills. Microsoft has released a new Power Automate Desktop app on Windows 10 that helps you to automate your tasks on your Windows 10 device. The Microsoft Power Automate desktop app was only available to Windows 10 Enterprise users but recently, Microsoft has announced that the automation tool is available for free to all Windows 10 users.

First, you must download the app on your Windows 10 using the following link:, then double click on the installer

The Microsoft Power Automate desktop

Click Next to start the installation. Do not forget to select the following checkbox if you want to use web apps in flows

Start the installation

At the end of the installation, you can launch the Power Automate Desktop app

Launch the Power Automate Desktop app

You must sign in with a Microsoft account

Sign in with a Microsoft account

After sign in, the desktop app will open, and you will see the New Flow button to create your first flow.

New Flow

Enter a friendly name and click Create

Enter a friendly name

You will see a new page with 3 sections:

  1. Actions: on the left, you will see the available actions that you can use in your flow to automate your task.
  2. Flow: it is the main section in which you will create your flow by dragging dropping the actions. You will be able to use the output of an action and redirect it to the input of the next action.
  3. Variables: on the right, you will can create variables to use in your flow.

Page with 3 sections

Now, you can create a flow depending on your needs. In this guide, I will create a simple flow that will:

  1. Connect to my Azure subscription
  2. Get the virtual machines information
  3. And write the information in a text file

These actions are pretty simple to automate using a PowerShell script for example, but if you do not have PowerShell skills, it is the best way to achieve this!

Create a flow depending on your needs

First, we need to use the “Create session” action in the Azure section. In this action, I use a service principal:

Azure section

In the second action, I use the “Get subscription” and I just need to enter the dynamic variable named “%AzureClient%” which is the output variable of the previous action.

Get subscription

Then, I use the “Get virtual machines” with the same variable and if needed, it is possible to filter by resource group and status.

Get virtual machines

To finish, I use the “Write text to file” action to send the result in a text file. In this action, just add the “%VirtualMachineInfo%” variable and the file path.

Write text to file

VSAN from StarWind is software-defined storage (SDS) solution created with restricted budgets and maximum output in mind. It pulls close to 100% of IOPS from existing hardware, ensures high uptime and fault tolerance starting with just two nodes. StarWind VSAN is hypervisor and hardware agnostic, allowing you to forget about hardware restrictions and crazy expensive physical shared storage.

Build your infrastructure with off-the-shelf hardware, scale however you like, increase return on investment (ROI) and enjoy Enterprise-grade virtualization features and benefits at SMB price today!

That is all. Now, click the “play” button to run the flow and check the result. Open the text file and confirm the content:

Open the text file and confirm the content

Please note that you do not need to open the file to confirm the result, you can check the variables on the right side to see the value of each variable.

Check the variables

Back to blog