ViBi
ViBi

Reputation: 637

Can Azure webjob install Java JRE?

I want to install Java JRE as part of my webjob. It actually checks whether JRE is installed or not. If not it download it from azure blob and try to install it. Since during runtime, webjobs binaries are copied in a temp folder before running the job, whether it is possible to perform this action of installing JRE or not? Or i need to have some special permission for the webjob?

Upvotes: 0

Views: 826

Answers (1)

astaykov
astaykov

Reputation: 30903

Nope. You cannot do that. You cannot run installer from a Web Job. Web Jobs are executed in the context of a Website, in the security context of your Website (which is very restricted and sandboxed).

If you want to customize the OS, you have to chose the PaaS offering (Microsoft Azure Cloud Services) - Web Role or Worker Role. For some detailed information in differences between Web Sites and Web Roles, check out the detailed answer of this StackOverflow question.

Once you chose Cloud Services, you can run StartUp tasks to install anything on the OS. More on Startup Tasks here.

SInce you are interested in running Java on Azure, here is your point of start. And here is the Azure Java SDK and Eclipse Plugin.

Upvotes: 1

Related Questions