Regenerating a SAS Key for an HTTP-Triggered Flow in Power Automate

As mentioned in our previous blog, we discussed securing workflows by adding OAuth authentication to ensure that only authorized users within the tenant or specific individuals can execute the flow.

However, when dealing with HTTP-triggered flows with anonymous access, keeping your Power Automate workflows secure is essential. Secure Access Signature (SAS) keys help protect these flows by controlling access to their HTTP endpoints, ensuring that only authorized requests can execute a flow.

Whenever a new flow is created with the trigger “When an HTTP request is received”, and the “Who can trigger the flow?” option is set to “Anyone”, Power Automate automatically generates an HTTP POST URL containing a SAS key. This key is embedded within the URL, as shown below.

While this mechanism provides security, SAS keys may need to be regenerated over time due to various reasons, such as key compromise, compliance with security policies, or periodic key rotation to mitigate potential risks.

In this blog, we will walk through the steps to regenerate a SAS key for an HTTP-triggered flow.

Steps to Regenerate the SAS Key

1. Sign in toPower Automate Portal and navigate to your flows.

2. Find the flow that contains the HTTP Trigger Flows and click on Edit.

3. Select the When a HTTP request is received step and note down the existing HTTP POST URL that includes the current SAS key.

HTTP-Triggered Flow in Power Automate

4. Navigate back to the Details page and open your browser’s developer tools (F12).

HTTP-Triggered Flow in Power Automate

5. Go to the Network tab and Filter requests by typing “runs?api-version”.If you are unable to find the request refresh the Detail page.

6. Click on runs?api-version.

HTTP-Triggered Flow in Power Automate

7. Under the Header section, copy the Request URL and replace “runs” with “regenerateAccessKey” within the URL.

HTTP-Triggered Flow in Power Automate

8. Scroll down to the Request Header section and note down Authorization Access Token, as shown in the screenshot below.

HTTP-Triggered Flow in Power Automate

9. Open Postman and create a new POST request using the modified Request URL.

HTTP-Triggered Flow in Power Automate

10. Under the Authorization tab, select Bearer Token as the authentication type and paste the Access Token into the token field.

HTTP-Triggered Flow in Power Automate

11. Click Send. If successful, you will receive a 200 OK response, confirming that the SAS key has been regenerated.

HTTP-Triggered Flow in Power Automate

12. To verify the new SAS key, return to Power Automate and edit the flow. Compare the new HTTP POST URL with the previous one to confirm that the key has changed.

HTTP-Triggered Flow in Power Automate

Conclusion

Regenerating SAS keys for HTTP-triggered flows is a vital security measure that helps protect your Power Automate workflows from unauthorized access. By following these steps, you can efficiently update the SAS keys in your Power Automate flow while ensuring continued security and functionality.

Microsoft Power Platform

The post Regenerating a SAS Key for an HTTP-Triggered Flow in Power Automate first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Original Post https://www.inogic.com/blog/2025/03/regenerating-a-sas-key-for-an-http-triggered-flow-in-power-automate/

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...