gpt4 book ai didi

azure - 使用 Azure CLI 重新启动 Azure 云服务实例

转载 作者:行者123 更新时间:2023-12-03 01:07:15 25 4
gpt4 key购买 nike

是否可以通过Azure CLI重新启动Azure云服务的实例?

Azure CLI 命令引用 here 。我看到了用于重新启动虚拟机、vmss、函数应用程序、服务结构节点和 Web 应用程序的选项。

最佳答案

注意:无法通过 Azure CLI 重新启动 Azure 云服务实例。

正如 Walter 所说,您可以使用 Azure CLI 1.0 创建和管理 Azure 云服务,但无法重新启动实例。

您可以使用 Azure CLI 1.0 检查 Azure 云服务的可用选项:

Azure CLI Options for Cloud Services

您可以使用 Azure PowerShell 重新启动云服务实例:

PS C:> ReSet-AzureRoleInstance -ServiceName "MySvc01"-Slot "Staging"-InstanceName "MyWebRole_IN_0"-Reboot

关于azure - 使用 Azure CLI 重新启动 Azure 云服务实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44790959/

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