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 appMSfB iOS (image)
So I asked around some others and @IntuneSuppTeam on Twitter and received this responseTwitter Response (image)
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,
Checking what limit I had hit this time, I reran the previous query to get a count and this time I was given a count of exactly 10000 apps.
Again curious if that was just Win32 apps, I attempted to manually create another MSfB and iOS app but was met with the same error in the UIMSfB iOS (image)
I received an update from @IntuneSuppTeam on thisTwitter response (image)
However as previously mentioned, at the 10k app limit I am unable to publish any more applications regardless of the type!
At the time of writing this, I have yet to receive and further response on this but if I do I’ll be sure to update this post :)