2
votes

Trying to publish a webjob from Visual Studio 2013, but I'm getting the following error in the output window:

Error   14  An error occurred while creating the WebJob schedule: BadRequest: The condition specified by the ETag is not satisfied.     

The job is being published as an "on demand" type instead of "scheduled".

Ideas?

enter image description here

4
If you get this error from PowerShell - see stackoverflow.com/questions/27964254/…RickAndMSFT

4 Answers

1
votes

I'm one of the program managers on the product and this feature in VS is important to me so I'd like to help you work through this. Any chance, is your code available so we could attempt a repro of the error you're seeing?

1
votes

Redeploy the Web Site into a different region, it seems the region EAST-US2 does not support WebJobs. I deployed it into South Central Us and it works fine there.

enter image description here

enter image description here

0
votes

The following screenshot taken from the Azure Portal shows the regions that can be used to create scheduled jobs:

Regions

0
votes

Not sure if it has much to do with this, but I was experiencing the same issue for a Webjob being published in the Australia East region.

I was trying to publish a scheduled job, but was getting the error:

Error 14 An error occurred while creating the WebJob schedule: BadRequest: The condition specified by the ETag is not satisfied.

I did notice some restrictions on the webjobs in the free tier (see here - http://azure.microsoft.com/en-us/documentation/articles/azure-subscription-service-limits/ )

While it doesn't say that scheduled jobs were excluded from the free tier I had suspicions it would have been (it makes sense for scheduled to be excluded from this tier from a MS point of view).

To fix, I simply changed the website tier to Standard, and I've been able to successfully deploy my job.

Hope that helps someone.