Try pushing the whole Microsoft Office package via 1 policy?
Office suite (with Teams)
Link:
https://learn.microsoft.com/en-us/officeupdates/update-history-office-for-mac
I did already :/ Had the same luck , big fat nothing
@Schneabby
You can try to find the error that occurred from Policies > Logs > details,
if you have a capture it might be easier for us to analyze the problem.
If having issues deploying mac app store directly after enrollment, check for stuck mdm commands to clear.
From the Trout himself..
https://github.com/rtrouton/rtrouton_scripts/tree/main/rtrouton_scripts/Casper_Scripts/clear_failed_Jamf_Pro_mdm_commands
I added this on startup trigger (after enrollment I trigger reboot then login screen) and exectute once every xx to suit. Worked a treat for me (completely may not fix other issues in your environment) and if cabled in and autoadvance, usually, I would have 3-4 or sometimes all ms apps ready by next login.
My fail safe (Office via PKG) is to have an items in self service for each of the required MS apps, to be triggered manually, downloading latest version (you could scapte for the versions or use MS deep url links that redirect to latest package).
Can run if App Store not installed yet and user is too impatient (aka students).
Obviously, Teams / OneDrive deploy via pkg always..
Policy : MS Word
Parameter value: com.microsoft.word.standalone.365

#!/bin/zsh
packageID="$4"
xmlLocation="/private/var/tmp/office-version-output.xml"
[ -e $xmlLocation ] && rm $xmlLocation
curl "https://macadmins.software/latest.xml" >> $xmlLocation
standaloneVersion=$( cat "$xmlLocation" | xmllint --xpath '//latest/package[id="'${packageID}'"]/cfbundleversion/text()' -)
downloadLink=$( cat $xmlLocation | xmllint --xpath '//latest/package[id="'${packageID}'"]/download/text()' -)
curl -L --silent --output /private/var/tmp/${packageID}.${standaloneVersion}.pkg "$downloadLink"
sleep 3
echo && echo "Installing ID: $packageID Version: $standaloneVersion" && echo && installer -pkg /private/var/tmp/${packageID}.${standaloneVersion}.pkg -target / && rm -rf /private/var/tmp/${packageID}.${standaloneVersion}.pkg
I use Microsoft's scripts to curl and install the latest Office versions. They have Office, Teams and Defender as standalone installers. You can edit some functions to suit your needs, but they work well. https://github.com/microsoft/shell-intune-samples/tree/master/macOS/Apps
That script I posted was also from the same MS github but since removed. Thanks for the updated links