Class MachineRunCommandScriptSourceArgs.Builder

    • Method Detail

      • commandId

        public MachineRunCommandScriptSourceArgs.Builder commandId​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> commandId)
        Parameters:
        commandId - Specifies the commandId of predefined built-in script.
        Returns:
        builder
      • script

        public MachineRunCommandScriptSourceArgs.Builder script​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> script)
        Parameters:
        script - Specifies the script content to be executed on the machine.
        Returns:
        builder
      • scriptUri

        public MachineRunCommandScriptSourceArgs.Builder scriptUri​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> scriptUri)
        Parameters:
        scriptUri - Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
        Returns:
        builder
      • scriptUri

        public MachineRunCommandScriptSourceArgs.Builder scriptUri​(java.lang.String scriptUri)
        Parameters:
        scriptUri - Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
        Returns:
        builder
      • scriptUriManagedIdentity

        public MachineRunCommandScriptSourceArgs.Builder scriptUriManagedIdentity​(@Nullable
                                                                                  com.pulumi.core.Output<RunCommandManagedIdentityArgs> scriptUriManagedIdentity)
        Parameters:
        scriptUriManagedIdentity - 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.
        Returns:
        builder
      • scriptUriManagedIdentity

        public MachineRunCommandScriptSourceArgs.Builder scriptUriManagedIdentity​(RunCommandManagedIdentityArgs scriptUriManagedIdentity)
        Parameters:
        scriptUriManagedIdentity - 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.
        Returns:
        builder