VirtualMachineRunCommandScriptSourceResponse

data class VirtualMachineRunCommandScriptSourceResponse(val commandId: String? = null, val script: String? = null, val scriptUri: String? = null, val scriptUriManagedIdentity: RunCommandManagedIdentityResponse? = null)

Describes the script sources for run command. Use only one of script, scriptUri, commandId.

Constructors

constructor(commandId: String? = null, script: String? = null, scriptUri: String? = null, scriptUriManagedIdentity: RunCommandManagedIdentityResponse? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val commandId: String? = null

Specifies a commandId of predefined built-in script.

Link copied to clipboard
val script: String? = null

Specifies the script content to be executed on the VM.

Link copied to clipboard
val scriptUri: String? = null

Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.

Link copied to clipboard

User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' 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.