如何将多个参数传递给Set-AzureRmVMCustomScriptExtension? [英] How can I pass multiple arguments to Set-AzureRmVMCustomScriptExtension?
本文介绍了如何将多个参数传递给Set-AzureRmVMCustomScriptExtension?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
The Azure Cmdlet for adding a Custom Script Extension to a VM named Set-AzureRmVMCustomScriptExtension has an -Argument
switch, which states that it accepts a string, but no example of how this is implemented. While it says it can accept multiple arguments, it appears to be for a single argument.
我需要传递多个参数,但是找不到正确的语法.
I need to pass multiple arguments, but can't find the correct syntax to do so.
示例:
$arg1 = "mysitename"
$arg2 = "c:/mydirectorytocreate"
-Argument "$arg1,$arg2"
How do I pass multiple arguments to Set-AzureRmVMCustomScriptExtension so I can pass these values to the actual script that needs these values (ex. passing an IIS Site Name and a Directory Path as two separate values).
推荐答案
查看全文