0

I'm used to using Fiddler, so am probably missing something simple, however... I need to create a scheduled job in Azure to POST to an API monthly. Everything goes well until I try to enter the BODY content:

enter image description here

When Azure tries to create the job, it returns an error and fails to create it:

At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details. (Code: DeploymentFailed)

Content-Type must be provided with body (Code: BadRequest)

I can't figure out what's wrong, as clearly the Content-Type is there. Can anyone help me please?

EvilDr
  • 8,943
  • 14
  • 73
  • 133
  • 1
    Why are you putting the `Content-Type: application/json` inside Body. Shouldn't that be a header? – Jack Zeng Jun 30 '16 at 00:38
  • Yes you are totally correct. I am too used to put everything in one box in Fiddler, and assumed that headers were for authentication. Anyway you've solved my issue with a mountain of simplicity, for which I am very grateful - thank you. – EvilDr Jun 30 '16 at 08:00
  • If you want to delete the comment and post as an answer, I'll accept and close the question. – EvilDr Jun 30 '16 at 08:01
  • 1
    No problem. You can create your own answer and accept it. It's totally fine for me. – Jack Zeng Jun 30 '16 at 08:58

1 Answers1

4

User error 101. Content-Type: application/json should be applied as a header, and not in the body structure:

enter image description here

Thank you to @Jack Zeng for his comment.

EvilDr
  • 8,943
  • 14
  • 73
  • 133