Forum Discussion
Microsoft.Graph.Intune vs. Microsoft.Graph
I am looking to connect with someone who knows about the state of Graph automation for Intune Policy Creation.
The https://github.com/microsoft/Intune-PowerShell-SDK module is still around as primary documentation links to it at https://learn.microsoft.com/en-us/graph/api/resources/intune-graph-overview?view=graph-rest-1.0. I'm finding it is used in several community modules such as https://github.com/jseerden/IntuneBackupAndRestore and https://github.com/ThomasKur/IntuneDocumentation. However, these resources have not been updated recently -- some in 2 years, others as much as 5-6. I had troubles using the sample scripts provided https://learn.microsoft.com/en-us/graph/api/resources/intune-graph-overview?view=graph-rest-1.0 (https://github.com/microsoftgraph/powershell-intune-samples/blob/master/DeviceConfiguration/DeviceConfiguration_Import_FromJSON.ps1 and https://github.com/microsoftgraph/powershell-intune-samples/blob/master/CompliancePolicy/CompliancePolicy_Import_FromJSON.ps1), and had to downgrade them to use an older version of AzureAD (let alone that AzureAD should be getting replaced by the true Graph PowerShell SDK).
I'm wondering whether I should even attempt to use Microsoft.Graph.Intune. Does anyone have any experience on using the native Microsoft.Graph module or a similar one in the PowerShell SDK rather than this older Microsoft.Graph.Intune module? Something just doesn't feel right. Thanks if anyone has any experience.