This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.36k
stars
657
forks
source link
GET request to deviceManagement/hardwareConfigurations/{id} returning deleted policy #278
After successfully deleting an Intune policy of the type 'hardwareConfigurations', I still can retrieve its value when invoking GET request to the API using the policy's Id. Below, a call to a NON-EXISTING policy returning its value before deletion:
Returning the value of a non existing policy is neither the expected nor the desired behavior of a GET request.
It is, anyways, a deviation compared to the other intune graph api endpoints.
Please, let me know if you need any additional information in order to be able to correct the issue.
Hello,
After successfully deleting an Intune policy of the type 'hardwareConfigurations', I still can retrieve its value when invoking GET request to the API using the policy's Id. Below, a call to a NON-EXISTING policy returning its value before deletion:
Invoking a LIST request for all deviceManagement/hardwareConfigurations policies does not show the deleted policy, but the existing one(s) instead:
Returning the value of a non existing policy is neither the expected nor the desired behavior of a GET request. It is, anyways, a deviation compared to the other intune graph api endpoints.
Please, let me know if you need any additional information in order to be able to correct the issue.