I needed to import a long list of items into a new configuration profile in InTune. What I learned is that InTune configurations are all JSON files, which is similar to other Azure products.

How do I get a copy of an existing configuration, make my changes, and then upload it as a new profile to InTune?

  • I found the simplest way to do this was to use the backup restore powershell module to download a copy of the configuration files. This downloaded a copy of every profile. Then I picked out the one I needed to add the list of items to, edited it, and used the restore command to upload it. There is also a way to upload a custom file through the InTune web portal.

  • When you do this you need to make sure that you place the new JSON file in a folder that only contains the newly created JSON file. If you run the restore from the folder containing the entire backup, it will create duplicates of each profile. The tool does not overwrite any existing profiles!

Install the MS Graph InTune Module

Install-Module -Name Microsoft.Graph.Intune -Verbose -Force -AllowClobber

Install the MS Graph Functions Module

Install-Module -Name MSGraphFunctions -Verbose -Force -AllowClobber

Import the MS Graph Functions Module

Import-Module -Name MSGraphFunctions

Install IntuneBackupAndRestore Module

Install-Module -Name IntuneBackupAndRestore -Verbose -Force -AllowClobber

Import the Module

Import-Module IntuneBackupAndRestore

Connect to Microsoft Graph

Connect-MsGraph

Download a Copy of all Configurations

Invoke-IntuneBackupDeviceConfiguration -Path C:\Users\Melissa\Desktop\InTuneBackup\
  • The Backup process will create a folder name Device Configurations within the designated path
  • Edit the JSON file and save it in a new folder, I will name it InTuneRestore
  • You can also just place the JSON file you’re editing in a different folder that you do the restore from, make sure you create a folder named Device Configurations if you do this. The command automatically adds that folder at the end of the path

Restore the new JSON file to InTune

Invoke-IntuneRestoreDeviceConfiguration -Path C:\Users\Melissa\Desktop\InTuneRestore\
  • The new profile will now be available in InTune!