Application_MDM_Import_FromJSON.ps1 is failing to import applications - Bad request
After exporting an existing app into a json file, if I try and I import the application again (in the same tenant or in a different tenant) I get a bad request. I tested this with 7Zip app I resolved this by adding "size" property to the exclusion properties here:
$JSON_Convert = $JSON_Data | ConvertFrom-Json | Select-Object -Property * -ExcludeProperty id,createdDateTime,lastModifiedDateTime,version,'@odata.context',uploadState,packageId,appIdentifier,publishingState,usedLicenseCount,totalLicenseCount,productKey,licenseType,packageIdentityName,size
I can also replicate this issue
Same issue here. Adding the "size" property as suggested above, does not fix the issue.