ArmHybridComputeModelFactory.MachineRunCommandData Method

Definition

Initializes a new instance of MachineRunCommandData.

public static Azure.ResourceManager.HybridCompute.MachineRunCommandData MachineRunCommandData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.HybridCompute.Models.MachineRunCommandScriptSource source = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.HybridCompute.Models.RunCommandInputParameter> parameters = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.HybridCompute.Models.RunCommandInputParameter> protectedParameters = default, bool? asyncExecution = default, string runAsUser = default, string runAsPassword = default, int? timeoutInSeconds = default, Uri outputBlobUri = default, Uri errorBlobUri = default, Azure.ResourceManager.HybridCompute.Models.RunCommandManagedIdentity outputBlobManagedIdentity = default, Azure.ResourceManager.HybridCompute.Models.RunCommandManagedIdentity errorBlobManagedIdentity = default, string provisioningState = default, Azure.ResourceManager.HybridCompute.Models.MachineRunCommandInstanceView instanceView = default);
static member MachineRunCommandData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.HybridCompute.Models.MachineRunCommandScriptSource * seq<Azure.ResourceManager.HybridCompute.Models.RunCommandInputParameter> * seq<Azure.ResourceManager.HybridCompute.Models.RunCommandInputParameter> * Nullable<bool> * string * string * Nullable<int> * Uri * Uri * Azure.ResourceManager.HybridCompute.Models.RunCommandManagedIdentity * Azure.ResourceManager.HybridCompute.Models.RunCommandManagedIdentity * string * Azure.ResourceManager.HybridCompute.Models.MachineRunCommandInstanceView -> Azure.ResourceManager.HybridCompute.MachineRunCommandData
Public Shared Function MachineRunCommandData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional source As MachineRunCommandScriptSource = Nothing, Optional parameters As IEnumerable(Of RunCommandInputParameter) = Nothing, Optional protectedParameters As IEnumerable(Of RunCommandInputParameter) = Nothing, Optional asyncExecution As Nullable(Of Boolean) = Nothing, Optional runAsUser As String = Nothing, Optional runAsPassword As String = Nothing, Optional timeoutInSeconds As Nullable(Of Integer) = Nothing, Optional outputBlobUri As Uri = Nothing, Optional errorBlobUri As Uri = Nothing, Optional outputBlobManagedIdentity As RunCommandManagedIdentity = Nothing, Optional errorBlobManagedIdentity As RunCommandManagedIdentity = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As MachineRunCommandInstanceView = Nothing) As MachineRunCommandData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

source
MachineRunCommandScriptSource

The source of the run command script.

parameters
IEnumerable<RunCommandInputParameter>

The parameters used by the script.

protectedParameters
IEnumerable<RunCommandInputParameter>

The parameters used by the script.

asyncExecution
Nullable<Boolean>

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

runAsUser
String

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

runAsPassword
String

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

timeoutInSeconds
Nullable<Int32>

The timeout in seconds to execute the run command.

outputBlobUri
Uri

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.

errorBlobUri
Uri

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.

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.

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.

provisioningState
String

The provisioning state, which only appears in the response.

instanceView
MachineRunCommandInstanceView

The machine run command instance view.

Returns

A new MachineRunCommandData instance for mocking.

Applies to