Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http bad request error #18

Open
jasonlshelton opened this issue Sep 26, 2022 · 0 comments
Open

Http bad request error #18

jasonlshelton opened this issue Sep 26, 2022 · 0 comments

Comments

@jasonlshelton
Copy link

jasonlshelton commented Sep 26, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant