1. Packages
  2. Azure Native
  3. API Docs
  4. compute
  5. VirtualMachineScaleSetVMRunCommand
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.compute.VirtualMachineScaleSetVMRunCommand

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    Describes a Virtual Machine run command. Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2021-03-01.

    Other available API versions: 2023-07-01, 2023-09-01, 2024-03-01.

    Example Usage

    Create VirtualMachineScaleSet VM run command.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var virtualMachineScaleSetVMRunCommand = new AzureNative.Compute.VirtualMachineScaleSetVMRunCommand("virtualMachineScaleSetVMRunCommand", new()
        {
            AsyncExecution = false,
            ErrorBlobManagedIdentity = null,
            ErrorBlobUri = "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt",
            InstanceId = "0",
            Location = "West US",
            OutputBlobManagedIdentity = new AzureNative.Compute.Inputs.RunCommandManagedIdentityArgs
            {
                ClientId = "22d35efb-0c99-4041-8c5b-6d24db33a69a",
            },
            OutputBlobUri = "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt",
            Parameters = new[]
            {
                new AzureNative.Compute.Inputs.RunCommandInputParameterArgs
                {
                    Name = "param1",
                    Value = "value1",
                },
                new AzureNative.Compute.Inputs.RunCommandInputParameterArgs
                {
                    Name = "param2",
                    Value = "value2",
                },
            },
            ResourceGroupName = "myResourceGroup",
            RunAsPassword = "<runAsPassword>",
            RunAsUser = "user1",
            RunCommandName = "myRunCommand",
            Source = new AzureNative.Compute.Inputs.VirtualMachineRunCommandScriptSourceArgs
            {
                ScriptUri = "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1",
                ScriptUriManagedIdentity = new AzureNative.Compute.Inputs.RunCommandManagedIdentityArgs
                {
                    ObjectId = "4231e4d2-33e4-4e23-96b2-17888afa6072",
                },
            },
            TimeoutInSeconds = 3600,
            TreatFailureAsDeploymentFailure = true,
            VmScaleSetName = "myvmScaleSet",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewVirtualMachineScaleSetVMRunCommand(ctx, "virtualMachineScaleSetVMRunCommand", &compute.VirtualMachineScaleSetVMRunCommandArgs{
    			AsyncExecution:           pulumi.Bool(false),
    			ErrorBlobManagedIdentity: nil,
    			ErrorBlobUri:             pulumi.String("https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt"),
    			InstanceId:               pulumi.String("0"),
    			Location:                 pulumi.String("West US"),
    			OutputBlobManagedIdentity: &compute.RunCommandManagedIdentityArgs{
    				ClientId: pulumi.String("22d35efb-0c99-4041-8c5b-6d24db33a69a"),
    			},
    			OutputBlobUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt"),
    			Parameters: compute.RunCommandInputParameterArray{
    				&compute.RunCommandInputParameterArgs{
    					Name:  pulumi.String("param1"),
    					Value: pulumi.String("value1"),
    				},
    				&compute.RunCommandInputParameterArgs{
    					Name:  pulumi.String("param2"),
    					Value: pulumi.String("value2"),
    				},
    			},
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    			RunAsPassword:     pulumi.String("<runAsPassword>"),
    			RunAsUser:         pulumi.String("user1"),
    			RunCommandName:    pulumi.String("myRunCommand"),
    			Source: &compute.VirtualMachineRunCommandScriptSourceArgs{
    				ScriptUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1"),
    				ScriptUriManagedIdentity: &compute.RunCommandManagedIdentityArgs{
    					ObjectId: pulumi.String("4231e4d2-33e4-4e23-96b2-17888afa6072"),
    				},
    			},
    			TimeoutInSeconds:                pulumi.Int(3600),
    			TreatFailureAsDeploymentFailure: pulumi.Bool(true),
    			VmScaleSetName:                  pulumi.String("myvmScaleSet"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.compute.VirtualMachineScaleSetVMRunCommand;
    import com.pulumi.azurenative.compute.VirtualMachineScaleSetVMRunCommandArgs;
    import com.pulumi.azurenative.compute.inputs.RunCommandManagedIdentityArgs;
    import com.pulumi.azurenative.compute.inputs.RunCommandInputParameterArgs;
    import com.pulumi.azurenative.compute.inputs.VirtualMachineRunCommandScriptSourceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var virtualMachineScaleSetVMRunCommand = new VirtualMachineScaleSetVMRunCommand("virtualMachineScaleSetVMRunCommand", VirtualMachineScaleSetVMRunCommandArgs.builder()        
                .asyncExecution(false)
                .errorBlobManagedIdentity()
                .errorBlobUri("https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt")
                .instanceId("0")
                .location("West US")
                .outputBlobManagedIdentity(RunCommandManagedIdentityArgs.builder()
                    .clientId("22d35efb-0c99-4041-8c5b-6d24db33a69a")
                    .build())
                .outputBlobUri("https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt")
                .parameters(            
                    RunCommandInputParameterArgs.builder()
                        .name("param1")
                        .value("value1")
                        .build(),
                    RunCommandInputParameterArgs.builder()
                        .name("param2")
                        .value("value2")
                        .build())
                .resourceGroupName("myResourceGroup")
                .runAsPassword("<runAsPassword>")
                .runAsUser("user1")
                .runCommandName("myRunCommand")
                .source(VirtualMachineRunCommandScriptSourceArgs.builder()
                    .scriptUri("https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1")
                    .scriptUriManagedIdentity(RunCommandManagedIdentityArgs.builder()
                        .objectId("4231e4d2-33e4-4e23-96b2-17888afa6072")
                        .build())
                    .build())
                .timeoutInSeconds(3600)
                .treatFailureAsDeploymentFailure(true)
                .vmScaleSetName("myvmScaleSet")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    virtual_machine_scale_set_vm_run_command = azure_native.compute.VirtualMachineScaleSetVMRunCommand("virtualMachineScaleSetVMRunCommand",
        async_execution=False,
        error_blob_managed_identity=azure_native.compute.RunCommandManagedIdentityArgs(),
        error_blob_uri="https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt",
        instance_id="0",
        location="West US",
        output_blob_managed_identity=azure_native.compute.RunCommandManagedIdentityArgs(
            client_id="22d35efb-0c99-4041-8c5b-6d24db33a69a",
        ),
        output_blob_uri="https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt",
        parameters=[
            azure_native.compute.RunCommandInputParameterArgs(
                name="param1",
                value="value1",
            ),
            azure_native.compute.RunCommandInputParameterArgs(
                name="param2",
                value="value2",
            ),
        ],
        resource_group_name="myResourceGroup",
        run_as_password="<runAsPassword>",
        run_as_user="user1",
        run_command_name="myRunCommand",
        source=azure_native.compute.VirtualMachineRunCommandScriptSourceArgs(
            script_uri="https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1",
            script_uri_managed_identity=azure_native.compute.RunCommandManagedIdentityArgs(
                object_id="4231e4d2-33e4-4e23-96b2-17888afa6072",
            ),
        ),
        timeout_in_seconds=3600,
        treat_failure_as_deployment_failure=True,
        vm_scale_set_name="myvmScaleSet")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const virtualMachineScaleSetVMRunCommand = new azure_native.compute.VirtualMachineScaleSetVMRunCommand("virtualMachineScaleSetVMRunCommand", {
        asyncExecution: false,
        errorBlobManagedIdentity: {},
        errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt",
        instanceId: "0",
        location: "West US",
        outputBlobManagedIdentity: {
            clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a",
        },
        outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt",
        parameters: [
            {
                name: "param1",
                value: "value1",
            },
            {
                name: "param2",
                value: "value2",
            },
        ],
        resourceGroupName: "myResourceGroup",
        runAsPassword: "<runAsPassword>",
        runAsUser: "user1",
        runCommandName: "myRunCommand",
        source: {
            scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1",
            scriptUriManagedIdentity: {
                objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072",
            },
        },
        timeoutInSeconds: 3600,
        treatFailureAsDeploymentFailure: true,
        vmScaleSetName: "myvmScaleSet",
    });
    
    resources:
      virtualMachineScaleSetVMRunCommand:
        type: azure-native:compute:VirtualMachineScaleSetVMRunCommand
        properties:
          asyncExecution: false
          errorBlobManagedIdentity: {}
          errorBlobUri: https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt
          instanceId: '0'
          location: West US
          outputBlobManagedIdentity:
            clientId: 22d35efb-0c99-4041-8c5b-6d24db33a69a
          outputBlobUri: https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt
          parameters:
            - name: param1
              value: value1
            - name: param2
              value: value2
          resourceGroupName: myResourceGroup
          runAsPassword: <runAsPassword>
          runAsUser: user1
          runCommandName: myRunCommand
          source:
            scriptUri: https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1
            scriptUriManagedIdentity:
              objectId: 4231e4d2-33e4-4e23-96b2-17888afa6072
          timeoutInSeconds: 3600
          treatFailureAsDeploymentFailure: true
          vmScaleSetName: myvmScaleSet
    

    Create VirtualMachineScaleSetVMRunCommand Resource

    new VirtualMachineScaleSetVMRunCommand(name: string, args: VirtualMachineScaleSetVMRunCommandArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualMachineScaleSetVMRunCommand(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           async_execution: Optional[bool] = None,
                                           error_blob_managed_identity: Optional[RunCommandManagedIdentityArgs] = None,
                                           error_blob_uri: Optional[str] = None,
                                           instance_id: Optional[str] = None,
                                           location: Optional[str] = None,
                                           output_blob_managed_identity: Optional[RunCommandManagedIdentityArgs] = None,
                                           output_blob_uri: Optional[str] = None,
                                           parameters: Optional[Sequence[RunCommandInputParameterArgs]] = None,
                                           protected_parameters: Optional[Sequence[RunCommandInputParameterArgs]] = None,
                                           resource_group_name: Optional[str] = None,
                                           run_as_password: Optional[str] = None,
                                           run_as_user: Optional[str] = None,
                                           run_command_name: Optional[str] = None,
                                           source: Optional[VirtualMachineRunCommandScriptSourceArgs] = None,
                                           tags: Optional[Mapping[str, str]] = None,
                                           timeout_in_seconds: Optional[int] = None,
                                           treat_failure_as_deployment_failure: Optional[bool] = None,
                                           vm_scale_set_name: Optional[str] = None)
    @overload
    def VirtualMachineScaleSetVMRunCommand(resource_name: str,
                                           args: VirtualMachineScaleSetVMRunCommandArgs,
                                           opts: Optional[ResourceOptions] = None)
    func NewVirtualMachineScaleSetVMRunCommand(ctx *Context, name string, args VirtualMachineScaleSetVMRunCommandArgs, opts ...ResourceOption) (*VirtualMachineScaleSetVMRunCommand, error)
    public VirtualMachineScaleSetVMRunCommand(string name, VirtualMachineScaleSetVMRunCommandArgs args, CustomResourceOptions? opts = null)
    public VirtualMachineScaleSetVMRunCommand(String name, VirtualMachineScaleSetVMRunCommandArgs args)
    public VirtualMachineScaleSetVMRunCommand(String name, VirtualMachineScaleSetVMRunCommandArgs args, CustomResourceOptions options)
    
    type: azure-native:compute:VirtualMachineScaleSetVMRunCommand
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VirtualMachineScaleSetVMRunCommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualMachineScaleSetVMRunCommandArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualMachineScaleSetVMRunCommandArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualMachineScaleSetVMRunCommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualMachineScaleSetVMRunCommandArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VirtualMachineScaleSetVMRunCommand Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VirtualMachineScaleSetVMRunCommand resource accepts the following input properties:

    InstanceId string
    The instance ID of the virtual machine.
    ResourceGroupName string
    The name of the resource group.
    VmScaleSetName string
    The name of the VM scale set.
    AsyncExecution bool
    Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
    ErrorBlobManagedIdentity Pulumi.AzureNative.Compute.Inputs.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
    ErrorBlobUri string
    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.
    Location string
    Resource location
    OutputBlobManagedIdentity Pulumi.AzureNative.Compute.Inputs.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
    OutputBlobUri string
    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 List<Pulumi.AzureNative.Compute.Inputs.RunCommandInputParameter>
    The parameters used by the script.
    ProtectedParameters List<Pulumi.AzureNative.Compute.Inputs.RunCommandInputParameter>
    The parameters used by the script.
    RunAsPassword string
    Specifies the user account password on the VM when executing the run command.
    RunAsUser string
    Specifies the user account on the VM when executing the run command.
    RunCommandName string
    The name of the virtual machine run command.
    Source Pulumi.AzureNative.Compute.Inputs.VirtualMachineRunCommandScriptSource
    The source of the run command script.
    Tags Dictionary<string, string>
    Resource tags
    TimeoutInSeconds int
    The timeout in seconds to execute the run command.
    TreatFailureAsDeploymentFailure bool
    Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    InstanceId string
    The instance ID of the virtual machine.
    ResourceGroupName string
    The name of the resource group.
    VmScaleSetName string
    The name of the VM scale set.
    AsyncExecution bool
    Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
    ErrorBlobManagedIdentity RunCommandManagedIdentityArgs
    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
    ErrorBlobUri string
    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.
    Location string
    Resource location
    OutputBlobManagedIdentity RunCommandManagedIdentityArgs
    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
    OutputBlobUri string
    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 []RunCommandInputParameterArgs
    The parameters used by the script.
    ProtectedParameters []RunCommandInputParameterArgs
    The parameters used by the script.
    RunAsPassword string
    Specifies the user account password on the VM when executing the run command.
    RunAsUser string
    Specifies the user account on the VM when executing the run command.
    RunCommandName string
    The name of the virtual machine run command.
    Source VirtualMachineRunCommandScriptSourceArgs
    The source of the run command script.
    Tags map[string]string
    Resource tags
    TimeoutInSeconds int
    The timeout in seconds to execute the run command.
    TreatFailureAsDeploymentFailure bool
    Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    instanceId String
    The instance ID of the virtual machine.
    resourceGroupName String
    The name of the resource group.
    vmScaleSetName String
    The name of the VM scale set.
    asyncExecution Boolean
    Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
    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
    errorBlobUri String
    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.
    location String
    Resource location
    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
    outputBlobUri String
    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 List<RunCommandInputParameter>
    The parameters used by the script.
    protectedParameters List<RunCommandInputParameter>
    The parameters used by the script.
    runAsPassword String
    Specifies the user account password on the VM when executing the run command.
    runAsUser String
    Specifies the user account on the VM when executing the run command.
    runCommandName String
    The name of the virtual machine run command.
    source VirtualMachineRunCommandScriptSource
    The source of the run command script.
    tags Map<String,String>
    Resource tags
    timeoutInSeconds Integer
    The timeout in seconds to execute the run command.
    treatFailureAsDeploymentFailure Boolean
    Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    instanceId string
    The instance ID of the virtual machine.
    resourceGroupName string
    The name of the resource group.
    vmScaleSetName string
    The name of the VM scale set.
    asyncExecution boolean
    Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
    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
    errorBlobUri string
    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.
    location string
    Resource location
    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
    outputBlobUri string
    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 RunCommandInputParameter[]
    The parameters used by the script.
    protectedParameters RunCommandInputParameter[]
    The parameters used by the script.
    runAsPassword string
    Specifies the user account password on the VM when executing the run command.
    runAsUser string
    Specifies the user account on the VM when executing the run command.
    runCommandName string
    The name of the virtual machine run command.
    source VirtualMachineRunCommandScriptSource
    The source of the run command script.
    tags {[key: string]: string}
    Resource tags
    timeoutInSeconds number
    The timeout in seconds to execute the run command.
    treatFailureAsDeploymentFailure boolean
    Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    instance_id str
    The instance ID of the virtual machine.
    resource_group_name str
    The name of the resource group.
    vm_scale_set_name str
    The name of the VM scale set.
    async_execution bool
    Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
    error_blob_managed_identity RunCommandManagedIdentityArgs
    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_blob_uri str
    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.
    location str
    Resource location
    output_blob_managed_identity RunCommandManagedIdentityArgs
    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_blob_uri str
    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 Sequence[RunCommandInputParameterArgs]
    The parameters used by the script.
    protected_parameters Sequence[RunCommandInputParameterArgs]
    The parameters used by the script.
    run_as_password str
    Specifies the user account password on the VM when executing the run command.
    run_as_user str
    Specifies the user account on the VM when executing the run command.
    run_command_name str
    The name of the virtual machine run command.
    source VirtualMachineRunCommandScriptSourceArgs
    The source of the run command script.
    tags Mapping[str, str]
    Resource tags
    timeout_in_seconds int
    The timeout in seconds to execute the run command.
    treat_failure_as_deployment_failure bool
    Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    instanceId String
    The instance ID of the virtual machine.
    resourceGroupName String
    The name of the resource group.
    vmScaleSetName String
    The name of the VM scale set.
    asyncExecution Boolean
    Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
    errorBlobManagedIdentity Property Map
    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
    errorBlobUri String
    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.
    location String
    Resource location
    outputBlobManagedIdentity Property Map
    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
    outputBlobUri String
    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 List<Property Map>
    The parameters used by the script.
    protectedParameters List<Property Map>
    The parameters used by the script.
    runAsPassword String
    Specifies the user account password on the VM when executing the run command.
    runAsUser String
    Specifies the user account on the VM when executing the run command.
    runCommandName String
    The name of the virtual machine run command.
    source Property Map
    The source of the run command script.
    tags Map<String>
    Resource tags
    timeoutInSeconds Number
    The timeout in seconds to execute the run command.
    treatFailureAsDeploymentFailure Boolean
    Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualMachineScaleSetVMRunCommand resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceView Pulumi.AzureNative.Compute.Outputs.VirtualMachineRunCommandInstanceViewResponse
    The virtual machine run command instance view.
    Name string
    Resource name
    ProvisioningState string
    The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    Type string
    Resource type
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceView VirtualMachineRunCommandInstanceViewResponse
    The virtual machine run command instance view.
    Name string
    Resource name
    ProvisioningState string
    The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    Type string
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    instanceView VirtualMachineRunCommandInstanceViewResponse
    The virtual machine run command instance view.
    name String
    Resource name
    provisioningState String
    The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    type String
    Resource type
    id string
    The provider-assigned unique ID for this managed resource.
    instanceView VirtualMachineRunCommandInstanceViewResponse
    The virtual machine run command instance view.
    name string
    Resource name
    provisioningState string
    The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    type string
    Resource type
    id str
    The provider-assigned unique ID for this managed resource.
    instance_view VirtualMachineRunCommandInstanceViewResponse
    The virtual machine run command instance view.
    name str
    Resource name
    provisioning_state str
    The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    type str
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    instanceView Property Map
    The virtual machine run command instance view.
    name String
    Resource name
    provisioningState String
    The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results
    type String
    Resource type

    Supporting Types

    InstanceViewStatusResponse, InstanceViewStatusResponseArgs

    Code string
    The status code.
    DisplayStatus string
    The short localizable label for the status.
    Level string
    The level code.
    Message string
    The detailed status message, including for alerts and error messages.
    Time string
    The time of the status.
    Code string
    The status code.
    DisplayStatus string
    The short localizable label for the status.
    Level string
    The level code.
    Message string
    The detailed status message, including for alerts and error messages.
    Time string
    The time of the status.
    code String
    The status code.
    displayStatus String
    The short localizable label for the status.
    level String
    The level code.
    message String
    The detailed status message, including for alerts and error messages.
    time String
    The time of the status.
    code string
    The status code.
    displayStatus string
    The short localizable label for the status.
    level string
    The level code.
    message string
    The detailed status message, including for alerts and error messages.
    time string
    The time of the status.
    code str
    The status code.
    display_status str
    The short localizable label for the status.
    level str
    The level code.
    message str
    The detailed status message, including for alerts and error messages.
    time str
    The time of the status.
    code String
    The status code.
    displayStatus String
    The short localizable label for the status.
    level String
    The level code.
    message String
    The detailed status message, including for alerts and error messages.
    time String
    The time of the status.

    RunCommandInputParameter, RunCommandInputParameterArgs

    Name string
    The run command parameter name.
    Value string
    The run command parameter value.
    Name string
    The run command parameter name.
    Value string
    The run command parameter value.
    name String
    The run command parameter name.
    value String
    The run command parameter value.
    name string
    The run command parameter name.
    value string
    The run command parameter value.
    name str
    The run command parameter name.
    value str
    The run command parameter value.
    name String
    The run command parameter name.
    value String
    The run command parameter value.

    RunCommandInputParameterResponse, RunCommandInputParameterResponseArgs

    Name string
    The run command parameter name.
    Value string
    The run command parameter value.
    Name string
    The run command parameter name.
    Value string
    The run command parameter value.
    name String
    The run command parameter name.
    value String
    The run command parameter value.
    name string
    The run command parameter name.
    value string
    The run command parameter value.
    name str
    The run command parameter name.
    value str
    The run command parameter value.
    name String
    The run command parameter name.
    value String
    The run command parameter value.

    RunCommandManagedIdentity, RunCommandManagedIdentityArgs

    ClientId string
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    ObjectId string
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    ClientId string
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    ObjectId string
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    clientId String
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    objectId String
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    clientId string
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    objectId string
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    client_id str
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    object_id str
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    clientId String
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    objectId String
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.

    RunCommandManagedIdentityResponse, RunCommandManagedIdentityResponseArgs

    ClientId string
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    ObjectId string
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    ClientId string
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    ObjectId string
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    clientId String
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    objectId String
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    clientId string
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    objectId string
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    client_id str
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    object_id str
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
    clientId String
    Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
    objectId String
    Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.

    VirtualMachineRunCommandInstanceViewResponse, VirtualMachineRunCommandInstanceViewResponseArgs

    EndTime string
    Script end time.
    Error string
    Script error stream.
    ExecutionMessage string
    Communicate script configuration errors or execution messages.
    ExecutionState string
    Script execution status.
    ExitCode int
    Exit code returned from script execution.
    Output string
    Script output stream.
    StartTime string
    Script start time.
    Statuses List<Pulumi.AzureNative.Compute.Inputs.InstanceViewStatusResponse>
    The resource status information.
    EndTime string
    Script end time.
    Error string
    Script error stream.
    ExecutionMessage string
    Communicate script configuration errors or execution messages.
    ExecutionState string
    Script execution status.
    ExitCode int
    Exit code returned from script execution.
    Output string
    Script output stream.
    StartTime string
    Script start time.
    Statuses []InstanceViewStatusResponse
    The resource status information.
    endTime String
    Script end time.
    error String
    Script error stream.
    executionMessage String
    Communicate script configuration errors or execution messages.
    executionState String
    Script execution status.
    exitCode Integer
    Exit code returned from script execution.
    output String
    Script output stream.
    startTime String
    Script start time.
    statuses List<InstanceViewStatusResponse>
    The resource status information.
    endTime string
    Script end time.
    error string
    Script error stream.
    executionMessage string
    Communicate script configuration errors or execution messages.
    executionState string
    Script execution status.
    exitCode number
    Exit code returned from script execution.
    output string
    Script output stream.
    startTime string
    Script start time.
    statuses InstanceViewStatusResponse[]
    The resource status information.
    end_time str
    Script end time.
    error str
    Script error stream.
    execution_message str
    Communicate script configuration errors or execution messages.
    execution_state str
    Script execution status.
    exit_code int
    Exit code returned from script execution.
    output str
    Script output stream.
    start_time str
    Script start time.
    statuses Sequence[InstanceViewStatusResponse]
    The resource status information.
    endTime String
    Script end time.
    error String
    Script error stream.
    executionMessage String
    Communicate script configuration errors or execution messages.
    executionState String
    Script execution status.
    exitCode Number
    Exit code returned from script execution.
    output String
    Script output stream.
    startTime String
    Script start time.
    statuses List<Property Map>
    The resource status information.

    VirtualMachineRunCommandScriptSource, VirtualMachineRunCommandScriptSourceArgs

    CommandId string
    Specifies a commandId of predefined built-in script.
    Script string
    Specifies the script content to be executed on the VM.
    ScriptUri string
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    ScriptUriManagedIdentity Pulumi.AzureNative.Compute.Inputs.RunCommandManagedIdentity
    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.
    CommandId string
    Specifies a commandId of predefined built-in script.
    Script string
    Specifies the script content to be executed on the VM.
    ScriptUri string
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    ScriptUriManagedIdentity RunCommandManagedIdentity
    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.
    commandId String
    Specifies a commandId of predefined built-in script.
    script String
    Specifies the script content to be executed on the VM.
    scriptUri String
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    scriptUriManagedIdentity RunCommandManagedIdentity
    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.
    commandId string
    Specifies a commandId of predefined built-in script.
    script string
    Specifies the script content to be executed on the VM.
    scriptUri string
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    scriptUriManagedIdentity RunCommandManagedIdentity
    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.
    command_id str
    Specifies a commandId of predefined built-in script.
    script str
    Specifies the script content to be executed on the VM.
    script_uri str
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    script_uri_managed_identity RunCommandManagedIdentity
    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.
    commandId String
    Specifies a commandId of predefined built-in script.
    script String
    Specifies the script content to be executed on the VM.
    scriptUri String
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    scriptUriManagedIdentity Property Map
    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.

    VirtualMachineRunCommandScriptSourceResponse, VirtualMachineRunCommandScriptSourceResponseArgs

    CommandId string
    Specifies a commandId of predefined built-in script.
    Script string
    Specifies the script content to be executed on the VM.
    ScriptUri string
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    ScriptUriManagedIdentity Pulumi.AzureNative.Compute.Inputs.RunCommandManagedIdentityResponse
    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.
    CommandId string
    Specifies a commandId of predefined built-in script.
    Script string
    Specifies the script content to be executed on the VM.
    ScriptUri string
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    ScriptUriManagedIdentity RunCommandManagedIdentityResponse
    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.
    commandId String
    Specifies a commandId of predefined built-in script.
    script String
    Specifies the script content to be executed on the VM.
    scriptUri String
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    scriptUriManagedIdentity RunCommandManagedIdentityResponse
    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.
    commandId string
    Specifies a commandId of predefined built-in script.
    script string
    Specifies the script content to be executed on the VM.
    scriptUri string
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    scriptUriManagedIdentity RunCommandManagedIdentityResponse
    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.
    command_id str
    Specifies a commandId of predefined built-in script.
    script str
    Specifies the script content to be executed on the VM.
    script_uri str
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    script_uri_managed_identity RunCommandManagedIdentityResponse
    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.
    commandId String
    Specifies a commandId of predefined built-in script.
    script String
    Specifies the script content to be executed on the VM.
    scriptUri String
    Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
    scriptUriManagedIdentity Property Map
    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.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:compute:VirtualMachineScaleSetVMRunCommand myRunCommand /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi