azure-native.automation.DscNodeConfiguration
Explore with Pulumi AI
Definition of the dsc node configuration. API Version: 2019-06-01.
Example Usage
Create node configuration
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dscNodeConfiguration = new AzureNative.Automation.DscNodeConfiguration("dscNodeConfiguration", new()
{
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 (
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.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("
\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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.DscNodeConfiguration;
import com.pulumi.azurenative.automation.DscNodeConfigurationArgs;
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 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 DscNodeConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DscNodeConfiguration(name: string, args: DscNodeConfigurationArgs, opts?: CustomResourceOptions);
@overload
def DscNodeConfiguration(resource_name: str,
args: DscNodeConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DscNodeConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
configuration: Optional[DscConfigurationAssociationPropertyArgs] = None,
resource_group_name: Optional[str] = None,
source: Optional[ContentSourceArgs] = None,
increment_node_configuration_build: Optional[bool] = None,
name: Optional[str] = None,
node_configuration_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var dscNodeConfigurationResource = new AzureNative.Automation.DscNodeConfiguration("dscNodeConfigurationResource", new()
{
AutomationAccountName = "string",
Configuration =
{
{ "name", "string" },
},
ResourceGroupName = "string",
Source =
{
{ "hash",
{
{ "algorithm", "string" },
{ "value", "string" },
} },
{ "type", "string" },
{ "value", "string" },
{ "version", "string" },
},
IncrementNodeConfigurationBuild = false,
Name = "string",
NodeConfigurationName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := automation.NewDscNodeConfiguration(ctx, "dscNodeConfigurationResource", &automation.DscNodeConfigurationArgs{
AutomationAccountName: "string",
Configuration: map[string]interface{}{
"name": "string",
},
ResourceGroupName: "string",
Source: map[string]interface{}{
"hash": map[string]interface{}{
"algorithm": "string",
"value": "string",
},
"type": "string",
"value": "string",
"version": "string",
},
IncrementNodeConfigurationBuild: false,
Name: "string",
NodeConfigurationName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var dscNodeConfigurationResource = new DscNodeConfiguration("dscNodeConfigurationResource", DscNodeConfigurationArgs.builder()
.automationAccountName("string")
.configuration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.source(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.incrementNodeConfigurationBuild(false)
.name("string")
.nodeConfigurationName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
dsc_node_configuration_resource = azure_native.automation.DscNodeConfiguration("dscNodeConfigurationResource",
automation_account_name=string,
configuration={
name: string,
},
resource_group_name=string,
source={
hash: {
algorithm: string,
value: string,
},
type: string,
value: string,
version: string,
},
increment_node_configuration_build=False,
name=string,
node_configuration_name=string,
tags={
string: string,
})
const dscNodeConfigurationResource = new azure_native.automation.DscNodeConfiguration("dscNodeConfigurationResource", {
automationAccountName: "string",
configuration: {
name: "string",
},
resourceGroupName: "string",
source: {
hash: {
algorithm: "string",
value: "string",
},
type: "string",
value: "string",
version: "string",
},
incrementNodeConfigurationBuild: false,
name: "string",
nodeConfigurationName: "string",
tags: {
string: "string",
},
});
type: azure-native:automation:DscNodeConfiguration
properties:
automationAccountName: string
configuration:
name: string
incrementNodeConfigurationBuild: false
name: string
nodeConfigurationName: string
resourceGroupName: string
source:
hash:
algorithm: string
value: string
type: string
value: string
version: string
tags:
string: string
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:
- Automation
Account stringName - The name of the automation account.
- Configuration
Pulumi.
Azure Native. Automation. Inputs. Dsc Configuration Association Property - Gets or sets the configuration of the node.
- Resource
Group stringName - Name of an Azure Resource group.
- Source
Pulumi.
Azure Native. Automation. Inputs. Content Source - Gets or sets the source.
- Increment
Node boolConfiguration Build - If a new build version of NodeConfiguration is required.
- Name string
- Name of the node configuration.
- Node
Configuration stringName - The Dsc node configuration name.
- Dictionary<string, string>
- Gets or sets the tags attached to the resource.
- Automation
Account stringName - The name of the automation account.
- Configuration
Dsc
Configuration Association Property Args - Gets or sets the configuration of the node.
- Resource
Group stringName - Name of an Azure Resource group.
- Source
Content
Source Args - Gets or sets the source.
- Increment
Node boolConfiguration Build - If a new build version of NodeConfiguration is required.
- Name string
- Name of the node configuration.
- Node
Configuration stringName - The Dsc node configuration name.
- map[string]string
- Gets or sets the tags attached to the resource.
- automation
Account StringName - The name of the automation account.
- configuration
Dsc
Configuration Association Property - Gets or sets the configuration of the node.
- resource
Group StringName - Name of an Azure Resource group.
- source
Content
Source - Gets or sets the source.
- increment
Node BooleanConfiguration Build - If a new build version of NodeConfiguration is required.
- name String
- Name of the node configuration.
- node
Configuration StringName - The Dsc node configuration name.
- Map<String,String>
- Gets or sets the tags attached to the resource.
- automation
Account stringName - The name of the automation account.
- configuration
Dsc
Configuration Association Property - Gets or sets the configuration of the node.
- resource
Group stringName - Name of an Azure Resource group.
- source
Content
Source - Gets or sets the source.
- increment
Node booleanConfiguration Build - If a new build version of NodeConfiguration is required.
- name string
- Name of the node configuration.
- node
Configuration stringName - The Dsc node configuration name.
- {[key: string]: string}
- Gets or sets the tags attached to the resource.
- automation_
account_ strname - The name of the automation account.
- configuration
Dsc
Configuration Association Property Args - Gets or sets the configuration of the node.
- resource_
group_ strname - Name of an Azure Resource group.
- source
Content
Source Args - Gets or sets the source.
- increment_
node_ boolconfiguration_ build - If a new build version of NodeConfiguration is required.
- name str
- Name of the node configuration.
- node_
configuration_ strname - The Dsc node configuration name.
- Mapping[str, str]
- Gets or sets the tags attached to the resource.
- automation
Account StringName - The name of the automation account.
- configuration Property Map
- Gets or sets the configuration of the node.
- resource
Group StringName - Name of an Azure Resource group.
- source Property Map
- Gets or sets the source.
- increment
Node BooleanConfiguration Build - If a new build version of NodeConfiguration is required.
- name String
- Name of the node configuration.
- node
Configuration StringName - The Dsc node configuration name.
- Map<String>
- 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.
- Creation
Time string - Gets or sets creation time.
- Last
Modified stringTime - Gets or sets the last modified time.
- Node
Count 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.
- Creation
Time string - Gets or sets creation time.
- Last
Modified stringTime - Gets or sets the last modified time.
- Node
Count 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.
- creation
Time String - Gets or sets creation time.
- last
Modified StringTime - Gets or sets the last modified time.
- node
Count 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.
- creation
Time string - Gets or sets creation time.
- last
Modified stringTime - Gets or sets the last modified time.
- node
Count 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_ strtime - 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.
- creation
Time String - Gets or sets creation time.
- last
Modified StringTime - Gets or sets the last modified time.
- node
Count Number - Number of nodes with this node configuration assigned
Supporting Types
ContentHash, ContentHashArgs
ContentSource, ContentSourceArgs
- Hash
Pulumi.
Azure Native. Automation. Inputs. Content Hash - Gets or sets the hash.
- Type
string | Pulumi.
Azure Native. Automation. Content Source Type - 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
Content
Hash - Gets or sets the hash.
- Type
string | Content
Source Type - 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
Content
Hash - Gets or sets the hash.
- type
String | Content
Source Type - 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
Content
Hash - Gets or sets the hash.
- type
string | Content
Source Type - 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
Content
Hash - Gets or sets the hash.
- type
str | Content
Source Type - 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 | "embedded
Content" | "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, ContentSourceTypeArgs
- Embedded
Content - embeddedContent
- Uri
- uri
- Content
Source Type Embedded Content - embeddedContent
- Content
Source Type Uri - uri
- Embedded
Content - embeddedContent
- Uri
- uri
- Embedded
Content - embeddedContent
- Uri
- uri
- EMBEDDED_CONTENT
- embeddedContent
- URI
- uri
- "embedded
Content" - embeddedContent
- "uri"
- uri
DscConfigurationAssociationProperty, DscConfigurationAssociationPropertyArgs
- 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, DscConfigurationAssociationPropertyResponseArgs
- 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0