1. Packages
  2. Azure Classic
  3. API Docs
  4. core
  5. ResourceDeploymentScriptAzureCli

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.core.ResourceDeploymentScriptAzureCli

Explore with Pulumi AI

Manages a Resource Deployment Script of Azure Cli.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("example", {
    name: "example-uai",
    location: example.location,
    resourceGroupName: example.name,
});
const exampleResourceDeploymentScriptAzureCli = new azure.core.ResourceDeploymentScriptAzureCli("example", {
    name: "example-rdsac",
    resourceGroupName: example.name,
    location: "West Europe",
    version: "2.40.0",
    retentionInterval: "P1D",
    commandLine: "'foo' 'bar'",
    cleanupPreference: "OnSuccess",
    forceUpdateTag: "1",
    timeout: "PT30M",
    scriptContent: "            echo \"{\\\"name\\\":{\\\"displayName\\\":\\\"$1 $2\\\"}}\" > $AZ_SCRIPTS_OUTPUT_PATH\n",
    identity: {
        type: "UserAssigned",
        identityIds: [exampleUserAssignedIdentity.id],
    },
    tags: {
        key: "value",
    },
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_user_assigned_identity = azure.authorization.UserAssignedIdentity("example",
    name="example-uai",
    location=example.location,
    resource_group_name=example.name)
example_resource_deployment_script_azure_cli = azure.core.ResourceDeploymentScriptAzureCli("example",
    name="example-rdsac",
    resource_group_name=example.name,
    location="West Europe",
    version="2.40.0",
    retention_interval="P1D",
    command_line="'foo' 'bar'",
    cleanup_preference="OnSuccess",
    force_update_tag="1",
    timeout="PT30M",
    script_content="            echo \"{\\\"name\\\":{\\\"displayName\\\":\\\"$1 $2\\\"}}\" > $AZ_SCRIPTS_OUTPUT_PATH\n",
    identity={
        "type": "UserAssigned",
        "identity_ids": [example_user_assigned_identity.id],
    },
    tags={
        "key": "value",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
			Name:              pulumi.String("example-uai"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		_, err = core.NewResourceDeploymentScriptAzureCli(ctx, "example", &core.ResourceDeploymentScriptAzureCliArgs{
			Name:              pulumi.String("example-rdsac"),
			ResourceGroupName: example.Name,
			Location:          pulumi.String("West Europe"),
			Version:           pulumi.String("2.40.0"),
			RetentionInterval: pulumi.String("P1D"),
			CommandLine:       pulumi.String("'foo' 'bar'"),
			CleanupPreference: pulumi.String("OnSuccess"),
			ForceUpdateTag:    pulumi.String("1"),
			Timeout:           pulumi.String("PT30M"),
			ScriptContent:     pulumi.String("            echo \"{\\\"name\\\":{\\\"displayName\\\":\\\"$1 $2\\\"}}\" > $AZ_SCRIPTS_OUTPUT_PATH\n"),
			Identity: &core.ResourceDeploymentScriptAzureCliIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				IdentityIds: pulumi.StringArray{
					exampleUserAssignedIdentity.ID(),
				},
			},
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity("example", new()
    {
        Name = "example-uai",
        Location = example.Location,
        ResourceGroupName = example.Name,
    });

    var exampleResourceDeploymentScriptAzureCli = new Azure.Core.ResourceDeploymentScriptAzureCli("example", new()
    {
        Name = "example-rdsac",
        ResourceGroupName = example.Name,
        Location = "West Europe",
        Version = "2.40.0",
        RetentionInterval = "P1D",
        CommandLine = "'foo' 'bar'",
        CleanupPreference = "OnSuccess",
        ForceUpdateTag = "1",
        Timeout = "PT30M",
        ScriptContent = @"            echo ""{\""name\"":{\""displayName\"":\""$1 $2\""}}"" > $AZ_SCRIPTS_OUTPUT_PATH
",
        Identity = new Azure.Core.Inputs.ResourceDeploymentScriptAzureCliIdentityArgs
        {
            Type = "UserAssigned",
            IdentityIds = new[]
            {
                exampleUserAssignedIdentity.Id,
            },
        },
        Tags = 
        {
            { "key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.authorization.UserAssignedIdentity;
import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
import com.pulumi.azure.core.ResourceDeploymentScriptAzureCli;
import com.pulumi.azure.core.ResourceDeploymentScriptAzureCliArgs;
import com.pulumi.azure.core.inputs.ResourceDeploymentScriptAzureCliIdentityArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
            .name("example-uai")
            .location(example.location())
            .resourceGroupName(example.name())
            .build());

        var exampleResourceDeploymentScriptAzureCli = new ResourceDeploymentScriptAzureCli("exampleResourceDeploymentScriptAzureCli", ResourceDeploymentScriptAzureCliArgs.builder()
            .name("example-rdsac")
            .resourceGroupName(example.name())
            .location("West Europe")
            .version("2.40.0")
            .retentionInterval("P1D")
            .commandLine("'foo' 'bar'")
            .cleanupPreference("OnSuccess")
            .forceUpdateTag("1")
            .timeout("PT30M")
            .scriptContent("""
            echo "{\"name\":{\"displayName\":\"$1 $2\"}}" > $AZ_SCRIPTS_OUTPUT_PATH
            """)
            .identity(ResourceDeploymentScriptAzureCliIdentityArgs.builder()
                .type("UserAssigned")
                .identityIds(exampleUserAssignedIdentity.id())
                .build())
            .tags(Map.of("key", "value"))
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleUserAssignedIdentity:
    type: azure:authorization:UserAssignedIdentity
    name: example
    properties:
      name: example-uai
      location: ${example.location}
      resourceGroupName: ${example.name}
  exampleResourceDeploymentScriptAzureCli:
    type: azure:core:ResourceDeploymentScriptAzureCli
    name: example
    properties:
      name: example-rdsac
      resourceGroupName: ${example.name}
      location: West Europe
      version: 2.40.0
      retentionInterval: P1D
      commandLine: '''foo'' ''bar'''
      cleanupPreference: OnSuccess
      forceUpdateTag: '1'
      timeout: PT30M
      scriptContent: |2
                    echo "{\"name\":{\"displayName\":\"$1 $2\"}}" > $AZ_SCRIPTS_OUTPUT_PATH
      identity:
        type: UserAssigned
        identityIds:
          - ${exampleUserAssignedIdentity.id}
      tags:
        key: value
Copy

Create ResourceDeploymentScriptAzureCli Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ResourceDeploymentScriptAzureCli(name: string, args: ResourceDeploymentScriptAzureCliArgs, opts?: CustomResourceOptions);
@overload
def ResourceDeploymentScriptAzureCli(resource_name: str,
                                     args: ResourceDeploymentScriptAzureCliArgs,
                                     opts: Optional[ResourceOptions] = None)

@overload
def ResourceDeploymentScriptAzureCli(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     resource_group_name: Optional[str] = None,
                                     version: Optional[str] = None,
                                     retention_interval: Optional[str] = None,
                                     primary_script_uri: Optional[str] = None,
                                     container: Optional[ResourceDeploymentScriptAzureCliContainerArgs] = None,
                                     identity: Optional[ResourceDeploymentScriptAzureCliIdentityArgs] = None,
                                     location: Optional[str] = None,
                                     name: Optional[str] = None,
                                     cleanup_preference: Optional[str] = None,
                                     environment_variables: Optional[Sequence[ResourceDeploymentScriptAzureCliEnvironmentVariableArgs]] = None,
                                     force_update_tag: Optional[str] = None,
                                     script_content: Optional[str] = None,
                                     storage_account: Optional[ResourceDeploymentScriptAzureCliStorageAccountArgs] = None,
                                     supporting_script_uris: Optional[Sequence[str]] = None,
                                     tags: Optional[Mapping[str, str]] = None,
                                     timeout: Optional[str] = None,
                                     command_line: Optional[str] = None)
func NewResourceDeploymentScriptAzureCli(ctx *Context, name string, args ResourceDeploymentScriptAzureCliArgs, opts ...ResourceOption) (*ResourceDeploymentScriptAzureCli, error)
public ResourceDeploymentScriptAzureCli(string name, ResourceDeploymentScriptAzureCliArgs args, CustomResourceOptions? opts = null)
public ResourceDeploymentScriptAzureCli(String name, ResourceDeploymentScriptAzureCliArgs args)
public ResourceDeploymentScriptAzureCli(String name, ResourceDeploymentScriptAzureCliArgs args, CustomResourceOptions options)
type: azure:core:ResourceDeploymentScriptAzureCli
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ResourceDeploymentScriptAzureCliArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ResourceDeploymentScriptAzureCliArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ResourceDeploymentScriptAzureCliArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ResourceDeploymentScriptAzureCliArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ResourceDeploymentScriptAzureCliArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var resourceDeploymentScriptAzureCliResource = new Azure.Core.ResourceDeploymentScriptAzureCli("resourceDeploymentScriptAzureCliResource", new()
{
    ResourceGroupName = "string",
    Version = "string",
    RetentionInterval = "string",
    PrimaryScriptUri = "string",
    Container = new Azure.Core.Inputs.ResourceDeploymentScriptAzureCliContainerArgs
    {
        ContainerGroupName = "string",
    },
    Identity = new Azure.Core.Inputs.ResourceDeploymentScriptAzureCliIdentityArgs
    {
        IdentityIds = new[]
        {
            "string",
        },
        Type = "string",
    },
    Location = "string",
    Name = "string",
    CleanupPreference = "string",
    EnvironmentVariables = new[]
    {
        new Azure.Core.Inputs.ResourceDeploymentScriptAzureCliEnvironmentVariableArgs
        {
            Name = "string",
            SecureValue = "string",
            Value = "string",
        },
    },
    ForceUpdateTag = "string",
    ScriptContent = "string",
    StorageAccount = new Azure.Core.Inputs.ResourceDeploymentScriptAzureCliStorageAccountArgs
    {
        Key = "string",
        Name = "string",
    },
    SupportingScriptUris = new[]
    {
        "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
    Timeout = "string",
    CommandLine = "string",
});
Copy
example, err := core.NewResourceDeploymentScriptAzureCli(ctx, "resourceDeploymentScriptAzureCliResource", &core.ResourceDeploymentScriptAzureCliArgs{
	ResourceGroupName: pulumi.String("string"),
	Version:           pulumi.String("string"),
	RetentionInterval: pulumi.String("string"),
	PrimaryScriptUri:  pulumi.String("string"),
	Container: &core.ResourceDeploymentScriptAzureCliContainerArgs{
		ContainerGroupName: pulumi.String("string"),
	},
	Identity: &core.ResourceDeploymentScriptAzureCliIdentityArgs{
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		Type: pulumi.String("string"),
	},
	Location:          pulumi.String("string"),
	Name:              pulumi.String("string"),
	CleanupPreference: pulumi.String("string"),
	EnvironmentVariables: core.ResourceDeploymentScriptAzureCliEnvironmentVariableArray{
		&core.ResourceDeploymentScriptAzureCliEnvironmentVariableArgs{
			Name:        pulumi.String("string"),
			SecureValue: pulumi.String("string"),
			Value:       pulumi.String("string"),
		},
	},
	ForceUpdateTag: pulumi.String("string"),
	ScriptContent:  pulumi.String("string"),
	StorageAccount: &core.ResourceDeploymentScriptAzureCliStorageAccountArgs{
		Key:  pulumi.String("string"),
		Name: pulumi.String("string"),
	},
	SupportingScriptUris: pulumi.StringArray{
		pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeout:     pulumi.String("string"),
	CommandLine: pulumi.String("string"),
})
Copy
var resourceDeploymentScriptAzureCliResource = new ResourceDeploymentScriptAzureCli("resourceDeploymentScriptAzureCliResource", ResourceDeploymentScriptAzureCliArgs.builder()
    .resourceGroupName("string")
    .version("string")
    .retentionInterval("string")
    .primaryScriptUri("string")
    .container(ResourceDeploymentScriptAzureCliContainerArgs.builder()
        .containerGroupName("string")
        .build())
    .identity(ResourceDeploymentScriptAzureCliIdentityArgs.builder()
        .identityIds("string")
        .type("string")
        .build())
    .location("string")
    .name("string")
    .cleanupPreference("string")
    .environmentVariables(ResourceDeploymentScriptAzureCliEnvironmentVariableArgs.builder()
        .name("string")
        .secureValue("string")
        .value("string")
        .build())
    .forceUpdateTag("string")
    .scriptContent("string")
    .storageAccount(ResourceDeploymentScriptAzureCliStorageAccountArgs.builder()
        .key("string")
        .name("string")
        .build())
    .supportingScriptUris("string")
    .tags(Map.of("string", "string"))
    .timeout("string")
    .commandLine("string")
    .build());
Copy
resource_deployment_script_azure_cli_resource = azure.core.ResourceDeploymentScriptAzureCli("resourceDeploymentScriptAzureCliResource",
    resource_group_name="string",
    version="string",
    retention_interval="string",
    primary_script_uri="string",
    container={
        "container_group_name": "string",
    },
    identity={
        "identity_ids": ["string"],
        "type": "string",
    },
    location="string",
    name="string",
    cleanup_preference="string",
    environment_variables=[{
        "name": "string",
        "secure_value": "string",
        "value": "string",
    }],
    force_update_tag="string",
    script_content="string",
    storage_account={
        "key": "string",
        "name": "string",
    },
    supporting_script_uris=["string"],
    tags={
        "string": "string",
    },
    timeout="string",
    command_line="string")
Copy
const resourceDeploymentScriptAzureCliResource = new azure.core.ResourceDeploymentScriptAzureCli("resourceDeploymentScriptAzureCliResource", {
    resourceGroupName: "string",
    version: "string",
    retentionInterval: "string",
    primaryScriptUri: "string",
    container: {
        containerGroupName: "string",
    },
    identity: {
        identityIds: ["string"],
        type: "string",
    },
    location: "string",
    name: "string",
    cleanupPreference: "string",
    environmentVariables: [{
        name: "string",
        secureValue: "string",
        value: "string",
    }],
    forceUpdateTag: "string",
    scriptContent: "string",
    storageAccount: {
        key: "string",
        name: "string",
    },
    supportingScriptUris: ["string"],
    tags: {
        string: "string",
    },
    timeout: "string",
    commandLine: "string",
});
Copy
type: azure:core:ResourceDeploymentScriptAzureCli
properties:
    cleanupPreference: string
    commandLine: string
    container:
        containerGroupName: string
    environmentVariables:
        - name: string
          secureValue: string
          value: string
    forceUpdateTag: string
    identity:
        identityIds:
            - string
        type: string
    location: string
    name: string
    primaryScriptUri: string
    resourceGroupName: string
    retentionInterval: string
    scriptContent: string
    storageAccount:
        key: string
        name: string
    supportingScriptUris:
        - string
    tags:
        string: string
    timeout: string
    version: string
Copy

ResourceDeploymentScriptAzureCli Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ResourceDeploymentScriptAzureCli resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
RetentionInterval
This property is required.
Changes to this property will trigger replacement.
string
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
Version
This property is required.
Changes to this property will trigger replacement.
string
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
CleanupPreference Changes to this property will trigger replacement. string
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
CommandLine Changes to this property will trigger replacement. string
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
Container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainer
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
EnvironmentVariables Changes to this property will trigger replacement. List<ResourceDeploymentScriptAzureCliEnvironmentVariable>
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
ForceUpdateTag Changes to this property will trigger replacement. string
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
Identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentity
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
Location Changes to this property will trigger replacement. string
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
Name Changes to this property will trigger replacement. string
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
PrimaryScriptUri Changes to this property will trigger replacement. string
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
ScriptContent Changes to this property will trigger replacement. string
Script body. Changing this forces a new Resource Deployment Script to be created.
StorageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccount
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
SupportingScriptUris Changes to this property will trigger replacement. List<string>
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Resource Deployment Script.
Timeout Changes to this property will trigger replacement. string
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
RetentionInterval
This property is required.
Changes to this property will trigger replacement.
string
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
Version
This property is required.
Changes to this property will trigger replacement.
string
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
CleanupPreference Changes to this property will trigger replacement. string
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
CommandLine Changes to this property will trigger replacement. string
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
Container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainerArgs
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
EnvironmentVariables Changes to this property will trigger replacement. []ResourceDeploymentScriptAzureCliEnvironmentVariableArgs
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
ForceUpdateTag Changes to this property will trigger replacement. string
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
Identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentityArgs
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
Location Changes to this property will trigger replacement. string
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
Name Changes to this property will trigger replacement. string
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
PrimaryScriptUri Changes to this property will trigger replacement. string
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
ScriptContent Changes to this property will trigger replacement. string
Script body. Changing this forces a new Resource Deployment Script to be created.
StorageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccountArgs
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
SupportingScriptUris Changes to this property will trigger replacement. []string
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
Tags map[string]string
A mapping of tags which should be assigned to the Resource Deployment Script.
Timeout Changes to this property will trigger replacement. string
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retentionInterval
This property is required.
Changes to this property will trigger replacement.
String
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
version
This property is required.
Changes to this property will trigger replacement.
String
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanupPreference Changes to this property will trigger replacement. String
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
commandLine Changes to this property will trigger replacement. String
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainer
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environmentVariables Changes to this property will trigger replacement. List<ResourceDeploymentScriptAzureCliEnvironmentVariable>
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
forceUpdateTag Changes to this property will trigger replacement. String
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentity
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. String
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. String
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
primaryScriptUri Changes to this property will trigger replacement. String
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
scriptContent Changes to this property will trigger replacement. String
Script body. Changing this forces a new Resource Deployment Script to be created.
storageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccount
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supportingScriptUris Changes to this property will trigger replacement. List<String>
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. String
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retentionInterval
This property is required.
Changes to this property will trigger replacement.
string
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
version
This property is required.
Changes to this property will trigger replacement.
string
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanupPreference Changes to this property will trigger replacement. string
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
commandLine Changes to this property will trigger replacement. string
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainer
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environmentVariables Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliEnvironmentVariable[]
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
forceUpdateTag Changes to this property will trigger replacement. string
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentity
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. string
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. string
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
primaryScriptUri Changes to this property will trigger replacement. string
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
scriptContent Changes to this property will trigger replacement. string
Script body. Changing this forces a new Resource Deployment Script to be created.
storageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccount
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supportingScriptUris Changes to this property will trigger replacement. string[]
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. string
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retention_interval
This property is required.
Changes to this property will trigger replacement.
str
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
version
This property is required.
Changes to this property will trigger replacement.
str
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanup_preference Changes to this property will trigger replacement. str
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
command_line Changes to this property will trigger replacement. str
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainerArgs
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environment_variables Changes to this property will trigger replacement. Sequence[ResourceDeploymentScriptAzureCliEnvironmentVariableArgs]
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
force_update_tag Changes to this property will trigger replacement. str
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentityArgs
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. str
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. str
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
primary_script_uri Changes to this property will trigger replacement. str
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
script_content Changes to this property will trigger replacement. str
Script body. Changing this forces a new Resource Deployment Script to be created.
storage_account Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccountArgs
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supporting_script_uris Changes to this property will trigger replacement. Sequence[str]
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. str
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retentionInterval
This property is required.
Changes to this property will trigger replacement.
String
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
version
This property is required.
Changes to this property will trigger replacement.
String
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanupPreference Changes to this property will trigger replacement. String
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
commandLine Changes to this property will trigger replacement. String
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. Property Map
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environmentVariables Changes to this property will trigger replacement. List<Property Map>
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
forceUpdateTag Changes to this property will trigger replacement. String
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. Property Map
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. String
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. String
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
primaryScriptUri Changes to this property will trigger replacement. String
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
scriptContent Changes to this property will trigger replacement. String
Script body. Changing this forces a new Resource Deployment Script to be created.
storageAccount Changes to this property will trigger replacement. Property Map
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supportingScriptUris Changes to this property will trigger replacement. List<String>
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags Map<String>
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. String
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Outputs string
List of script outputs.
Id string
The provider-assigned unique ID for this managed resource.
Outputs string
List of script outputs.
id String
The provider-assigned unique ID for this managed resource.
outputs String
List of script outputs.
id string
The provider-assigned unique ID for this managed resource.
outputs string
List of script outputs.
id str
The provider-assigned unique ID for this managed resource.
outputs str
List of script outputs.
id String
The provider-assigned unique ID for this managed resource.
outputs String
List of script outputs.

Look up Existing ResourceDeploymentScriptAzureCli Resource

Get an existing ResourceDeploymentScriptAzureCli resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ResourceDeploymentScriptAzureCliState, opts?: CustomResourceOptions): ResourceDeploymentScriptAzureCli
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cleanup_preference: Optional[str] = None,
        command_line: Optional[str] = None,
        container: Optional[ResourceDeploymentScriptAzureCliContainerArgs] = None,
        environment_variables: Optional[Sequence[ResourceDeploymentScriptAzureCliEnvironmentVariableArgs]] = None,
        force_update_tag: Optional[str] = None,
        identity: Optional[ResourceDeploymentScriptAzureCliIdentityArgs] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        outputs: Optional[str] = None,
        primary_script_uri: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        retention_interval: Optional[str] = None,
        script_content: Optional[str] = None,
        storage_account: Optional[ResourceDeploymentScriptAzureCliStorageAccountArgs] = None,
        supporting_script_uris: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        timeout: Optional[str] = None,
        version: Optional[str] = None) -> ResourceDeploymentScriptAzureCli
func GetResourceDeploymentScriptAzureCli(ctx *Context, name string, id IDInput, state *ResourceDeploymentScriptAzureCliState, opts ...ResourceOption) (*ResourceDeploymentScriptAzureCli, error)
public static ResourceDeploymentScriptAzureCli Get(string name, Input<string> id, ResourceDeploymentScriptAzureCliState? state, CustomResourceOptions? opts = null)
public static ResourceDeploymentScriptAzureCli get(String name, Output<String> id, ResourceDeploymentScriptAzureCliState state, CustomResourceOptions options)
resources:  _:    type: azure:core:ResourceDeploymentScriptAzureCli    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CleanupPreference Changes to this property will trigger replacement. string
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
CommandLine Changes to this property will trigger replacement. string
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
Container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainer
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
EnvironmentVariables Changes to this property will trigger replacement. List<ResourceDeploymentScriptAzureCliEnvironmentVariable>
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
ForceUpdateTag Changes to this property will trigger replacement. string
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
Identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentity
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
Location Changes to this property will trigger replacement. string
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
Name Changes to this property will trigger replacement. string
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
Outputs string
List of script outputs.
PrimaryScriptUri Changes to this property will trigger replacement. string
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
ResourceGroupName Changes to this property will trigger replacement. string
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
RetentionInterval Changes to this property will trigger replacement. string
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
ScriptContent Changes to this property will trigger replacement. string
Script body. Changing this forces a new Resource Deployment Script to be created.
StorageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccount
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
SupportingScriptUris Changes to this property will trigger replacement. List<string>
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Resource Deployment Script.
Timeout Changes to this property will trigger replacement. string
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
Version Changes to this property will trigger replacement. string
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
CleanupPreference Changes to this property will trigger replacement. string
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
CommandLine Changes to this property will trigger replacement. string
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
Container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainerArgs
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
EnvironmentVariables Changes to this property will trigger replacement. []ResourceDeploymentScriptAzureCliEnvironmentVariableArgs
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
ForceUpdateTag Changes to this property will trigger replacement. string
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
Identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentityArgs
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
Location Changes to this property will trigger replacement. string
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
Name Changes to this property will trigger replacement. string
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
Outputs string
List of script outputs.
PrimaryScriptUri Changes to this property will trigger replacement. string
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
ResourceGroupName Changes to this property will trigger replacement. string
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
RetentionInterval Changes to this property will trigger replacement. string
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
ScriptContent Changes to this property will trigger replacement. string
Script body. Changing this forces a new Resource Deployment Script to be created.
StorageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccountArgs
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
SupportingScriptUris Changes to this property will trigger replacement. []string
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
Tags map[string]string
A mapping of tags which should be assigned to the Resource Deployment Script.
Timeout Changes to this property will trigger replacement. string
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
Version Changes to this property will trigger replacement. string
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanupPreference Changes to this property will trigger replacement. String
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
commandLine Changes to this property will trigger replacement. String
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainer
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environmentVariables Changes to this property will trigger replacement. List<ResourceDeploymentScriptAzureCliEnvironmentVariable>
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
forceUpdateTag Changes to this property will trigger replacement. String
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentity
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. String
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. String
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
outputs String
List of script outputs.
primaryScriptUri Changes to this property will trigger replacement. String
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
resourceGroupName Changes to this property will trigger replacement. String
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retentionInterval Changes to this property will trigger replacement. String
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
scriptContent Changes to this property will trigger replacement. String
Script body. Changing this forces a new Resource Deployment Script to be created.
storageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccount
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supportingScriptUris Changes to this property will trigger replacement. List<String>
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. String
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
version Changes to this property will trigger replacement. String
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanupPreference Changes to this property will trigger replacement. string
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
commandLine Changes to this property will trigger replacement. string
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainer
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environmentVariables Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliEnvironmentVariable[]
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
forceUpdateTag Changes to this property will trigger replacement. string
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentity
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. string
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. string
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
outputs string
List of script outputs.
primaryScriptUri Changes to this property will trigger replacement. string
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
resourceGroupName Changes to this property will trigger replacement. string
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retentionInterval Changes to this property will trigger replacement. string
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
scriptContent Changes to this property will trigger replacement. string
Script body. Changing this forces a new Resource Deployment Script to be created.
storageAccount Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccount
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supportingScriptUris Changes to this property will trigger replacement. string[]
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. string
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
version Changes to this property will trigger replacement. string
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanup_preference Changes to this property will trigger replacement. str
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
command_line Changes to this property will trigger replacement. str
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliContainerArgs
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environment_variables Changes to this property will trigger replacement. Sequence[ResourceDeploymentScriptAzureCliEnvironmentVariableArgs]
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
force_update_tag Changes to this property will trigger replacement. str
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliIdentityArgs
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. str
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. str
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
outputs str
List of script outputs.
primary_script_uri Changes to this property will trigger replacement. str
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
resource_group_name Changes to this property will trigger replacement. str
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retention_interval Changes to this property will trigger replacement. str
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
script_content Changes to this property will trigger replacement. str
Script body. Changing this forces a new Resource Deployment Script to be created.
storage_account Changes to this property will trigger replacement. ResourceDeploymentScriptAzureCliStorageAccountArgs
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supporting_script_uris Changes to this property will trigger replacement. Sequence[str]
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. str
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
version Changes to this property will trigger replacement. str
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.
cleanupPreference Changes to this property will trigger replacement. String
Specifies the cleanup preference when the script execution gets in a terminal state. Possible values are Always, OnExpiration, OnSuccess. Defaults to Always. Changing this forces a new Resource Deployment Script to be created.
commandLine Changes to this property will trigger replacement. String
Command line arguments to pass to the script. Changing this forces a new Resource Deployment Script to be created.
container Changes to this property will trigger replacement. Property Map
A container block as defined below. Changing this forces a new Resource Deployment Script to be created.
environmentVariables Changes to this property will trigger replacement. List<Property Map>
An environment_variable block as defined below. Changing this forces a new Resource Deployment Script to be created.
forceUpdateTag Changes to this property will trigger replacement. String
Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. Changing this forces a new Resource Deployment Script to be created.
identity Changes to this property will trigger replacement. Property Map
An identity block as defined below. Changing this forces a new Resource Deployment Script to be created.
location Changes to this property will trigger replacement. String
Specifies the Azure Region where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
name Changes to this property will trigger replacement. String
Specifies the name which should be used for this Resource Deployment Script. The name length must be from 1 to 260 characters. The name can only contain alphanumeric, underscore, parentheses, hyphen and period, and it cannot end with a period. Changing this forces a new Resource Deployment Script to be created.
outputs String
List of script outputs.
primaryScriptUri Changes to this property will trigger replacement. String
Uri for the script. This is the entry point for the external script. Changing this forces a new Resource Deployment Script to be created.
resourceGroupName Changes to this property will trigger replacement. String
Specifies the name of the Resource Group where the Resource Deployment Script should exist. Changing this forces a new Resource Deployment Script to be created.
retentionInterval Changes to this property will trigger replacement. String
Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. The time duration should be between 1 hour and 26 hours (inclusive) and should be specified in ISO 8601 format. Changing this forces a new Resource Deployment Script to be created.
scriptContent Changes to this property will trigger replacement. String
Script body. Changing this forces a new Resource Deployment Script to be created.
storageAccount Changes to this property will trigger replacement. Property Map
A storage_account block as defined below. Changing this forces a new Resource Deployment Script to be created.
supportingScriptUris Changes to this property will trigger replacement. List<String>
Supporting files for the external script. Changing this forces a new Resource Deployment Script to be created.
tags Map<String>
A mapping of tags which should be assigned to the Resource Deployment Script.
timeout Changes to this property will trigger replacement. String
Maximum allowed script execution time specified in ISO 8601 format. Needs to be greater than 0 and smaller than 1 day. Defaults to P1D. Changing this forces a new Resource Deployment Script to be created.
version Changes to this property will trigger replacement. String
Specifies the version of the Azure CLI that should be used in the format X.Y.Z (e.g. 2.30.0). A canonical list of versions is available from the Microsoft Container Registry API. Changing this forces a new Resource Deployment Script to be created.

Supporting Types

ResourceDeploymentScriptAzureCliContainer
, ResourceDeploymentScriptAzureCliContainerArgs

ContainerGroupName string
Container group name, if not specified then the name will get auto-generated. For more information, please refer to the Container Configuration documentation.
ContainerGroupName string
Container group name, if not specified then the name will get auto-generated. For more information, please refer to the Container Configuration documentation.
containerGroupName String
Container group name, if not specified then the name will get auto-generated. For more information, please refer to the Container Configuration documentation.
containerGroupName string
Container group name, if not specified then the name will get auto-generated. For more information, please refer to the Container Configuration documentation.
container_group_name str
Container group name, if not specified then the name will get auto-generated. For more information, please refer to the Container Configuration documentation.
containerGroupName String
Container group name, if not specified then the name will get auto-generated. For more information, please refer to the Container Configuration documentation.

ResourceDeploymentScriptAzureCliEnvironmentVariable
, ResourceDeploymentScriptAzureCliEnvironmentVariableArgs

Name This property is required. string
Specifies the name of the environment variable.
SecureValue string
Specifies the value of the secure environment variable.
Value string
Specifies the value of the environment variable.
Name This property is required. string
Specifies the name of the environment variable.
SecureValue string
Specifies the value of the secure environment variable.
Value string
Specifies the value of the environment variable.
name This property is required. String
Specifies the name of the environment variable.
secureValue String
Specifies the value of the secure environment variable.
value String
Specifies the value of the environment variable.
name This property is required. string
Specifies the name of the environment variable.
secureValue string
Specifies the value of the secure environment variable.
value string
Specifies the value of the environment variable.
name This property is required. str
Specifies the name of the environment variable.
secure_value str
Specifies the value of the secure environment variable.
value str
Specifies the value of the environment variable.
name This property is required. String
Specifies the name of the environment variable.
secureValue String
Specifies the value of the secure environment variable.
value String
Specifies the value of the environment variable.

ResourceDeploymentScriptAzureCliIdentity
, ResourceDeploymentScriptAzureCliIdentityArgs

IdentityIds
This property is required.
Changes to this property will trigger replacement.
List<string>
Specifies the list of user-assigned managed identity IDs associated with the resource. Changing this forces a new resource to be created.
Type
This property is required.
Changes to this property will trigger replacement.
string
Type of the managed identity. The only possible value is UserAssigned. Changing this forces a new resource to be created.
IdentityIds
This property is required.
Changes to this property will trigger replacement.
[]string
Specifies the list of user-assigned managed identity IDs associated with the resource. Changing this forces a new resource to be created.
Type
This property is required.
Changes to this property will trigger replacement.
string
Type of the managed identity. The only possible value is UserAssigned. Changing this forces a new resource to be created.
identityIds
This property is required.
Changes to this property will trigger replacement.
List<String>
Specifies the list of user-assigned managed identity IDs associated with the resource. Changing this forces a new resource to be created.
type
This property is required.
Changes to this property will trigger replacement.
String
Type of the managed identity. The only possible value is UserAssigned. Changing this forces a new resource to be created.
identityIds
This property is required.
Changes to this property will trigger replacement.
string[]
Specifies the list of user-assigned managed identity IDs associated with the resource. Changing this forces a new resource to be created.
type
This property is required.
Changes to this property will trigger replacement.
string
Type of the managed identity. The only possible value is UserAssigned. Changing this forces a new resource to be created.
identity_ids
This property is required.
Changes to this property will trigger replacement.
Sequence[str]
Specifies the list of user-assigned managed identity IDs associated with the resource. Changing this forces a new resource to be created.
type
This property is required.
Changes to this property will trigger replacement.
str
Type of the managed identity. The only possible value is UserAssigned. Changing this forces a new resource to be created.
identityIds
This property is required.
Changes to this property will trigger replacement.
List<String>
Specifies the list of user-assigned managed identity IDs associated with the resource. Changing this forces a new resource to be created.
type
This property is required.
Changes to this property will trigger replacement.
String
Type of the managed identity. The only possible value is UserAssigned. Changing this forces a new resource to be created.

ResourceDeploymentScriptAzureCliStorageAccount
, ResourceDeploymentScriptAzureCliStorageAccountArgs

Key This property is required. string
Specifies the storage account access key.
Name This property is required. string
Specifies the storage account name.
Key This property is required. string
Specifies the storage account access key.
Name This property is required. string
Specifies the storage account name.
key This property is required. String
Specifies the storage account access key.
name This property is required. String
Specifies the storage account name.
key This property is required. string
Specifies the storage account access key.
name This property is required. string
Specifies the storage account name.
key This property is required. str
Specifies the storage account access key.
name This property is required. str
Specifies the storage account name.
key This property is required. String
Specifies the storage account access key.
name This property is required. String
Specifies the storage account name.

Import

Resource Deployment Script can be imported using the resource id, e.g.

$ pulumi import azure:core/resourceDeploymentScriptAzureCli:ResourceDeploymentScriptAzureCli example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Resources/deploymentScripts/script1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.