Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Robotic process automation (RPA) uses software bots to emulate human interactions in a graphical user interface like a desktop application to automate repetitive and manual tasks. Hosted RPA uses Microsoft infrastructure running in Azure to allow organizations to run RPA quickly and at scale in the cloud, without needing to provision and maintain their own static infrastructure.
Power Automate supports two hosted RPA scenarios. Hosted machines run attended or unattended RPA, allowing citizen and pro developers to build or test automations and business users to run them. Hosted machine groups run unattended RPA in production, optimizing resources for higher efficiency and lower cost with automatic scaling and dynamic load balancing.
Tip
This article provides an example scenario and a generalized example architecture to illustrate how to scale RPA operations using hosted RPA in Power Automate for desktop. The architecture example can be modified for many different scenarios and industries.
Architecture diagram
Workflow
The following steps describe the workflow that's shown in the example architecture diagram:
Azure Compute Gallery: Identify an available Azure Compute Gallery, then create the VM image definition and image version mapped to a custom VM image source.
Custom VM image: From the custom VM image source, create the VM image to serve as the baseline for hosted RPA in Power Automate.
Hosted RPA: Assign the appropriate license to the Power Platform environment.
Hosted machine group: Use the Power Automate portal to create a hosted machine group and specify the maximum and committed number of bots for the group.
Desktop flow connection: In the parent cloud flow, create a desktop flow connection that points to the hosted machine group.
Components
Power Platform environment: Contains Power Platform resources such as Power Automate cloud flows and desktop flows.
Microsoft Azure: Includes resources like Azure Compute Gallery, virtual machine (VM) image definition, VM image source, and Virtual Networks that are used to create and share custom VM images in Power Automate portal.
Power Automate: Provides the hosted RPA service that runs unattended automations in the cloud.
Azure Compute Gallery: A service that allows you to create and manage custom VM images, which can be shared with Power Automate for use in hosted RPA.
Scenario details
Organizations that need to run RPA automations at scale, where workloads run on multiple machines, can use this architectural pattern to scale operations without provisioning their own infrastructure.
Potential use cases
Here are some example use cases for hosted RPA in Power Automate:
Processing end-of-quarter financial data, which typically requires multiple machines to handle high transaction volumes.
Processing high-priority daily work items in the work queue quickly to prevent SLA violations.
Addressing a significant backlog of shipment orders in SAP during the holiday season by using Power Automate for desktop to automate user interface tasks.
Considerations
These considerations implement the pillars of Power Platform Well-Architected, a set of guiding tenets that improve the quality of a workload. Learn more in Microsoft Power Platform Well-Architected.
Reliability
Design for resilience: Hosted machine groups ensure resilience by configuring maximum and committed bot numbers to process work items.
Security
Protect hosted machine group secrets: Use a secure vault like Azure Key Vault to manage and secure credentials for the hosted machine group.
Use credentials in Power Automate: Switch from using a simple username and password to credentials in Power Automate to manage connection credentials more efficiently and prevent disruptions caused by unexpected password changes.
Performance Efficiency
Optimize infrastructure usage: Evaluate the overall automation workload requirements. Develop a strategy to maintain machine utilization in a hosted machine group above a specified threshold, ensuring compliance with business SLA policies.
Experience Optimization
Implement a consistent maintenance procedure: When you need to update the custom VM image used by the hosted machine group, follow a standard procedure that uses maintenance mode to indicate an ongoing update. Note that when the VM image is updated, all hosted bots complete their ongoing desktop flow runs before being reprovisioned with the new VM image.
Contributors
Microsoft maintains this article. The following contributors wrote this article.
Principal authors:
- Jay Padimiti, Principal Program Manager
Next steps
Review Hosted machine group.
Follow these high-level steps to set up a solution architecture that uses hosted RPA in Power Automate:
Share the Azure Compute Gallery with the Power Automate hosted machine group service principal and makers.
Add a new custom VM image and point to the custom VM image in the Azure Compute Gallery.
Configure the desktop flow connection in the parent cloud flow to use the hosted machine group as the target for the RPA automation.
Monitor your Power Automate RPA application. Track the performance of the hosted machine group and your RPA automation by monitoring the machine run group and desktop flow run sections in the Power Automate portal.