How to deploy Application (offline installer DMG) on Apple MacOS Devices using Microsoft Intune
Microsoft Intune does not support deployment of DMG file. As per the Microsoft documentation : "Only .pkg files may be used to upload macOS LOB apps to Microsoft Intune. Conversion of other formats, such as .dmg to .pkg is not supported."
Microsoft Intune have provided support to deploy shell script to macOS. In the example below, I will deploy Adobe Acrobat Reader DC 2020.009.20063 DMG file on MacOS Device.
Save following script as .sh package i.e. InstallAdobeReader.sh#! /bin/shurl=https://ardownload2.adobe.com/pub/adobe/reader/mac/AcrobatDC/2000920063/AcroRdrDC_2000920063_MUI.dmgset -xtempd=$(mktemp -d)curl $url > $tempd/AdobeReaderDC.dmglisting=$(sudo hdiutil attach $tempd/AdobeReaderDC.dmg | grep Volumes)volume=$(echo "$listing" | cut -f 3)package=$(ls -1 "$volume" | grep .pkg | head -1)sudo installer -pkg "$volume"/"$package" -target /sudo hdiutil detach "$(echo "$volume" | cut -f 1)"rm -rf $tempdset +x
Login to Microsoft Intune Portal and go to Devices > MacOS > Shell scripts , Click Add.
Provide basic settings such as Name and Description to the script
Provide script settings, upload the script saved in step 1 and set other preferences.
Provide assignment group i.e. group contain MacOS devices. It is a bet practise to test script with couple of test devices before wider deployment.
Click Add to save script.
7. You may force Sync on MacOS device from Intune Portal to sync policies.
8. It may take few hours to update the script status on Intune console.