What's the suggested method for securing accounts used to run PowerAutomate workflows?

Anthony 0 Reputation points
2023-10-02T14:04:54.07+00:00

I feel like I'm running in circles here and could use some direct assistance. I have to imagine this is a very common scenario. We have a few Azure accounts that are currently User accounts being used to run PowerAutomate workflows. The Azure Security Defaults are causing an issue with Multfiactor Authentication requiring re-authentication nearly every day. These workflows need to run indefinitely without human aid.

I've looked at Conditional Access for the account as well as creating an Azure Enterprise App.

I'm not finding a solution for Conditional Access to function indefinitely for a "service account" that could be signing in from any location. But I'm new to this and could be overlooking something.

The Azure App solution seems to require security keys rather than user credentials so I don't see how that works with connecting to a SharePoint or Teams or Form action in PowerAutomate. I've found examples of this connection working for Dataverse but not so much else.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,713 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,920 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,831 Reputation points
    2023-10-04T04:48:06.03+00:00

    Hi Anthony,

    Have you looked into using a Service Principal with your Power Automate workflows?

    Using Service Principal in Power Automate/Flow

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Using-Service-Principal-in-Power-Automate-Flow/ba-p/452086

    Guide for creating SP:

    Setup a Service Principal in Power Automate

    https://benediktbergmann.eu/2022/01/04/setup-a-service-principal-in-power-automate/


    If this is helpful please accept answer.