Jan Vidar Elven
Microsoft MVP Security, Cloud and Datacenter Architect
I’m happy to announce that I’m part of the amazing global initiative of automation bootcamps in starting from February 5th to 20th 2021!
Update: The Azure Automation track has now been pushed back one week from February 20th to February 27th.
I will speak about how Azure Serverless Automation solutions like Azure Functions, Logic Apps and more can be protected by Azure AD and how Power Platform can securely send requests to trigger your automation scenarios.
In this article I’m going to build on my previous blog posts in this series where I have written about how to add Azure AD OAuth authentication and authorization to your Logic Apps and expose them as an API. For reference the links to these blog post articles are here:
Protect Logic Apps with Azure AD OAuth – Part 1 Management Access | GoToGuy Blog Protect Logic Apps with Azure AD OAuth – Part 2 Expose Logic App as API | GoToGuy Blog If you want to connect to API’s using Power Platform (Power Automate Flows, PowerApps etc.
Recently I came across a personal scenario where I use Hugo and GitHub Pages as a team site for a Soccer team I’m coaching and wanted to automate some updates to the web site. I’ve written a blog post previously on how I organized trainings at home using Power Platform: How I as a Soccer Coach…. | GoToGuy Blog , and I am now using Github Pages and Hugo for publishing some statistics and more for that scenario.
This blog article will build on the previous blog post published, Protect Logic Apps with Azure AD OAuth – Part 1 Management Access | GoToGuy Blog , which provided some basic understanding around authorizing to Logic Apps request triggers using OAuth and Access Tokens.
In this blog I will build on that, creating a scenario where a Logic App will be exposed as an API to end users. In this API, I will call another popular API: Microsoft Graph.
Azure Logic Apps are great for creating workflows for your IT automation scenarios. Logic App workflows can be triggered using a variety of sources and events, including schedules, but a popular trigger is using a HTTP trigger for starting the Logic App workflow interactively or on-demand from outside the Logic App.
To trigger a Logic App using a HTTP trigger, you need to know the endpoint URL, for example:
This URL consist of the endpoint address of the Logic App and workflow trigger, and with the following query parameters:
This blog post is part of the Blog Series: Power’ing up your Home Office Lights with Power Platform. See introduction post for links to the other articles in the series:
[https://gotoguy.blog/2020/12/02/blog-series—powering-up-your-home-office-lights-using-power-platform—introduction/ ](https://gotoguy.blog/2020/12/02/blog-series---powering-up-your-home-office-lights-using-power-platform---introduction/ )
In this last part of the blog series, we will build on the previous blog post where we could get the presence status from Teams to the Hue Power App. Now we will use Microsoft Graph and subscribe to change notifications for presence, so that both the Power App and my Hue Lights will automatically change status based on the presence.