我将包部署到云服务的暂存。我编写的powershell脚本是什么,等待,当包已经完成部署。在网站上,我可以看到下一条消息:
Deploying
The deployment is being created.
1 Instance: 1 Stopped
Running
Not all role instances are ready.
1 Instance: 1 Stopped
Running
Not all role instances are ready.
1 Instance: 1 Creating
Running
Not all role instances are ready.
1 Instance: 1 Starting
Running
Not all role instances are ready.
1 Instance: 1 Busy
因此。我怎么能在powershell上得到这个消息?
答案 0 :(得分:0)
据我所知,你做不到。如您所知,门户网站和Windows Azure Cmdlet都使用Service Management API
进行部署管理。负责返回此状态的操作是Get Operation Status
。用于部署的PowerShell Cmdlet在内部使用此操作,仅在此操作成功或失败时退出。
我没有亲自试过(所以我可能错了),但你可能想看看Windows Azure Management Library
。与PowerShell Cmdlet一样,它也是Service Management API的包装器,它可能具有此功能。