问题描述
在 Azure 云服务平台上,某一实例无法成功启动,始终处于 Starting 与 Aborted 状态的循环中。
错误信息如下:
[0x80070070]
Role could not be started. System is initializing.
Last exit time: [2025/05/08, 08:59:47.222]
Last exit code: 0
问题解答
错误代码 0x80070070 表示磁盘空间不足,导致实例无法启动。
通过RDP远程到云服务的实例上,可以查看到实例的“磁盘C”上的空间已经不足!
![image 【Azure Cloud Service】Azure云服务实例遇见:[0x80070070] Role could not be started _日志文件](https://s2.51cto.com/images/blog/202508/04211721_6890b2e1b016063268.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=,x-oss-process=image/resize,m_fixed,w_1184)
PS: 可以使用 WinDirStat工具分析磁盘空间占用情况,识别占用较大的文件夹,比如可以把日志文件夹进行定期清理,避免磁盘空间不足问题。
![image 【Azure Cloud Service】Azure云服务实例遇见:[0x80070070] Role could not be started _云服务_02](https://s2.51cto.com/images/blog/202508/04211721_6890b2e19a72531149.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=,x-oss-process=image/resize,m_fixed,w_1184)
Azure Cloud Service服务的日志路径如下,删除日志文件以释放磁盘空间!
C:\Logs\
C:\Resources\Directory\{DeploymentID}.{Rolename}.DiagnosticStore
参考资料
WinDirStat - Downloads : https://windirstat.net/download.html
当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!