Setup process in Power Automate for desktop

Completed

Creating and running automation systems in Power Automate requires that you have access to make changes to the environments in your tenant and that you have the appropriate licenses and permissions. If you don't already have admin access to a valid tenant, you might want to start a free trial. Also, you need a Power Automate user plan with an attended RPA license to complete this module. You can sign up for a free trial if you don't already have this license.

In this unit, you complete two tasks:

  1. Set up a trial Power Automate environment. An environment is a space to store, manage, and share your organization’s business data, apps, and flows.
  2. Set up the Contoso Invoicing application, which you use throughout the Automate processes with Robotic Process Automation and Power Automate for desktop learning path to help you explore and learn the concepts and actions that are available in desktop flows.

If you completed the Build your first Power Automate for desktop flow module, you can skip to the next unit.

Create a trial environment with a database

After you sign in to a valid tenant, go to the Microsoft Power Platform admin center. You need to create a trial environment with a database. Select Environments and then select your automatically created environment: the Demo (default).

If you're using an existing tenant rather than creating a trial for this exercise, you can use the default environment. Or you can create a new one to keep it separate from your existing solutions.

Once you're in your chosen environment, you can add a database by selecting Add database. In the next dialog, specify the requested values but keep the defaults and then select Add. You might be prompted to sign in again before creating your database. Afterward, your database should provision appropriately.

Screenshot of the Add button in the Add database pane.

Creating your database might take a minute or so; afterward, you can continue to the next steps.

If you're using a trial environment, consider setting up a profile in your browser to prevent you from being signed out of your existing Microsoft account.

Software installation

The following exercises require you to install various software on your computer. The following steps guide you through the download and installation of Power Automate for desktop (including Power Automate machine runtime) and the Contoso Invoicing app.

If you already installed Power Automate for desktop, ensure that you're running the latest available version.

Power Automate for desktop

Go to Power Automate and sign in with the account that you used to create your environment and database. When you sign in, select My flows > Install > Power Automate for desktop.

Screenshot of the install Power Automate for desktop feature.

When the download completes, select the file to open and run the installer. You select the Next in the first dialog to begin the installation. In the Installation details (pictured here), ensure that you selected the option to Install the machine-runtime app to connect to the Power Automate cloud portal. Setting up the machine where you're going to connect your cloud flow to is an important step in making this work.

Screenshot of the installation details and the Install button.

You must agree to Microsoft's terms of use by selecting the last checkbox, and then you can select Install. This action installs the Power Automate package and the browser extensions for Microsoft Edge and Google Chrome.

When installation is complete, select the link of your preferred browser (if you have multiple browsers installed on your machine) and then follow the instructions to enable the extension. After the extension is enabled, you can launch the Power Automate for desktop app.

After you launch the app, sign in by using the account that you used to set up your environment and database.

Register a new machine

You must register your machine to connect it to a Cloud flow. Follow these steps to do that.

  1. Search your local machine for the Power Automate machine runtime app that you downloaded and installed with Power Automate desktop.

    Note

    If you didn't install the machine-runtime app during your installation, you can install it via Power Automate Desktop. Select Settings from the command bar and look for Machine settings at the bottom of the Settings panel. You can select Open machine settings which provides you a link to begin installation the machine runtime app.

  2. Sign in with your Microsoft account. Your machine should be automatically registered in the currently selected environment.

  3. If you wish to change the machine's working environment, select an environment from the dropdown to register the machine in. You can select Refresh in the upper right if necessary.

  4. Once your connection is complete, you see a green notification appear at the top of the app. In the Machine settings display, you see your machine's Name and you see the Machine environment display the environment you selected.

    Screenshot of the machine settings.

  5. Close the Power Automate machine runtime app.

If you return to the Power Automate cloud portal, you should be able to see your machine under More > Machines in the left hand panel.

Important

Power Automate Desktop flows can only run in one running environment at a time. If you need to change the running environment, you will need to run the Power Automate machine runtime app again to make the change.

Contoso Invoicing app

A major benefit of using desktop flows is the ability to take actions on desktop applications. For the flow that you create, you use an invoicing application to explore the concepts and actions that are available to you in desktop flows. After you complete the module, you can use what you learned to run desktop flows on your own applications and automate existing processes.

Download the Contoso Invoicing app, extract the contents, and then install the application and explore the elements.

Screenshot of the Contoso Invoicing application.

Now that we completed the necessary setup, let's continue on.