azure-native.automation.DscConfiguration

Explore with Pulumi AI

Definition of the configuration type. API Version: 2019-06-01.

Example Usage

Create or Update Configuration

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

return await Deployment.RunAsync(() => 
{
    var dscConfiguration = new AzureNative.Automation.DscConfiguration("dscConfiguration", new()
    {
        AutomationAccountName = "myAutomationAccount18",
        ConfigurationName = "SetupServer",
        Description = "sample configuration",
        Location = "East US 2",
        Name = "SetupServer",
        ResourceGroupName = "rg",
        Source = new AzureNative.Automation.Inputs.ContentSourceArgs
        {
            Hash = new AzureNative.Automation.Inputs.ContentHashArgs
            {
                Algorithm = "sha256",
                Value = "A9E5DB56BA21513F61E0B3868816FDC6D4DF5131F5617D7FF0D769674BD5072F",
            },
            Type = "embeddedContent",
            Value = @"Configuration SetupServer {
    Node localhost {
                               WindowsFeature IIS {
                               Name = ""Web-Server"";
            Ensure = ""Present""
        }
    }
}",
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := automation.NewDscConfiguration(ctx, "dscConfiguration", &automation.DscConfigurationArgs{
			AutomationAccountName: pulumi.String("myAutomationAccount18"),
			ConfigurationName:     pulumi.String("SetupServer"),
			Description:           pulumi.String("sample configuration"),
			Location:              pulumi.String("East US 2"),
			Name:                  pulumi.String("SetupServer"),
			ResourceGroupName:     pulumi.String("rg"),
			Source: automation.ContentSourceResponse{
				Hash: &automation.ContentHashArgs{
					Algorithm: pulumi.String("sha256"),
					Value:     pulumi.String("A9E5DB56BA21513F61E0B3868816FDC6D4DF5131F5617D7FF0D769674BD5072F"),
				},
				Type:  pulumi.String("embeddedContent"),
				Value: pulumi.String("Configuration SetupServer {
\n    Node localhost {
\n                               WindowsFeature IIS {
\n                               Name = \"Web-Server\";
\n            Ensure = \"Present\"
\n        }
\n    }
\n}"),
			},
		})
		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.automation.DscConfiguration;
import com.pulumi.azurenative.automation.DscConfigurationArgs;
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 dscConfiguration = new DscConfiguration("dscConfiguration", DscConfigurationArgs.builder()        
            .automationAccountName("myAutomationAccount18")
            .configurationName("SetupServer")
            .description("sample configuration")
            .location("East US 2")
            .name("SetupServer")
            .resourceGroupName("rg")
            .source(Map.ofEntries(
                Map.entry("hash", Map.ofEntries(
                    Map.entry("algorithm", "sha256"),
                    Map.entry("value", "A9E5DB56BA21513F61E0B3868816FDC6D4DF5131F5617D7FF0D769674BD5072F")
                )),
                Map.entry("type", "embeddedContent"),
                Map.entry("value", """
Configuration SetupServer {
    Node localhost {
                               WindowsFeature IIS {
                               Name = "Web-Server";
            Ensure = "Present"
        }
    }
}                """)
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

dsc_configuration = azure_native.automation.DscConfiguration("dscConfiguration",
    automation_account_name="myAutomationAccount18",
    configuration_name="SetupServer",
    description="sample configuration",
    location="East US 2",
    name="SetupServer",
    resource_group_name="rg",
    source=azure_native.automation.ContentSourceResponseArgs(
        hash=azure_native.automation.ContentHashArgs(
            algorithm="sha256",
            value="A9E5DB56BA21513F61E0B3868816FDC6D4DF5131F5617D7FF0D769674BD5072F",
        ),
        type="embeddedContent",
        value="""Configuration SetupServer {
    Node localhost {
                               WindowsFeature IIS {
                               Name = "Web-Server";
            Ensure = "Present"
        }
    }
}""",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const dscConfiguration = new azure_native.automation.DscConfiguration("dscConfiguration", {
    automationAccountName: "myAutomationAccount18",
    configurationName: "SetupServer",
    description: "sample configuration",
    location: "East US 2",
    name: "SetupServer",
    resourceGroupName: "rg",
    source: {
        hash: {
            algorithm: "sha256",
            value: "A9E5DB56BA21513F61E0B3868816FDC6D4DF5131F5617D7FF0D769674BD5072F",
        },
        type: "embeddedContent",
        value: `Configuration SetupServer {
    Node localhost {
                               WindowsFeature IIS {
                               Name = "Web-Server";
            Ensure = "Present"
        }
    }
}`,
    },
});
resources:
  dscConfiguration:
    type: azure-native:automation:DscConfiguration
    properties:
      automationAccountName: myAutomationAccount18
      configurationName: SetupServer
      description: sample configuration
      location: East US 2
      name: SetupServer
      resourceGroupName: rg
      source:
        hash:
          algorithm: sha256
          value: A9E5DB56BA21513F61E0B3868816FDC6D4DF5131F5617D7FF0D769674BD5072F
        type: embeddedContent
        value: "Configuration SetupServer {\r\n    Node localhost {\r\n                               WindowsFeature IIS {\r\n                               Name = \"Web-Server\";\r\n            Ensure = \"Present\"\r\n        }\r\n    }\r\n}"

Create DscConfiguration Resource

new DscConfiguration(name: string, args: DscConfigurationArgs, opts?: CustomResourceOptions);
@overload
def DscConfiguration(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     automation_account_name: Optional[str] = None,
                     configuration_name: Optional[str] = None,
                     description: Optional[str] = None,
                     location: Optional[str] = None,
                     log_progress: Optional[bool] = None,
                     log_verbose: Optional[bool] = None,
                     name: Optional[str] = None,
                     parameters: Optional[Mapping[str, DscConfigurationParameterArgs]] = None,
                     resource_group_name: Optional[str] = None,
                     source: Optional[ContentSourceArgs] = None,
                     tags: Optional[Mapping[str, str]] = None)
@overload
def DscConfiguration(resource_name: str,
                     args: DscConfigurationArgs,
                     opts: Optional[ResourceOptions] = None)
func NewDscConfiguration(ctx *Context, name string, args DscConfigurationArgs, opts ...ResourceOption) (*DscConfiguration, error)
public DscConfiguration(string name, DscConfigurationArgs args, CustomResourceOptions? opts = null)
public DscConfiguration(String name, DscConfigurationArgs args)
public DscConfiguration(String name, DscConfigurationArgs args, CustomResourceOptions options)
type: azure-native:automation:DscConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

AutomationAccountName string

The name of the automation account.

ResourceGroupName string

Name of an Azure Resource group.

Source Pulumi.AzureNative.Automation.Inputs.ContentSourceArgs

Gets or sets the source.

ConfigurationName string

The create or update parameters for configuration.

Description string

Gets or sets the description of the configuration.

Location string

Gets or sets the location of the resource.

LogProgress bool

Gets or sets progress log option.

LogVerbose bool

Gets or sets verbose log option.

Name string

Gets or sets name of the resource.

Parameters Dictionary<string, Pulumi.AzureNative.Automation.Inputs.DscConfigurationParameterArgs>

Gets or sets the configuration parameters.

Tags Dictionary<string, string>

Gets or sets the tags attached to the resource.

AutomationAccountName string

The name of the automation account.

ResourceGroupName string

Name of an Azure Resource group.

Source ContentSourceArgs

Gets or sets the source.

ConfigurationName string

The create or update parameters for configuration.

Description string

Gets or sets the description of the configuration.

Location string

Gets or sets the location of the resource.

LogProgress bool

Gets or sets progress log option.

LogVerbose bool

Gets or sets verbose log option.

Name string

Gets or sets name of the resource.

Parameters map[string]DscConfigurationParameterArgs

Gets or sets the configuration parameters.

Tags map[string]string

Gets or sets the tags attached to the resource.

automationAccountName String

The name of the automation account.

resourceGroupName String

Name of an Azure Resource group.

source ContentSourceArgs

Gets or sets the source.

configurationName String

The create or update parameters for configuration.

description String

Gets or sets the description of the configuration.

location String

Gets or sets the location of the resource.

logProgress Boolean

Gets or sets progress log option.

logVerbose Boolean

Gets or sets verbose log option.

name String

Gets or sets name of the resource.

parameters Map<String,DscConfigurationParameterArgs>

Gets or sets the configuration parameters.

tags Map<String,String>

Gets or sets the tags attached to the resource.

automationAccountName string

The name of the automation account.

resourceGroupName string

Name of an Azure Resource group.

source ContentSourceArgs

Gets or sets the source.

configurationName string

The create or update parameters for configuration.

description string

Gets or sets the description of the configuration.

location string

Gets or sets the location of the resource.

logProgress boolean

Gets or sets progress log option.

logVerbose boolean

Gets or sets verbose log option.

name string

Gets or sets name of the resource.

parameters {[key: string]: DscConfigurationParameterArgs}

Gets or sets the configuration parameters.

tags {[key: string]: string}

Gets or sets the tags attached to the resource.

automation_account_name str

The name of the automation account.

resource_group_name str

Name of an Azure Resource group.

source ContentSourceArgs

Gets or sets the source.

configuration_name str

The create or update parameters for configuration.

description str

Gets or sets the description of the configuration.

location str

Gets or sets the location of the resource.

log_progress bool

Gets or sets progress log option.

log_verbose bool

Gets or sets verbose log option.

name str

Gets or sets name of the resource.

parameters Mapping[str, DscConfigurationParameterArgs]

Gets or sets the configuration parameters.

tags Mapping[str, str]

Gets or sets the tags attached to the resource.

automationAccountName String

The name of the automation account.

resourceGroupName String

Name of an Azure Resource group.

source Property Map

Gets or sets the source.

configurationName String

The create or update parameters for configuration.

description String

Gets or sets the description of the configuration.

location String

Gets or sets the location of the resource.

logProgress Boolean

Gets or sets progress log option.

logVerbose Boolean

Gets or sets verbose log option.

name String

Gets or sets name of the resource.

parameters Map<Property Map>

Gets or sets the configuration parameters.

tags Map<String>

Gets or sets the tags attached to the resource.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Type string

The type of the resource.

CreationTime string

Gets or sets the creation time.

Etag string

Gets or sets the etag of the resource.

JobCount int

Gets or sets the job count of the configuration.

LastModifiedTime string

Gets or sets the last modified time.

NodeConfigurationCount int

Gets the number of compiled node configurations.

ProvisioningState string

Gets or sets the provisioning state of the configuration.

State string

Gets or sets the state of the configuration.

Id string

The provider-assigned unique ID for this managed resource.

Type string

The type of the resource.

CreationTime string

Gets or sets the creation time.

Etag string

Gets or sets the etag of the resource.

JobCount int

Gets or sets the job count of the configuration.

LastModifiedTime string

Gets or sets the last modified time.

NodeConfigurationCount int

Gets the number of compiled node configurations.

ProvisioningState string

Gets or sets the provisioning state of the configuration.

State string

Gets or sets the state of the configuration.

id String

The provider-assigned unique ID for this managed resource.

type String

The type of the resource.

creationTime String

Gets or sets the creation time.

etag String

Gets or sets the etag of the resource.

jobCount Integer

Gets or sets the job count of the configuration.

lastModifiedTime String

Gets or sets the last modified time.

nodeConfigurationCount Integer

Gets the number of compiled node configurations.

provisioningState String

Gets or sets the provisioning state of the configuration.

state String

Gets or sets the state of the configuration.

id string

The provider-assigned unique ID for this managed resource.

type string

The type of the resource.

creationTime string

Gets or sets the creation time.

etag string

Gets or sets the etag of the resource.

jobCount number

Gets or sets the job count of the configuration.

lastModifiedTime string

Gets or sets the last modified time.

nodeConfigurationCount number

Gets the number of compiled node configurations.

provisioningState string

Gets or sets the provisioning state of the configuration.

state string

Gets or sets the state of the configuration.

id str

The provider-assigned unique ID for this managed resource.

type str

The type of the resource.

creation_time str

Gets or sets the creation time.

etag str

Gets or sets the etag of the resource.

job_count int

Gets or sets the job count of the configuration.

last_modified_time str

Gets or sets the last modified time.

node_configuration_count int

Gets the number of compiled node configurations.

provisioning_state str

Gets or sets the provisioning state of the configuration.

state str

Gets or sets the state of the configuration.

id String

The provider-assigned unique ID for this managed resource.

type String

The type of the resource.

creationTime String

Gets or sets the creation time.

etag String

Gets or sets the etag of the resource.

jobCount Number

Gets or sets the job count of the configuration.

lastModifiedTime String

Gets or sets the last modified time.

nodeConfigurationCount Number

Gets the number of compiled node configurations.

provisioningState String

Gets or sets the provisioning state of the configuration.

state String

Gets or sets the state of the configuration.

Supporting Types

ContentHash

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

algorithm string

Gets or sets the content hash algorithm used to hash the content.

value string

Gets or sets expected hash value of the content.

algorithm str

Gets or sets the content hash algorithm used to hash the content.

value str

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

ContentHashResponse

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

algorithm string

Gets or sets the content hash algorithm used to hash the content.

value string

Gets or sets expected hash value of the content.

algorithm str

Gets or sets the content hash algorithm used to hash the content.

value str

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

ContentSource

Hash Pulumi.AzureNative.Automation.Inputs.ContentHash

Gets or sets the hash.

Type string | Pulumi.AzureNative.Automation.ContentSourceType

Gets or sets the content source type.

Value string

Gets or sets the value of the content. This is based on the content source type.

Version string

Gets or sets the version of the content.

Hash ContentHash

Gets or sets the hash.

Type string | ContentSourceType

Gets or sets the content source type.

Value string

Gets or sets the value of the content. This is based on the content source type.

Version string

Gets or sets the version of the content.

hash ContentHash

Gets or sets the hash.

type String | ContentSourceType

Gets or sets the content source type.

value String

Gets or sets the value of the content. This is based on the content source type.

version String

Gets or sets the version of the content.

hash ContentHash

Gets or sets the hash.

type string | ContentSourceType

Gets or sets the content source type.

value string

Gets or sets the value of the content. This is based on the content source type.

version string

Gets or sets the version of the content.

hash ContentHash

Gets or sets the hash.

type str | ContentSourceType

Gets or sets the content source type.

value str

Gets or sets the value of the content. This is based on the content source type.

version str

Gets or sets the version of the content.

hash Property Map

Gets or sets the hash.

type String | "embeddedContent" | "uri"

Gets or sets the content source type.

value String

Gets or sets the value of the content. This is based on the content source type.

version String

Gets or sets the version of the content.

ContentSourceResponse

Hash Pulumi.AzureNative.Automation.Inputs.ContentHashResponse

Gets or sets the hash.

Type string

Gets or sets the content source type.

Value string

Gets or sets the value of the content. This is based on the content source type.

Version string

Gets or sets the version of the content.

Hash ContentHashResponse

Gets or sets the hash.

Type string

Gets or sets the content source type.

Value string

Gets or sets the value of the content. This is based on the content source type.

Version string

Gets or sets the version of the content.

hash ContentHashResponse

Gets or sets the hash.

type String

Gets or sets the content source type.

value String

Gets or sets the value of the content. This is based on the content source type.

version String

Gets or sets the version of the content.

hash ContentHashResponse

Gets or sets the hash.

type string

Gets or sets the content source type.

value string

Gets or sets the value of the content. This is based on the content source type.

version string

Gets or sets the version of the content.

hash ContentHashResponse

Gets or sets the hash.

type str

Gets or sets the content source type.

value str

Gets or sets the value of the content. This is based on the content source type.

version str

Gets or sets the version of the content.

hash Property Map

Gets or sets the hash.

type String

Gets or sets the content source type.

value String

Gets or sets the value of the content. This is based on the content source type.

version String

Gets or sets the version of the content.

ContentSourceType

EmbeddedContent
embeddedContent
Uri
uri
ContentSourceTypeEmbeddedContent
embeddedContent
ContentSourceTypeUri
uri
EmbeddedContent
embeddedContent
Uri
uri
EmbeddedContent
embeddedContent
Uri
uri
EMBEDDED_CONTENT
embeddedContent
URI
uri
"embeddedContent"
embeddedContent
"uri"
uri

DscConfigurationParameter

DefaultValue string

Gets or sets the default value of parameter.

IsMandatory bool

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

Position int

Get or sets the position of the parameter.

Type string

Gets or sets the type of the parameter.

DefaultValue string

Gets or sets the default value of parameter.

IsMandatory bool

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

Position int

Get or sets the position of the parameter.

Type string

Gets or sets the type of the parameter.

defaultValue String

Gets or sets the default value of parameter.

isMandatory Boolean

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position Integer

Get or sets the position of the parameter.

type String

Gets or sets the type of the parameter.

defaultValue string

Gets or sets the default value of parameter.

isMandatory boolean

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position number

Get or sets the position of the parameter.

type string

Gets or sets the type of the parameter.

default_value str

Gets or sets the default value of parameter.

is_mandatory bool

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position int

Get or sets the position of the parameter.

type str

Gets or sets the type of the parameter.

defaultValue String

Gets or sets the default value of parameter.

isMandatory Boolean

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position Number

Get or sets the position of the parameter.

type String

Gets or sets the type of the parameter.

DscConfigurationParameterResponse

DefaultValue string

Gets or sets the default value of parameter.

IsMandatory bool

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

Position int

Get or sets the position of the parameter.

Type string

Gets or sets the type of the parameter.

DefaultValue string

Gets or sets the default value of parameter.

IsMandatory bool

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

Position int

Get or sets the position of the parameter.

Type string

Gets or sets the type of the parameter.

defaultValue String

Gets or sets the default value of parameter.

isMandatory Boolean

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position Integer

Get or sets the position of the parameter.

type String

Gets or sets the type of the parameter.

defaultValue string

Gets or sets the default value of parameter.

isMandatory boolean

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position number

Get or sets the position of the parameter.

type string

Gets or sets the type of the parameter.

default_value str

Gets or sets the default value of parameter.

is_mandatory bool

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position int

Get or sets the position of the parameter.

type str

Gets or sets the type of the parameter.

defaultValue String

Gets or sets the default value of parameter.

isMandatory Boolean

Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.

position Number

Get or sets the position of the parameter.

type String

Gets or sets the type of the parameter.

Import

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

$ pulumi import azure-native:automation:DscConfiguration SetupServer /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SetupServer 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0