Application_MDM_Import_FromJSON.ps1 cannot upload Managed Google Play Apps
I'm trying to automate Managed Google Play Apps deployment with this script and it doesn't work since this kind of apps deployment makes a POST request to Google and not to Microsoft.
Used the template provided below, so I'm thinking that it can work.
https://docs.microsoft.com/en-us/graph/api/intune-apps-androidmanagedstoreapp-create?view=graph-rest-beta
I tried pretty much everything I could thought off, cannot get it working, even straight up from the Graph Explorer.
For more details, please see the following reddit thread I made: https://www.reddit.com/r/Intune/comments/l1zfnz/adding_managed_google_play_apps_with_graph_api/
Any update to this? I'm having the same issue - I've created a Managed Google Play app in the Portal and successfully exported to a JSON file. When trying to upload the same file, I get an error:
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At C:\Tools\PS\kiss365\scratch.ps1:95 char:3
+ Invoke-RestMethod -Uri $uri -Method Post -ContentType "application/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Whenever adding iOS applications, it works flawlessly with the above methods. Is there something I'm missing?
Having the same issue. Trying to POST an androidManagedStoreApp either in Graph Explorer or by using the Microsoft.Graph PowerShell module, I get a 400 response and a message that just says "An error has occurred".