Skip to content

Http bad request error #18

@jasonlshelton

Description

@jasonlshelton

Getting the following error for any of the imports attempted. Does the URL need to be adjusted or something?

Do you want to import WIP policies for Windows 10 (Optional)? Type Y or N and press Enter to continue: y
Adding Windows Information Protection policies...
Response content:
{"error":{"code":"BadRequest","message":"Request not applicable to target tenant.","innerError":{"date":"2022-09-26T22:06:05","request-id":"29be1316-f2ef-4018-a9dc-96f95c91f99a","client-request-id":"29be1316-f2ef-4018-a9dc-96f95c91f99a"}}}
Add-MDMWindowsInformationProtectionPolicy : Request to https://graph.microsoft.com/Beta/deviceAppManagement/mdmWindowsInformationProtectionPolicies failed with HTTP Status BadRequest Bad Request
At C:\Users\Jason\Desktop\setup-Intune.ps1:5803 char:1
+ Add-MDMWindowsInformationProtectionPolicy -JSON $APP_WIP_MDM
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-MDMWindowsInformationProtectionPolicy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions