Intune Webhook Automation

Intune Automation – Set a device action using a webhook Scenario: You work as Intune administrator and you receive a legit call saying that a user lost his laptop. You need to wipe the device as soon as possible. In this post you create a runbook that can be invoked using a webhook with a parameter. The webhook call can be integrated in any application You will do the following: Create Automation account and a PowerShell runbook Create Webhook Create Demo PowerShell script to invoke the webhook Test the automation Note: the PS scripts used in this post are based on Microsoft Graph API Intune Templates that can be found at this location https://github.com/microsoftgraph/powershell-intune-samples Create Automation Account and Runbook Create Automation Account This is similar with other automation you can find on my blog. If you already have an automation account you can skip this step Sign in to the Azure portal using your account credentials Click Create a resource Search for Automation Select automation account and click Create in the next blade Add an account name Assign a resource group or create a new one Assign a location. Note that not all locations are available for this kind of resource Leave Create Azure Run As account checked to Yes Click Create Wait for deployment to complete Open the resource group that has the automation account Open the automation...

Read More