VirtualMachineScaleSets.runPowerShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters) Method

Definition

Run PowerShell script in a virtual machine instance in a scale set.

public abstract RunCommandResult runPowerShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)

Parameters

groupName
java.lang.String

the resource group name

scaleSetName
java.lang.String

the virtual machine scale set name

vmId
java.lang.String

the virtual machine instance id

scriptLines
java.util.List<java.lang.String>

PowerShell script lines

scriptParameters
java.util.List<RunCommandInputParameter>

script parameters

Returns

result of PowerShell script execution

Applies to