Tuesday, January 10, 2023

Deploy custom policies and got "the policy being uploaded not xml"

 

Please add ContentType "application/xml; charset=utf-8" to your Invoke-Resetmethod

$response = Invoke-RestMethod -Uri $graphapiuri -Method Put -Body $policycontent -Headers $headers -ContentType "application/xml; charset=utf-8"

No comments:

Post a Comment