MachineRunCommandProperties interface
Describes the properties of a run command.
Properties
| async |
Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete. |
| error |
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 |
| error |
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. |
| instance |
The machine run command instance view. |
| output |
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 |
| output |
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. |
| parameters | The parameters used by the script. |
| protected |
The parameters used by the script. |
| provisioning |
The provisioning state, which only appears in the response. |
| run |
Specifies the user account password on the machine when executing the run command. |
| run |
Specifies the user account on the machine when executing the run command. |
| source | The source of the run command script. |
| timeout |
The timeout in seconds to execute the run command. |
Property Details
asyncExecution
Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete.
asyncExecution?: boolean
Property Value
boolean
errorBlobManagedIdentity
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
errorBlobManagedIdentity?: RunCommandManagedIdentity
Property Value
errorBlobUri
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.
errorBlobUri?: string
Property Value
string
instanceView
The machine run command instance view.
instanceView?: MachineRunCommandInstanceView
Property Value
outputBlobManagedIdentity
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
outputBlobManagedIdentity?: RunCommandManagedIdentity
Property Value
outputBlobUri
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.
outputBlobUri?: string
Property Value
string
parameters
The parameters used by the script.
parameters?: RunCommandInputParameter[]
Property Value
protectedParameters
The parameters used by the script.
protectedParameters?: RunCommandInputParameter[]
Property Value
provisioningState
The provisioning state, which only appears in the response.
provisioningState?: string
Property Value
string
runAsPassword
Specifies the user account password on the machine when executing the run command.
runAsPassword?: string
Property Value
string
runAsUser
Specifies the user account on the machine when executing the run command.
runAsUser?: string
Property Value
string
source
The source of the run command script.
source?: MachineRunCommandScriptSource
Property Value
timeoutInSeconds
The timeout in seconds to execute the run command.
timeoutInSeconds?: number
Property Value
number