VirtualMachineRunCommandScriptSource Class
Describes the script sources for run command. Use only one of script, scriptUri, commandId.
- Inheritance
-
azure.mgmt.compute._serialization.ModelVirtualMachineRunCommandScriptSource
Constructor
VirtualMachineRunCommandScriptSource(*, script: str | None = None, script_uri: str | None = None, command_id: str | None = None, script_uri_managed_identity: _models.RunCommandManagedIdentity | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
script
|
Specifies the script content to be executed on the VM. |
script_uri
|
Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. |
command_id
|
Specifies a commandId of predefined built-in script. |
script_uri_managed_identity
|
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. |
Variables
Name | Description |
---|---|
script
|
Specifies the script content to be executed on the VM. |
script_uri
|
Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. |
command_id
|
Specifies a commandId of predefined built-in script. |
script_uri_managed_identity
|
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. |
Azure SDK for Python