davefalkus
davefalkus
Hi @frazhamid, The import from json script includes the default actions for non-compliance. The main reason for export not including the actions is that if there is an email template...
Hi @clarkeyi, Can you provide how your providing the path to the onboarding file? Are you providing in quotes e.g. "c:\temp\file.xml" or c:\temp\file.xml (without quotes) so we can check for...
Hi @clarkeyi, I've tried without quotes and the policy added correctly, could you provide an example of a path that fails?  Thanks Dave
What type of policy are you importing? Android / iOS? Can you share the JSON thats failing?
Thanks for details. Looking at the export sample script in this repository it doesn't export Window policies only iOS and Android: https://github.com/microsoftgraph/powershell-intune-samples/blob/master/AppProtectionPolicy/ManagedAppPolicy_Export.ps1 Also the import sample uses the function Add-ManagedAppPolicy...
Are you using v1.0 or beta version when calling invoke-restmethod? If your using v1.0 can you test with beta?