Azure Native

Pulumi Official
Package maintained by Pulumi
v1.68.2 published on Tuesday, Aug 16, 2022 by Pulumi

DeploymentScript

Deprecated:

Please use one of the variants: AzureCliScript, AzurePowerShellScript.

Deployment script object. API Version: 2020-10-01.

Example Usage

DeploymentScriptsCreate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var deploymentScript = new AzureNative.Resources.DeploymentScript("deploymentScript", new()
    {
        Identity = new AzureNative.Resources.Inputs.ManagedServiceIdentityArgs
        {
            Type = "UserAssigned",
            UserAssignedIdentities = 
            {
                { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai",  },
            },
        },
        Kind = "AzurePowerShell",
        Location = "westus",
        ResourceGroupName = "script-rg",
        ScriptName = "MyDeploymentScript",
    });

});
package main

import (
	resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resources.NewDeploymentScript(ctx, "deploymentScript", &resources.DeploymentScriptArgs{
			Identity: &resources.ManagedServiceIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				UserAssignedIdentities: pulumi.AnyMap{
					"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": nil,
				},
			},
			Kind:              pulumi.String("AzurePowerShell"),
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("script-rg"),
			ScriptName:        pulumi.String("MyDeploymentScript"),
		})
		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.resources.DeploymentScript;
import com.pulumi.azurenative.resources.DeploymentScriptArgs;
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 deploymentScript = new DeploymentScript("deploymentScript", DeploymentScriptArgs.builder()        
            .identity(Map.ofEntries(
                Map.entry("type", "UserAssigned"),
                Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai", ))
            ))
            .kind("AzurePowerShell")
            .location("westus")
            .resourceGroupName("script-rg")
            .scriptName("MyDeploymentScript")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

deployment_script = azure_native.resources.DeploymentScript("deploymentScript",
    identity=azure_native.resources.ManagedServiceIdentityArgs(
        type="UserAssigned",
        user_assigned_identities={
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    ),
    kind="AzurePowerShell",
    location="westus",
    resource_group_name="script-rg",
    script_name="MyDeploymentScript")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const deploymentScript = new azure_native.resources.DeploymentScript("deploymentScript", {
    identity: {
        type: "UserAssigned",
        userAssignedIdentities: {
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    },
    kind: "AzurePowerShell",
    location: "westus",
    resourceGroupName: "script-rg",
    scriptName: "MyDeploymentScript",
});
resources:
  deploymentScript:
    type: azure-native:resources:DeploymentScript
    properties:
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai
          : {}
      kind: AzurePowerShell
      location: westus
      resourceGroupName: script-rg
      scriptName: MyDeploymentScript

DeploymentScriptsCreateNoUserManagedIdentity

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var deploymentScript = new AzureNative.Resources.DeploymentScript("deploymentScript", new()
    {
        Kind = "AzurePowerShell",
        Location = "westus",
        ResourceGroupName = "script-rg",
        ScriptName = "MyDeploymentScript",
    });

});
package main

import (
	resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resources.NewDeploymentScript(ctx, "deploymentScript", &resources.DeploymentScriptArgs{
			Kind:              pulumi.String("AzurePowerShell"),
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("script-rg"),
			ScriptName:        pulumi.String("MyDeploymentScript"),
		})
		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.resources.DeploymentScript;
import com.pulumi.azurenative.resources.DeploymentScriptArgs;
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 deploymentScript = new DeploymentScript("deploymentScript", DeploymentScriptArgs.builder()        
            .kind("AzurePowerShell")
            .location("westus")
            .resourceGroupName("script-rg")
            .scriptName("MyDeploymentScript")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

deployment_script = azure_native.resources.DeploymentScript("deploymentScript",
    kind="AzurePowerShell",
    location="westus",
    resource_group_name="script-rg",
    script_name="MyDeploymentScript")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const deploymentScript = new azure_native.resources.DeploymentScript("deploymentScript", {
    kind: "AzurePowerShell",
    location: "westus",
    resourceGroupName: "script-rg",
    scriptName: "MyDeploymentScript",
});
resources:
  deploymentScript:
    type: azure-native:resources:DeploymentScript
    properties:
      kind: AzurePowerShell
      location: westus
      resourceGroupName: script-rg
      scriptName: MyDeploymentScript

DeploymentScriptsCreate_MinCreate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var deploymentScript = new AzureNative.Resources.DeploymentScript("deploymentScript", new()
    {
        Identity = new AzureNative.Resources.Inputs.ManagedServiceIdentityArgs
        {
            Type = "UserAssigned",
            UserAssignedIdentities = 
            {
                { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai",  },
            },
        },
        Kind = "AzurePowerShell",
        Location = "westus",
        ResourceGroupName = "script-rg",
        ScriptName = "MyDeploymentScript",
    });

});
package main

import (
	resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resources.NewDeploymentScript(ctx, "deploymentScript", &resources.DeploymentScriptArgs{
			Identity: &resources.ManagedServiceIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				UserAssignedIdentities: pulumi.AnyMap{
					"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": nil,
				},
			},
			Kind:              pulumi.String("AzurePowerShell"),
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("script-rg"),
			ScriptName:        pulumi.String("MyDeploymentScript"),
		})
		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.resources.DeploymentScript;
import com.pulumi.azurenative.resources.DeploymentScriptArgs;
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 deploymentScript = new DeploymentScript("deploymentScript", DeploymentScriptArgs.builder()        
            .identity(Map.ofEntries(
                Map.entry("type", "UserAssigned"),
                Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai", ))
            ))
            .kind("AzurePowerShell")
            .location("westus")
            .resourceGroupName("script-rg")
            .scriptName("MyDeploymentScript")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

deployment_script = azure_native.resources.DeploymentScript("deploymentScript",
    identity=azure_native.resources.ManagedServiceIdentityArgs(
        type="UserAssigned",
        user_assigned_identities={
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    ),
    kind="AzurePowerShell",
    location="westus",
    resource_group_name="script-rg",
    script_name="MyDeploymentScript")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const deploymentScript = new azure_native.resources.DeploymentScript("deploymentScript", {
    identity: {
        type: "UserAssigned",
        userAssignedIdentities: {
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    },
    kind: "AzurePowerShell",
    location: "westus",
    resourceGroupName: "script-rg",
    scriptName: "MyDeploymentScript",
});
resources:
  deploymentScript:
    type: azure-native:resources:DeploymentScript
    properties:
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai
          : {}
      kind: AzurePowerShell
      location: westus
      resourceGroupName: script-rg
      scriptName: MyDeploymentScript

DeploymentScriptsCreate_UsingCustomACIName

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var deploymentScript = new AzureNative.Resources.DeploymentScript("deploymentScript", new()
    {
        Identity = new AzureNative.Resources.Inputs.ManagedServiceIdentityArgs
        {
            Type = "UserAssigned",
            UserAssignedIdentities = 
            {
                { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai",  },
            },
        },
        Kind = "AzurePowerShell",
        Location = "westus",
        ResourceGroupName = "script-rg",
        ScriptName = "MyDeploymentScript",
    });

});
package main

import (
	resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resources.NewDeploymentScript(ctx, "deploymentScript", &resources.DeploymentScriptArgs{
			Identity: &resources.ManagedServiceIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				UserAssignedIdentities: pulumi.AnyMap{
					"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": nil,
				},
			},
			Kind:              pulumi.String("AzurePowerShell"),
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("script-rg"),
			ScriptName:        pulumi.String("MyDeploymentScript"),
		})
		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.resources.DeploymentScript;
import com.pulumi.azurenative.resources.DeploymentScriptArgs;
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 deploymentScript = new DeploymentScript("deploymentScript", DeploymentScriptArgs.builder()        
            .identity(Map.ofEntries(
                Map.entry("type", "UserAssigned"),
                Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai", ))
            ))
            .kind("AzurePowerShell")
            .location("westus")
            .resourceGroupName("script-rg")
            .scriptName("MyDeploymentScript")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

deployment_script = azure_native.resources.DeploymentScript("deploymentScript",
    identity=azure_native.resources.ManagedServiceIdentityArgs(
        type="UserAssigned",
        user_assigned_identities={
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    ),
    kind="AzurePowerShell",
    location="westus",
    resource_group_name="script-rg",
    script_name="MyDeploymentScript")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const deploymentScript = new azure_native.resources.DeploymentScript("deploymentScript", {
    identity: {
        type: "UserAssigned",
        userAssignedIdentities: {
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    },
    kind: "AzurePowerShell",
    location: "westus",
    resourceGroupName: "script-rg",
    scriptName: "MyDeploymentScript",
});
resources:
  deploymentScript:
    type: azure-native:resources:DeploymentScript
    properties:
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai
          : {}
      kind: AzurePowerShell
      location: westus
      resourceGroupName: script-rg
      scriptName: MyDeploymentScript

DeploymentScriptsCreate_UsingExistingStorageAccount

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var deploymentScript = new AzureNative.Resources.DeploymentScript("deploymentScript", new()
    {
        Identity = new AzureNative.Resources.Inputs.ManagedServiceIdentityArgs
        {
            Type = "UserAssigned",
            UserAssignedIdentities = 
            {
                { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai",  },
            },
        },
        Kind = "AzurePowerShell",
        Location = "westus",
        ResourceGroupName = "script-rg",
        ScriptName = "MyDeploymentScript",
    });

});
package main

import (
	resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resources.NewDeploymentScript(ctx, "deploymentScript", &resources.DeploymentScriptArgs{
			Identity: &resources.ManagedServiceIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				UserAssignedIdentities: pulumi.AnyMap{
					"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": nil,
				},
			},
			Kind:              pulumi.String("AzurePowerShell"),
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("script-rg"),
			ScriptName:        pulumi.String("MyDeploymentScript"),
		})
		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.resources.DeploymentScript;
import com.pulumi.azurenative.resources.DeploymentScriptArgs;
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 deploymentScript = new DeploymentScript("deploymentScript", DeploymentScriptArgs.builder()        
            .identity(Map.ofEntries(
                Map.entry("type", "UserAssigned"),
                Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai", ))
            ))
            .kind("AzurePowerShell")
            .location("westus")
            .resourceGroupName("script-rg")
            .scriptName("MyDeploymentScript")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

deployment_script = azure_native.resources.DeploymentScript("deploymentScript",
    identity=azure_native.resources.ManagedServiceIdentityArgs(
        type="UserAssigned",
        user_assigned_identities={
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    ),
    kind="AzurePowerShell",
    location="westus",
    resource_group_name="script-rg",
    script_name="MyDeploymentScript")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const deploymentScript = new azure_native.resources.DeploymentScript("deploymentScript", {
    identity: {
        type: "UserAssigned",
        userAssignedIdentities: {
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {},
        },
    },
    kind: "AzurePowerShell",
    location: "westus",
    resourceGroupName: "script-rg",
    scriptName: "MyDeploymentScript",
});
resources:
  deploymentScript:
    type: azure-native:resources:DeploymentScript
    properties:
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai
          : {}
      kind: AzurePowerShell
      location: westus
      resourceGroupName: script-rg
      scriptName: MyDeploymentScript

Create a DeploymentScript Resource

new DeploymentScript(name: string, args: DeploymentScriptArgs, opts?: CustomResourceOptions);
@overload
def DeploymentScript(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     identity: Optional[ManagedServiceIdentityArgs] = None,
                     kind: Optional[Union[str, ScriptType]] = None,
                     location: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     script_name: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
@overload
def DeploymentScript(resource_name: str,
                     args: DeploymentScriptArgs,
                     opts: Optional[ResourceOptions] = None)
func NewDeploymentScript(ctx *Context, name string, args DeploymentScriptArgs, opts ...ResourceOption) (*DeploymentScript, error)
public DeploymentScript(string name, DeploymentScriptArgs args, CustomResourceOptions? opts = null)
public DeploymentScript(String name, DeploymentScriptArgs args)
public DeploymentScript(String name, DeploymentScriptArgs args, CustomResourceOptions options)
type: azure-native:resources:DeploymentScript
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DeploymentScriptArgs
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 DeploymentScriptArgs
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 DeploymentScriptArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DeploymentScriptArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DeploymentScriptArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DeploymentScript 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 DeploymentScript resource accepts the following input properties:

Kind string | Pulumi.AzureNative.Resources.ScriptType

Type of the script.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

Identity Pulumi.AzureNative.Resources.Inputs.ManagedServiceIdentityArgs

Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.

Location string

The location of the ACI and the storage account for the deployment script.

ScriptName string

Name of the deployment script.

Tags Dictionary<string, string>

Resource tags.

Kind string | ScriptType

Type of the script.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

Identity ManagedServiceIdentityArgs

Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.

Location string

The location of the ACI and the storage account for the deployment script.

ScriptName string

Name of the deployment script.

Tags map[string]string

Resource tags.

kind String | ScriptType

Type of the script.

resourceGroupName String

The name of the resource group. The name is case insensitive.

identity ManagedServiceIdentityArgs

Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.

location String

The location of the ACI and the storage account for the deployment script.

scriptName String

Name of the deployment script.

tags Map<String,String>

Resource tags.

kind string | ScriptType

Type of the script.

resourceGroupName string

The name of the resource group. The name is case insensitive.

identity ManagedServiceIdentityArgs

Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.

location string

The location of the ACI and the storage account for the deployment script.

scriptName string

Name of the deployment script.

tags {[key: string]: string}

Resource tags.

kind str | ScriptType

Type of the script.

resource_group_name str

The name of the resource group. The name is case insensitive.

identity ManagedServiceIdentityArgs

Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.

location str

The location of the ACI and the storage account for the deployment script.

script_name str

Name of the deployment script.

tags Mapping[str, str]

Resource tags.

kind String | "AzurePowerShell" | "AzureCLI"

Type of the script.

resourceGroupName String

The name of the resource group. The name is case insensitive.

identity Property Map

Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.

location String

The location of the ACI and the storage account for the deployment script.

scriptName String

Name of the deployment script.

tags Map<String>

Resource tags.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of this resource.

SystemData Pulumi.AzureNative.Resources.Outputs.SystemDataResponse

The system metadata related to this resource.

Type string

Type of this resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of this resource.

SystemData SystemDataResponse

The system metadata related to this resource.

Type string

Type of this resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of this resource.

systemData SystemDataResponse

The system metadata related to this resource.

type String

Type of this resource.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of this resource.

systemData SystemDataResponse

The system metadata related to this resource.

type string

Type of this resource.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of this resource.

system_data SystemDataResponse

The system metadata related to this resource.

type str

Type of this resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of this resource.

systemData Property Map

The system metadata related to this resource.

type String

Type of this resource.

Supporting Types

ManagedServiceIdentity

Type string | Pulumi.AzureNative.Resources.ManagedServiceIdentityType

Type of the managed identity.

UserAssignedIdentities Dictionary<string, object>

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

Type string | ManagedServiceIdentityType

Type of the managed identity.

UserAssignedIdentities map[string]interface{}

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

type String | ManagedServiceIdentityType

Type of the managed identity.

userAssignedIdentities Map<String,Object>

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

type string | ManagedServiceIdentityType

Type of the managed identity.

userAssignedIdentities {[key: string]: any}

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

type str | ManagedServiceIdentityType

Type of the managed identity.

user_assigned_identities Mapping[str, Any]

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

type String | "UserAssigned"

Type of the managed identity.

userAssignedIdentities Map<Any>

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

ManagedServiceIdentityResponse

TenantId string

ID of the Azure Active Directory.

Type string

Type of the managed identity.

UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.Resources.Inputs.UserAssignedIdentityResponse>

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

TenantId string

ID of the Azure Active Directory.

Type string

Type of the managed identity.

UserAssignedIdentities map[string]UserAssignedIdentityResponse

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

tenantId String

ID of the Azure Active Directory.

type String

Type of the managed identity.

userAssignedIdentities Map<String,UserAssignedIdentityResponse>

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

tenantId string

ID of the Azure Active Directory.

type string

Type of the managed identity.

userAssignedIdentities {[key: string]: UserAssignedIdentityResponse}

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

tenant_id str

ID of the Azure Active Directory.

type str

Type of the managed identity.

user_assigned_identities Mapping[str, UserAssignedIdentityResponse]

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

tenantId String

ID of the Azure Active Directory.

type String

Type of the managed identity.

userAssignedIdentities Map<Property Map>

The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.

ManagedServiceIdentityType

UserAssigned
UserAssigned
ManagedServiceIdentityTypeUserAssigned
UserAssigned
UserAssigned
UserAssigned
UserAssigned
UserAssigned
USER_ASSIGNED
UserAssigned
"UserAssigned"
UserAssigned

ScriptType

AzurePowerShell
AzurePowerShell
AzureCLI
AzureCLI
ScriptTypeAzurePowerShell
AzurePowerShell
ScriptTypeAzureCLI
AzureCLI
AzurePowerShell
AzurePowerShell
AzureCLI
AzureCLI
AzurePowerShell
AzurePowerShell
AzureCLI
AzureCLI
AZURE_POWER_SHELL
AzurePowerShell
AZURE_CLI
AzureCLI
"AzurePowerShell"
AzurePowerShell
"AzureCLI"
AzureCLI

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

UserAssignedIdentityResponse

ClientId string

Client App Id associated with this identity.

PrincipalId string

Azure Active Directory principal ID associated with this identity.

ClientId string

Client App Id associated with this identity.

PrincipalId string

Azure Active Directory principal ID associated with this identity.

clientId String

Client App Id associated with this identity.

principalId String

Azure Active Directory principal ID associated with this identity.

clientId string

Client App Id associated with this identity.

principalId string

Azure Active Directory principal ID associated with this identity.

client_id str

Client App Id associated with this identity.

principal_id str

Azure Active Directory principal ID associated with this identity.

clientId String

Client App Id associated with this identity.

principalId String

Azure Active Directory principal ID associated with this identity.

Import

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

$ pulumi import azure-native:resources:DeploymentScript myresource1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName} 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0