内容ofAzure工作者角色E:\\为approot文件夹中消失的情况下重新启动 [英] Contents ofAzure worker role e:\approot folder disappearing on instance reboot
问题描述
在Windows Azure的辅助角色实例从Azure的门户内重新启动,是电子商务的内容:\\为approot文件夹中删除?
我有加入一些注册表设置之前检查该文件夹中的文件是否存在提升的启动任务。这已经在过去的工作,但现在失败,因为它希望找到的文件不再有以下门户诱导重启。
如果我从启动任务中执行'关机'命令,实例重启,但e的内容:\\为approot不受影响
When a Windows Azure worker role instance is rebooted from within the Azure portal, are the contents of the e:\approot folder deleted? I have an elevated startup task which checks for the existence of a file in this folder before adding some registry settings. This has worked in the past but is now failing because the file it expects to find is no longer there following a portal-induced reboot. If I perform a 'shutdown' command from within the startup task, the instance reboots but the contents of e:\approot are unaffected.
推荐答案
答案是点击了Azure的门户网站的重新启动按钮时,为approot文件夹的内容被删除,包重新部署。
Answer is that when the Reboot button is clicked on the Azure portal, the contents of the AppRoot folder are deleted and the package redeployed.
要测试,部署的东西(什么...)到Azure的实例。 RDP到实例并创建了为approot文件夹中的文件(test.txt的)(这将在E:或F:盘)。
To test, deploy something (anything...) to an Azure instance. RDP onto the instance and create a file (test.txt) in the AppRoot folder (this will be on the E: or F: drive).
点击门户网站上的重新启动按钮。等待重启,然后RDP到再次实例 - test.txt的不再存在。
Click the Reboot button on the portal. Wait for restart, then RDP onto the instance again - test.txt no longer exists.
请注意,如果你RDP到实例,然后选择从Windows UI重新启动,那么的test.txt不会被删除。
Note that if you RDP onto the instance and choose Restart from the Windows UI, then test.txt is not deleted.
这篇关于内容ofAzure工作者角色E:\\为approot文件夹中消失的情况下重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!