Azure / app-service-linux-docs

Azure App Service: Frequently Asked Questions on Linux App Service
Creative Commons Attribution 4.0 International
139 stars 78 forks source link

Creating WebJob Fails with Bad Request Error #234

Open evanmoser opened 2 months ago

evanmoser commented 2 months ago

When creating a web job in a Linux Web App, an error is returned that simply says Failed with a description of Bad Request.

Here are the settings I'm establishing for the WebJob, but note that the error returns regardless of the type of file being loaded (.zip or .sh) or the schedule being specified.

image

Here is the message returned.

image

Here is the .sh script I'm attempted to add as a job. The filename is run.sh, but I've tried a variety of file names with no success.

image

I've also attempted this in Firefox, Chrome, and Edge on both a Windows and a Mac.

In speaking with Azure support, this is a known issue but is not yet publicly documented. They recommended I create an issue here for tracking on a resolution. Any updates you can provide on a resolution would be greatly appreciated. I know WebJobs in Web Apps for Linux are in preview, but unfortunately my code stack doesn't have a Windows Web App option available.

evanmoser commented 2 months ago

In continuing to work with Azure support, they recommended adding this to the app configuration:

WEBSITES_ENABLE_APP_SERVICE_STORAGE=true

When this is added, I'm able to create the WebJob without issue.

emilepretorius commented 3 weeks ago

I still cannot add zipped apps to a Linux app service. Is this feature limited to scripts only?

evanmoser commented 3 weeks ago

I still cannot add zipped apps to a Linux app service. Is this feature limited to scripts only?

My understanding is that the app config they suggested would allow either zip or scripts to work. What’s the structure/contents of your zip file?

emilepretorius commented 3 weeks ago

I still cannot add zipped apps to a Linux app service. Is this feature limited to scripts only?

My understanding is that the app config they suggested would allow either zip or scripts to work. What’s the structure/contents of your zip file?

The contents of the solution build folder. Same content works for a Windows service. I've tried adding a startup command as some other posts suggest, different regions, nothing works, the upload to the portal simply fails with a generic message (not same as yours, don't recall the exact wording)

image

I've gone back to using a Windows service.