Class VirtualMachineRunCommandUpdate
java.lang.Object
com.microsoft.azure.management.compute.UpdateResource
com.microsoft.azure.management.compute.VirtualMachineRunCommandUpdate
Describes a Virtual Machine run command.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet optional.Get specifies the Azure storage blob where script error stream will be uploaded.Get the virtual machine run command instance view.Get specifies the Azure storage blob where script output stream will be uploaded.Get the parameters used by the script.Get the parameters used by the script.Get the provisioning state, which only appears in the response.Get specifies the user account password on the VM when executing the run command.Get specifies the user account on the VM when executing the run command.source()
Get the source of the run command script.Get the timeout in seconds to execute the run command.withAsyncExecution
(Boolean asyncExecution) Set optional.withErrorBlobUri
(String errorBlobUri) Set specifies the Azure storage blob where script error stream will be uploaded.withOutputBlobUri
(String outputBlobUri) Set specifies the Azure storage blob where script output stream will be uploaded.withParameters
(List<RunCommandInputParameter> parameters) Set the parameters used by the script.withProtectedParameters
(List<RunCommandInputParameter> protectedParameters) Set the parameters used by the script.withRunAsPassword
(String runAsPassword) Set specifies the user account password on the VM when executing the run command.withRunAsUser
(String runAsUser) Set specifies the user account on the VM when executing the run command.Set the source of the run command script.withTimeoutInSeconds
(Integer timeoutInSeconds) Set the timeout in seconds to execute the run command.Methods inherited from class com.microsoft.azure.management.compute.UpdateResource
tags, withTags
-
Constructor Details
-
VirtualMachineRunCommandUpdate
public VirtualMachineRunCommandUpdate()
-
-
Method Details
-
source
Get the source of the run command script.- Returns:
- the source value
-
withSource
Set the source of the run command script.- Parameters:
source
- the source value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
parameters
Get the parameters used by the script.- Returns:
- the parameters value
-
withParameters
Set the parameters used by the script.- Parameters:
parameters
- the parameters value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
protectedParameters
Get the parameters used by the script.- Returns:
- the protectedParameters value
-
withProtectedParameters
public VirtualMachineRunCommandUpdate withProtectedParameters(List<RunCommandInputParameter> protectedParameters) Set the parameters used by the script.- Parameters:
protectedParameters
- the protectedParameters value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
asyncExecution
Get optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.- Returns:
- the asyncExecution value
-
withAsyncExecution
Set optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.- Parameters:
asyncExecution
- the asyncExecution value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
runAsUser
Get specifies the user account on the VM when executing the run command.- Returns:
- the runAsUser value
-
withRunAsUser
Set specifies the user account on the VM when executing the run command.- Parameters:
runAsUser
- the runAsUser value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
runAsPassword
Get specifies the user account password on the VM when executing the run command.- Returns:
- the runAsPassword value
-
withRunAsPassword
Set specifies the user account password on the VM when executing the run command.- Parameters:
runAsPassword
- the runAsPassword value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
timeoutInSeconds
Get the timeout in seconds to execute the run command.- Returns:
- the timeoutInSeconds value
-
withTimeoutInSeconds
Set the timeout in seconds to execute the run command.- Parameters:
timeoutInSeconds
- the timeoutInSeconds value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
outputBlobUri
Get specifies the Azure storage blob where script output stream will be uploaded.- Returns:
- the outputBlobUri value
-
withOutputBlobUri
Set specifies the Azure storage blob where script output stream will be uploaded.- Parameters:
outputBlobUri
- the outputBlobUri value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
errorBlobUri
Get specifies the Azure storage blob where script error stream will be uploaded.- Returns:
- the errorBlobUri value
-
withErrorBlobUri
Set specifies the Azure storage blob where script error stream will be uploaded.- Parameters:
errorBlobUri
- the errorBlobUri value to set- Returns:
- the VirtualMachineRunCommandUpdate object itself.
-
provisioningState
Get the provisioning state, which only appears in the response.- Returns:
- the provisioningState value
-
instanceView
Get the virtual machine run command instance view.- Returns:
- the instanceView value
-