Package version:

Interface VirtualMachineRunCommandUpdate

Describes a Virtual Machine run command.

interface VirtualMachineRunCommandUpdate {
    asyncExecution?: boolean;
    errorBlobManagedIdentity?: RunCommandManagedIdentity;
    errorBlobUri?: string;
    instanceView?: VirtualMachineRunCommandInstanceView;
    outputBlobManagedIdentity?: RunCommandManagedIdentity;
    outputBlobUri?: string;
    parameters?: RunCommandInputParameter[];
    protectedParameters?: RunCommandInputParameter[];
    provisioningState?: string;
    runAsPassword?: string;
    runAsUser?: string;
    source?: VirtualMachineRunCommandScriptSource;
    tags?: {
        [propertyName: string]: string;
    };
    timeoutInSeconds?: number;
    treatFailureAsDeploymentFailure?: boolean;
}

Hierarchy (view full)

Properties

asyncExecution?: boolean

Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.

errorBlobManagedIdentity?: RunCommandManagedIdentity

User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged

errorBlobUri?: string

Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter.

The virtual machine run command instance view. NOTE: This property will not be serialized. It can only be populated by the server.

outputBlobManagedIdentity?: RunCommandManagedIdentity

User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged

outputBlobUri?: string

Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter.

The parameters used by the script.

protectedParameters?: RunCommandInputParameter[]

The parameters used by the script.

provisioningState?: string

The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results NOTE: This property will not be serialized. It can only be populated by the server.

runAsPassword?: string

Specifies the user account password on the VM when executing the run command.

runAsUser?: string

Specifies the user account on the VM when executing the run command.

The source of the run command script.

tags?: {
    [propertyName: string]: string;
}

Resource tags

timeoutInSeconds?: number

The timeout in seconds to execute the run command.

treatFailureAsDeploymentFailure?: boolean

Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results