Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.1 published on Wednesday, May 18, 2022 by Pulumi

DscNodeConfiguration

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

Example Usage

Create node configuration

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var dscNodeConfiguration = new AzureNative.Automation.DscNodeConfiguration("dscNodeConfiguration", new AzureNative.Automation.DscNodeConfigurationArgs
        {
            AutomationAccountName = "myAutomationAccount20",
            Configuration = new AzureNative.Automation.Inputs.DscConfigurationAssociationPropertyArgs
            {
                Name = "configName",
            },
            IncrementNodeConfigurationBuild = true,
            Name = "configName.nodeConfigName",
            NodeConfigurationName = "configName.nodeConfigName",
            ResourceGroupName = "rg",
            Source = new AzureNative.Automation.Inputs.ContentSourceArgs
            {
                Hash = new AzureNative.Automation.Inputs.ContentHashArgs
                {
                    Algorithm = "sha256",
                    Value = "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5",
                },
                Type = "embeddedContent",
                Value = @"
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = ""[WindowsFeature]IIS"";
 Ensure = ""Present"";
 SourceInfo = ""::3::32::WindowsFeature"";
 Name = ""Web-Server"";
 ModuleName = ""PsDesiredStateConfiguration"";

ModuleVersion = ""1.0"";

 ConfigurationName = ""configName"";

};
instance of OMI_ConfigurationDocument


                    {
 Version=""2.0.0"";
 

                        MinimumCompatibleVersion = ""1.0.0"";
 

                        CompatibleVersionAdditionalProperties= {""Omi_BaseResource:ConfigurationName""};
 

                        Author=""weijiel"";
 

                        GenerationDate=""03/30/2017 13:40:25"";
 

                        GenerationHost=""TEST-BACKEND"";
 

                        Name=""configName"";


                    };
",
                Version = "1.0",
            },
        });
    }

}
package main

import (
	"fmt"

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := automation.NewDscNodeConfiguration(ctx, "dscNodeConfiguration", &automation.DscNodeConfigurationArgs{
			AutomationAccountName: pulumi.String("myAutomationAccount20"),
			Configuration: &automation.DscConfigurationAssociationPropertyArgs{
				Name: pulumi.String("configName"),
			},
			IncrementNodeConfigurationBuild: pulumi.Bool(true),
			Name:                            pulumi.String("configName.nodeConfigName"),
			NodeConfigurationName:           pulumi.String("configName.nodeConfigName"),
			ResourceGroupName:               pulumi.String("rg"),
			Source: &automation.ContentSourceArgs{
				Hash: &automation.ContentHashArgs{
					Algorithm: pulumi.String("sha256"),
					Value:     pulumi.String("6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5"),
				},
				Type: pulumi.String("embeddedContent"),
				Value: pulumi.String(fmt.Sprintf("%v%v%v", "
\ninstance of MSFT_RoleResource as ", "$", "MSFT_RoleResource1ref
\n{
\nResourceID = \"[WindowsFeature]IIS\";
\n Ensure = \"Present\";
\n SourceInfo = \"::3::32::WindowsFeature\";
\n Name = \"Web-Server\";
\n ModuleName = \"PsDesiredStateConfiguration\";
\n
\nModuleVersion = \"1.0\";

\n ConfigurationName = \"configName\";

\n};
\ninstance of OMI_ConfigurationDocument
\n

\n                    {
\n Version=\"2.0.0\";
\n 

\n                        MinimumCompatibleVersion = \"1.0.0\";
\n 

\n                        CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};
\n 

\n                        Author=\"weijiel\";
\n 

\n                        GenerationDate=\"03/30/2017 13:40:25\";
\n 

\n                        GenerationHost=\"TEST-BACKEND\";
\n 

\n                        Name=\"configName\";
\n

\n                    };
\n")),
				Version: pulumi.String("1.0"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var dscNodeConfiguration = new DscNodeConfiguration("dscNodeConfiguration", DscNodeConfigurationArgs.builder()        
            .automationAccountName("myAutomationAccount20")
            .configuration(Map.of("name", "configName"))
            .incrementNodeConfigurationBuild(true)
            .name("configName.nodeConfigName")
            .nodeConfigurationName("configName.nodeConfigName")
            .resourceGroupName("rg")
            .source(Map.ofEntries(
                Map.entry("hash", Map.ofEntries(
                    Map.entry("algorithm", "sha256"),
                    Map.entry("value", "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5")
                )),
                Map.entry("type", "embeddedContent"),
                Map.entry("value", """

instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = "[WindowsFeature]IIS";
 Ensure = "Present";
 SourceInfo = "::3::32::WindowsFeature";
 Name = "Web-Server";
 ModuleName = "PsDesiredStateConfiguration";

ModuleVersion = "1.0";

 ConfigurationName = "configName";

};
instance of OMI_ConfigurationDocument


                    {
 Version="2.0.0";
 

                        MinimumCompatibleVersion = "1.0.0";
 

                        CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
 

                        Author="weijiel";
 

                        GenerationDate="03/30/2017 13:40:25";
 

                        GenerationHost="TEST-BACKEND";
 

                        Name="configName";


                    };
                """),
                Map.entry("version", "1.0")
            ))
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

dsc_node_configuration = azure_native.automation.DscNodeConfiguration("dscNodeConfiguration",
    automation_account_name="myAutomationAccount20",
    configuration=azure_native.automation.DscConfigurationAssociationPropertyArgs(
        name="configName",
    ),
    increment_node_configuration_build=True,
    name="configName.nodeConfigName",
    node_configuration_name="configName.nodeConfigName",
    resource_group_name="rg",
    source=azure_native.automation.ContentSourceArgs(
        hash=azure_native.automation.ContentHashArgs(
            algorithm="sha256",
            value="6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5",
        ),
        type="embeddedContent",
        value="""
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = "[WindowsFeature]IIS";
 Ensure = "Present";
 SourceInfo = "::3::32::WindowsFeature";
 Name = "Web-Server";
 ModuleName = "PsDesiredStateConfiguration";

ModuleVersion = "1.0";

 ConfigurationName = "configName";

};
instance of OMI_ConfigurationDocument


                    {
 Version="2.0.0";
 

                        MinimumCompatibleVersion = "1.0.0";
 

                        CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
 

                        Author="weijiel";
 

                        GenerationDate="03/30/2017 13:40:25";
 

                        GenerationHost="TEST-BACKEND";
 

                        Name="configName";


                    };
""",
        version="1.0",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const dscNodeConfiguration = new azure_native.automation.DscNodeConfiguration("dscNodeConfiguration", {
    automationAccountName: "myAutomationAccount20",
    configuration: {
        name: "configName",
    },
    incrementNodeConfigurationBuild: true,
    name: "configName.nodeConfigName",
    nodeConfigurationName: "configName.nodeConfigName",
    resourceGroupName: "rg",
    source: {
        hash: {
            algorithm: "sha256",
            value: "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5",
        },
        type: "embeddedContent",
        value: `
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = "[WindowsFeature]IIS";
 Ensure = "Present";
 SourceInfo = "::3::32::WindowsFeature";
 Name = "Web-Server";
 ModuleName = "PsDesiredStateConfiguration";

ModuleVersion = "1.0";

 ConfigurationName = "configName";

};
instance of OMI_ConfigurationDocument


                    {
 Version="2.0.0";
 

                        MinimumCompatibleVersion = "1.0.0";
 

                        CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
 

                        Author="weijiel";
 

                        GenerationDate="03/30/2017 13:40:25";
 

                        GenerationHost="TEST-BACKEND";
 

                        Name="configName";


                    };
`,
        version: "1.0",
    },
});
resources:
  dscNodeConfiguration:
    type: azure-native:automation:DscNodeConfiguration
    properties:
      automationAccountName: myAutomationAccount20
      configuration:
        name: configName
      incrementNodeConfigurationBuild: true
      name: configName.nodeConfigName
      nodeConfigurationName: configName.nodeConfigName
      resourceGroupName: rg
      source:
        hash:
          algorithm: sha256
          value: 6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5
        type: embeddedContent
        value: "\r\ninstance of MSFT_RoleResource as $MSFT_RoleResource1ref\r\n{\r\nResourceID = \"[WindowsFeature]IIS\";\r\n Ensure = \"Present\";\r\n SourceInfo = \"::3::32::WindowsFeature\";\r\n Name = \"Web-Server\";\r\n ModuleName = \"PsDesiredStateConfiguration\";\r\n\r\nModuleVersion = \"1.0\";\r\r\n ConfigurationName = \"configName\";\r\r\n};\r\ninstance of OMI_ConfigurationDocument\r\n\r\r\n                    {\r\n Version=\"2.0.0\";\r\n \r\r\n                        MinimumCompatibleVersion = \"1.0.0\";\r\n \r\r\n                        CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};\r\n \r\r\n                        Author=\"weijiel\";\r\n \r\r\n                        GenerationDate=\"03/30/2017 13:40:25\";\r\n \r\r\n                        GenerationHost=\"TEST-BACKEND\";\r\n \r\r\n                        Name=\"configName\";\r\n\r\r\n                    };\r\n"
        version: 1.0

Create a DscNodeConfiguration Resource

new DscNodeConfiguration(name: string, args: DscNodeConfigurationArgs, opts?: CustomResourceOptions);
@overload
def DscNodeConfiguration(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         automation_account_name: Optional[str] = None,
                         configuration: Optional[DscConfigurationAssociationPropertyArgs] = None,
                         increment_node_configuration_build: Optional[bool] = None,
                         name: Optional[str] = None,
                         node_configuration_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         source: Optional[ContentSourceArgs] = None,
                         tags: Optional[Mapping[str, str]] = None)
@overload
def DscNodeConfiguration(resource_name: str,
                         args: DscNodeConfigurationArgs,
                         opts: Optional[ResourceOptions] = None)
func NewDscNodeConfiguration(ctx *Context, name string, args DscNodeConfigurationArgs, opts ...ResourceOption) (*DscNodeConfiguration, error)
public DscNodeConfiguration(string name, DscNodeConfigurationArgs args, CustomResourceOptions? opts = null)
public DscNodeConfiguration(String name, DscNodeConfigurationArgs args)
public DscNodeConfiguration(String name, DscNodeConfigurationArgs args, CustomResourceOptions options)
type: azure-native:automation:DscNodeConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

AutomationAccountName string

The name of the automation account.

Configuration Pulumi.AzureNative.Automation.Inputs.DscConfigurationAssociationPropertyArgs

Gets or sets the configuration of the node.

ResourceGroupName string

Name of an Azure Resource group.

Source Pulumi.AzureNative.Automation.Inputs.ContentSourceArgs

Gets or sets the source.

IncrementNodeConfigurationBuild bool

If a new build version of NodeConfiguration is required.

Name string

Name of the node configuration.

NodeConfigurationName string

The Dsc node configuration name.

Tags Dictionary<string, string>

Gets or sets the tags attached to the resource.

AutomationAccountName string

The name of the automation account.

Configuration DscConfigurationAssociationPropertyArgs

Gets or sets the configuration of the node.

ResourceGroupName string

Name of an Azure Resource group.

Source ContentSourceArgs

Gets or sets the source.

IncrementNodeConfigurationBuild bool

If a new build version of NodeConfiguration is required.

Name string

Name of the node configuration.

NodeConfigurationName string

The Dsc node configuration name.

Tags map[string]string

Gets or sets the tags attached to the resource.

automationAccountName String

The name of the automation account.

configuration DscConfigurationAssociationPropertyArgs

Gets or sets the configuration of the node.

resourceGroupName String

Name of an Azure Resource group.

source ContentSourceArgs

Gets or sets the source.

incrementNodeConfigurationBuild Boolean

If a new build version of NodeConfiguration is required.

name String

Name of the node configuration.

nodeConfigurationName String

The Dsc node configuration name.

tags Map

Gets or sets the tags attached to the resource.

automationAccountName string

The name of the automation account.

configuration DscConfigurationAssociationPropertyArgs

Gets or sets the configuration of the node.

resourceGroupName string

Name of an Azure Resource group.

source ContentSourceArgs

Gets or sets the source.

incrementNodeConfigurationBuild boolean

If a new build version of NodeConfiguration is required.

name string

Name of the node configuration.

nodeConfigurationName string

The Dsc node configuration name.

tags {[key: string]: string}

Gets or sets the tags attached to the resource.

automation_account_name str

The name of the automation account.

configuration DscConfigurationAssociationPropertyArgs

Gets or sets the configuration of the node.

resource_group_name str

Name of an Azure Resource group.

source ContentSourceArgs

Gets or sets the source.

increment_node_configuration_build bool

If a new build version of NodeConfiguration is required.

name str

Name of the node configuration.

node_configuration_name str

The Dsc node configuration name.

tags Mapping[str, str]

Gets or sets the tags attached to the resource.

automationAccountName String

The name of the automation account.

configuration Property Map

Gets or sets the configuration of the node.

resourceGroupName String

Name of an Azure Resource group.

source Property Map

Gets or sets the source.

incrementNodeConfigurationBuild Boolean

If a new build version of NodeConfiguration is required.

name String

Name of the node configuration.

nodeConfigurationName String

The Dsc node configuration name.

tags Map

Gets or sets the tags attached to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the DscNodeConfiguration 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 creation time.

LastModifiedTime string

Gets or sets the last modified time.

NodeCount double

Number of nodes with this node configuration assigned

Id string

The provider-assigned unique ID for this managed resource.

Type string

The type of the resource.

CreationTime string

Gets or sets creation time.

LastModifiedTime string

Gets or sets the last modified time.

NodeCount float64

Number of nodes with this node configuration assigned

id String

The provider-assigned unique ID for this managed resource.

type String

The type of the resource.

creationTime String

Gets or sets creation time.

lastModifiedTime String

Gets or sets the last modified time.

nodeCount Double

Number of nodes with this node configuration assigned

id string

The provider-assigned unique ID for this managed resource.

type string

The type of the resource.

creationTime string

Gets or sets creation time.

lastModifiedTime string

Gets or sets the last modified time.

nodeCount number

Number of nodes with this node configuration assigned

id str

The provider-assigned unique ID for this managed resource.

type str

The type of the resource.

creation_time str

Gets or sets creation time.

last_modified_time str

Gets or sets the last modified time.

node_count float

Number of nodes with this node configuration assigned

id String

The provider-assigned unique ID for this managed resource.

type String

The type of the resource.

creationTime String

Gets or sets creation time.

lastModifiedTime String

Gets or sets the last modified time.

nodeCount Number

Number of nodes with this node configuration assigned

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.

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.

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

DscConfigurationAssociationProperty

Name string

Gets or sets the name of the Dsc configuration.

Name string

Gets or sets the name of the Dsc configuration.

name String

Gets or sets the name of the Dsc configuration.

name string

Gets or sets the name of the Dsc configuration.

name str

Gets or sets the name of the Dsc configuration.

name String

Gets or sets the name of the Dsc configuration.

DscConfigurationAssociationPropertyResponse

Name string

Gets or sets the name of the Dsc configuration.

Name string

Gets or sets the name of the Dsc configuration.

name String

Gets or sets the name of the Dsc configuration.

name string

Gets or sets the name of the Dsc configuration.

name str

Gets or sets the name of the Dsc configuration.

name String

Gets or sets the name of the Dsc configuration.

Import

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

$ pulumi import azure-native:automation:DscNodeConfiguration configName.nodeConfigName /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/nodeConfigurations/configName.nodeConfigName 

Package Details

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