Device deletion from intune

Abishek1998
Tera Contributor

Hi all,

 

I need to get the device ID from intune and delete it using the flow action in servicenow. But I'm not sure about those steps. Intune spoke has been configured already. It'll be really helpful if somemone guides me.

3 REPLIES 3

swapnali ombale
Kilo Sage
Hi 
 
Here's a step-by-step guide:
 
 
1. Configure the Microsoft Intune Spoke:
  • Ensure you have the Microsoft Intune Spoke installed and configured in your ServiceNow instance.
  • Verify the connection to your Intune environment is working correctly. 
     
 
2. Create a New Flow:
  • Navigate to Flow Designer in ServiceNow.
  • Create a new flow and name it appropriately, for example, "Delete Intune Device". 
     
 
3. Add the "Get Managed Device" Action:
  • Search for the "Get Managed Device" action within the Flow Designer.
  • Drag and drop the action into your flow.
  • Configure the action by specifying the device ID (you can either hardcode it or get it from a user input). 
     
 
4. Add the "Wipe Device" Action:
  • Search for the "Wipe Managed Device" action within the Flow Designer.
  • Drag and drop the action into your flow.
  • Configure the action by specifying the device ID retrieved from the "Get Managed Device" action. 
     
 
5. Run the Flow:
  • Save the flow and test it to ensure it successfully retrieves the device ID and wipes the device in Intune. 

Mark my answer helpful if it provide some help

There is a training for this in Now learning,  if you have not gone though it , please check Now learning website.

 

https://nowlearning.servicenow.com/lxp?id=learning_course_prev&course_id=5940b79c870d59dc6a0bedbd0eb...

Abishek1998
Tera Contributor

Thanks but I need to get get the device Id from intune for deleting it. And this flow should get triggered in flow designer