VirtualMachineRunCommandScriptSource Class
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 the script sources for run command. Use only one of script, scriptUri, commandId.
public class VirtualMachineRunCommandScriptSource : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.VirtualMachineRunCommandScriptSource>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.VirtualMachineRunCommandScriptSource>
type VirtualMachineRunCommandScriptSource = class
interface IJsonModel<VirtualMachineRunCommandScriptSource>
interface IPersistableModel<VirtualMachineRunCommandScriptSource>
Public Class VirtualMachineRunCommandScriptSource
Implements IJsonModel(Of VirtualMachineRunCommandScriptSource), IPersistableModel(Of VirtualMachineRunCommandScriptSource)
- Inheritance
-
VirtualMachineRunCommandScriptSource
- Implements
Virtual |
Initializes a new instance of VirtualMachineRunCommandScriptSource. |
Command |
Specifies a commandId of predefined built-in script. |
Script |
Specifies the script content to be executed on the VM. |
Script |
Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. |
Script |
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. |
IJson |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJson |
Writes the model to the provided Utf8JsonWriter. |
IPersistable |
Converts the provided BinaryData into a model. |
IPersistable |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistable |
Writes the model into a BinaryData. |
Product | Versions |
---|---|
Azure SDK for .NET | Latest, Preview |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: