The error message shows for every application I've tried so far with the New-Win32App cmdlet. Which probably bleeds into this error message that I see when trying to use the CreateApps and PacakgeApps paramaters:
Building Uri for Graph request. Method: 'Post', Uri: 'https://graph.microsoft.com/beta/deviceAppManagement/mobileApps'
POST https://graph.microsoft.com/beta/deviceAppManagement/mobileApps
HTTP/1.1 400 Bad Request
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: c93619bb-ea67-41ec-b06c-293446df4fc7
client-request-id: b1839428-ee75-487b-a406-bca6697d1423
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"006","RoleInstance":"BL6PEPF00045586"}}
Date: Wed, 22 Oct 2025 19:51:58 GMT
Content-Type: application/json
{"error":{"code":"BadRequest","message":"{\r\n "_version": 3,\r\n "Message": "The Win32LobApp must have at least one detection rule specified. - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID:
b1839428-ee75-487b-a406-bca6697d1423 - Url: https://proxy.msua01.manage.microsoft.com/AppLifecycle_2510/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5025-08-07",\r\n "CustomApiErrorPhrase": "",\r\n "RetryA
fter": null,\r\n "ErrorSourceService": "",\r\n "HttpHeaders": "{}"\r\n}","innerError":{"date":"2025-10-22T19:51:59","request-id":"c93619bb-ea67-41ec-b06c-293446df4fc7","client-request-id":"b1839428-ee75-487b-a406-bca6697d1423"}}}
Invoke-MgGraphRequest : POST https://graph.microsoft.com/beta/deviceAppManagement/mobileApps
HTTP/1.1 400 Bad Request
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: c93619bb-ea67-41ec-b06c-293446df4fc7
client-request-id: b1839428-ee75-487b-a406-bca6697d1423
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"006","RoleInstance":"BL6PEPF00045586"}}
Date: Wed, 22 Oct 2025 19:51:58 GMT
Content-Type: application/json
{"error":{"code":"BadRequest","message":"{\r\n "_version": 3,\r\n "Message": "The Win32LobApp must have at least one detection rule specified. - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity
ID: b1839428-ee75-487b-a406-bca6697d1423 - Url: https://proxy.msua01.manage.microsoft.com/AppLifecycle_2510/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5025-08-07",\r\n "CustomApiErrorPhrase": "",\r\n
"RetryAfter": null,\r\n "ErrorSourceService": "",\r\n "HttpHeaders":
"{}"\r\n}","innerError":{"date":"2025-10-22T19:51:59","request-id":"c93619bb-ea67-41ec-b06c-293446df4fc7","client-request-id":"b1839428-ee75-487b-a406-bca6697d1423"}}}
At C:\Program Files\WindowsPowerShell\Modules\Win32AppMigrationTool\3.0.5\Private\Invoke-MgGraphRequestCustom.ps1:78 char:36
- ... aphResult = Invoke-MgGraphRequest -Uri $GraphUri -Method $Method -Bod ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (Method: POST, R...ication/json
}:HttpRequestMessage) [Invoke-MgGraphRequest], HttpResponseException
- FullyQualifiedErrorId : InvokeGraphHttpResponseException,Microsoft.Graph.PowerShell.Authentication.Cmdlets.InvokeMgGraphRequest
The error message shows for every application I've tried so far with the New-Win32App cmdlet. Which probably bleeds into this error message that I see when trying to use the CreateApps and PacakgeApps paramaters:
Building Uri for Graph request. Method: 'Post', Uri: 'https://graph.microsoft.com/beta/deviceAppManagement/mobileApps'
POST https://graph.microsoft.com/beta/deviceAppManagement/mobileApps
HTTP/1.1 400 Bad Request
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: c93619bb-ea67-41ec-b06c-293446df4fc7
client-request-id: b1839428-ee75-487b-a406-bca6697d1423
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"006","RoleInstance":"BL6PEPF00045586"}}
Date: Wed, 22 Oct 2025 19:51:58 GMT
Content-Type: application/json
{"error":{"code":"BadRequest","message":"{\r\n "_version": 3,\r\n "Message": "The Win32LobApp must have at least one detection rule specified. - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID:
b1839428-ee75-487b-a406-bca6697d1423 - Url: https://proxy.msua01.manage.microsoft.com/AppLifecycle_2510/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5025-08-07",\r\n "CustomApiErrorPhrase": "",\r\n "RetryA
fter": null,\r\n "ErrorSourceService": "",\r\n "HttpHeaders": "{}"\r\n}","innerError":{"date":"2025-10-22T19:51:59","request-id":"c93619bb-ea67-41ec-b06c-293446df4fc7","client-request-id":"b1839428-ee75-487b-a406-bca6697d1423"}}}
Invoke-MgGraphRequest : POST https://graph.microsoft.com/beta/deviceAppManagement/mobileApps
HTTP/1.1 400 Bad Request
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: c93619bb-ea67-41ec-b06c-293446df4fc7
client-request-id: b1839428-ee75-487b-a406-bca6697d1423
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"006","RoleInstance":"BL6PEPF00045586"}}
Date: Wed, 22 Oct 2025 19:51:58 GMT
Content-Type: application/json
{"error":{"code":"BadRequest","message":"{\r\n "_version": 3,\r\n "Message": "The Win32LobApp must have at least one detection rule specified. - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity
ID: b1839428-ee75-487b-a406-bca6697d1423 - Url: https://proxy.msua01.manage.microsoft.com/AppLifecycle_2510/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5025-08-07",\r\n "CustomApiErrorPhrase": "",\r\n
"RetryAfter": null,\r\n "ErrorSourceService": "",\r\n "HttpHeaders":
"{}"\r\n}","innerError":{"date":"2025-10-22T19:51:59","request-id":"c93619bb-ea67-41ec-b06c-293446df4fc7","client-request-id":"b1839428-ee75-487b-a406-bca6697d1423"}}}
At C:\Program Files\WindowsPowerShell\Modules\Win32AppMigrationTool\3.0.5\Private\Invoke-MgGraphRequestCustom.ps1:78 char:36
}:HttpRequestMessage) [Invoke-MgGraphRequest], HttpResponseException