gpt4 book ai didi

azure - 如何在 powershell azure 中启动虚拟机作为作业

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

我正在开发一个 powershell 脚本,该脚本启动多个我已经尝试过的作业

Start-AzureRmVM -ResourceGroupName "Test2" -Name "tux" -AsJob true

但我得到的只是这个错误消息:Stop-AzureRmVM:找不到与参数名称“AsJob”匹配的参数。

最佳答案

如果您想将虚拟机作为作业启动,只需执行如下命令:

Start-AzureRmVM -ResourceGroupName "Test2" -Name "tux" -AsJob

关于azure - 如何在 powershell azure 中启动虚拟机作为作业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58076188/

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