I had figured that I had just hit a maximum app limit and almost just left it alone, but I curious about what that limit was I hit up the Graph API to get the total number of published apps
This returned a total of 500 applications which seemed like a very low number, so I wondered if it affected all application types or if it was just a Win32 app limit I had reached. To test this, I tried to manually create some different app types manually in the Endpoint UI.
I received the same error when trying to create an MSfB app and an iOS Store app
So I asked around some others and @IntuneSuppTeam on Twitter and received this response
Intrigued further, I purchased an F1 licence and assigned it to my demo tenant and that 500 app limit was lifted immediately.
Curious what that upper limit was, Jake Shack threw together a quick script to mass publish empty applications to Intune
$Version=1$Job_Nb=1..500$Job_Xy=1..10foreach($Xyin$Job_Xy){#code that creates appsForeach($Nbin$Job_Nb){Start-Job-Name$Nb-ScriptBlock{$Increment_job=$args[0]$MSToken=Get-MsalToken-ClientId"xxxxxx"-ClientSecret(ConvertTo-SecureString"xxxxxx"-AsPlainText-Force)-TenantId"xxxxxx.onmicrosoft.com"$AuthToken=$MSToken.AccessToken$Headers=@{"Content-Type"="application/json""Authorization"="Bearer $($AuthToken)"}$Method="POST"$URI="https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/"$Test=Get-Content-Raw-Path".\DummyApps.json"|convertfrom-Json$DisplayName="FakeApp#"$NewName=$DisplayName+$Increment_job$Test.displayName=$NewName$Test=$Test|Convertto-jsonInvoke-RestMethod-uri$Uri-Method$Method-body$Test-Headers$Headers}-ArgumentList$Version$Version++}Wait-Job-Name$job_nb|Receive-JobStart-Sleep-seconds60}
This script, coupled with a JSON file containing the app information, let me quickly publish as many apps as Graph would let me before being rate limited
Over the course of that afternoon I let this script run it’s course until I hit the same error message again,