gpt4 book ai didi

powershell - 获取在 Azure 上部署包 powershell 的状态

转载 作者:行者123 更新时间:2023-12-03 00:19:09 25 4
gpt4 key购买 nike

我将包部署到云服务的分段中。我正在编写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 上获取此消息?

最佳答案

据我所知,你不能。如您所知,门户和 Windows Azure Cmdlet 都使用 Service Management API用于部署管理。负责返回此状态的操作是 Get Operation Status 。用于部署的 PowerShell Cmdlet 在内部使用此操作,并且仅当此操作成功或失败时才退出。

我还没有亲自尝试过(所以我可能是错的),但你可能想看看 Windows Azure Management Library 。与 PowerShell Cmdlet 一样,它也是服务管理 API 的包装器,并且可能具有此功能。

关于powershell - 获取在 Azure 上部署包 powershell 的状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21696789/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com