启动多个VM [英] Starting Multiple VMs
问题描述
我正在尝试构建一个powershell脚本来启动资源组中的一些虚拟机(不是全部)(从Runbook运行)。我已经制作了下面的脚本片段,它启动了第一个VM,然后没有其他事情发生......
I am attempting to build a powershell script to start some VMs (not all) in a resource group (running from a runbook). I have produced the script snippet below which starts the first VM and then nothing else happens...
推荐答案
你好virtualProblem,你能澄清你的意思吗?启动第一个VM然后什么也没有其他事情发生.. "
Hi virtualProblem, can you clarify what you mean by "Starts the first VM and then nothing else happens.."
您的意思是Runbook / script成功启动VM1但无法启动VM2& VM3?在上传到自动化帐户之前在本地运行脚本的结果是什么?
Do you mean the runbook/script successfully Starts VM1 but fails to start VM2 & VM3? What is the result when you run the script locally prior to uploading to the Automation account?
如果您还没有,我建议您浏览我们的
VM启动/停止解决方案执行类似功能并可能使用这是您的模板。
If you haven't already, I recommend exploring our VM Start/stop solution that performs a similar function and maybe use this as your template.
如果您需要其他帮助,请告诉我。
Let me know if you need additional help.
干杯。
这篇关于启动多个VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!