启动多个VM [英] Starting Multiple VMs

查看:68
本文介绍了启动多个VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个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...


Write-Output "启动虚拟机" / span> $ $ AzureResourceGroup )'资源组";
Write-Output "Starting VMs in '$($AzureResourceGroup)' resource group";

推荐答案

你好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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆