Ravi M

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"

Posted by Ravi M at 1:48 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: DevOps
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Search This Blog

Blog Archive

  • ►  2024 (1)
    • ►  November (1)
  • ▼  2023 (1)
    • ▼  January (1)
      • Deploy custom policies and got "the policy being u...
  • ►  2018 (1)
    • ►  March (1)
  • ►  2017 (3)
    • ►  November (2)
    • ►  July (1)
  • ►  2016 (5)
    • ►  July (1)
    • ►  June (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2015 (8)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2014 (14)
    • ►  December (2)
    • ►  November (1)
    • ►  June (2)
    • ►  February (4)
    • ►  January (5)
  • ►  2013 (20)
    • ►  December (1)
    • ►  November (2)
    • ►  September (5)
    • ►  July (2)
    • ►  June (1)
    • ►  May (6)
    • ►  April (2)
    • ►  February (1)
  • ►  2012 (13)
    • ►  December (2)
    • ►  November (6)
    • ►  October (5)

About Me

Ravi M
View my complete profile
Picture Window theme. Powered by Blogger.