VirtualMachineRunCommand Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a Virtual Machine run command.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.VirtualMachineRunCommandTypeConverter))]
public class VirtualMachineRunCommand : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommand, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.VirtualMachineRunCommandTypeConverter))>]
type VirtualMachineRunCommand = class
interface IVirtualMachineRunCommand
interface IJsonSerializable
interface IResource
interface IValidates
Public Class VirtualMachineRunCommand
Implements IValidates, IVirtualMachineRunCommand
- Inheritance
-
VirtualMachineRunCommand
- Attributes
- Implements
Constructors
VirtualMachineRunCommand() |
Creates an new VirtualMachineRunCommand instance. |
Properties
AsyncExecution |
Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. |
ErrorBlobUri |
Specifies the Azure storage blob where script error stream will be uploaded. |
Id |
Resource Id |
InstanceViewEndTime |
Script end time. |
InstanceViewError |
Script error stream. |
InstanceViewExecutionMessage |
Communicate script configuration errors or execution messages. |
InstanceViewExecutionState |
Script execution status. |
InstanceViewExitCode |
Exit code returned from script execution. |
InstanceViewOutput |
Script output stream. |
InstanceViewStartTime |
Script start time. |
InstanceViewStatuses |
The resource status information. |
Location |
Resource location |
Name |
Resource name |
OutputBlobUri |
Specifies the Azure storage blob where script output stream will be uploaded. |
Parameter |
The parameters used by the script. |
ProtectedParameter |
The parameters used by the script. |
ProvisioningState |
The provisioning state, which only appears in the response. |
RunAsPassword |
Specifies the user account password on the VM when executing the run command. |
RunAsUser |
Specifies the user account on the VM when executing the run command. |
SourceCommandId |
Specifies a commandId of predefined built-in script. |
SourceScript |
Specifies the script content to be executed on the VM. |
SourceScriptUri |
Specifies the script download location. |
Tag |
Resource tags |
TimeoutInSecond |
The timeout in seconds to execute the run command. |
Type |
Resource type |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of VirtualMachineRunCommand. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of VirtualMachineRunCommand. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommand. |
FromJsonString(String) |
Creates a new instance of VirtualMachineRunCommand, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of VirtualMachineRunCommand into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
Validate(IEventListener) |
Validates that this object meets the validation criteria. |