0

I have a problem statement which are defined in below steps.

  1. Download a .ps1 file from a container
  2. Create a temporary directory
  3. Convert it into a zip file
  4. Create a new continuous or triggered webjob in an existing webapp by deploying this zip file.
  5. Delete the temporary directory.

I am unable to execute step 4 as there are no commands available in either Terraform or azure cli to create a new webjob. Can anyone help me with this?

1 Answers1

0

Unable to create new webjob in an existing webapp through Terraform or AZ CLI

I have followed SO-Thread and Microsoft-Document and have reproduced in my environment as below:

 az webapp deploy --name "name of web app service" -g "name of resource grp" --src-path "C:\Users\source\repos\ConsoleApp@.zip"  --type static --target-path /home/site/wwwroot/emojob

enter image description here

In Portal in Kudu console:

enter image description here

For further you can refer reference1 and reference2.

If you want to start, stop, remove or list the webjobs you can use az webapp webjob command.

RithwikBojja
  • 5,069
  • 2
  • 3
  • 7