Azure start-up task hangs

﹥>﹥吖頭↗ 提交于 2019-12-05 18:45:59

I figured out why this was happening, thanks to this blog post by Steve Marx.

This problem only occurs in Windows Server 2008 SP2, so I had to change the host to Windows Server 2008 R2.
This can be done by changing osFamily="1" to osFamily="2" in all of the ServiceConfiguration files, or it can be changed from the Azure portal by clicking on the service then Configure OS at the top.

I needed to use this library as well. this is my script:

start /w
cd startup
vcredist_x64.exe /q /norestart

exit /b 0

it's working for me - startup is where i keep the vcredist_x64.exe.

on my servicedefinition file this is the xml line

 <Task commandLine="startup\InstallVcreditst.cmd" executionContext="elevated" taskType="simple" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!