azure-native.automation.DscConfiguration
Explore with Pulumi AI
Definition of the configuration type. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2019-06-01.
Other available API versions: 2023-05-15-preview, 2023-11-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 (
"github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
"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 {
Node localhost {
WindowsFeature IIS {
Name = "Web-Server";
Ensure = "Present"
}
}
}`),
},
})
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:
- Automation
Account stringName The name of the automation account.
- Resource
Group stringName Name of an Azure Resource group.
- Source
Pulumi.
Azure Native. Automation. Inputs. Content Source Gets or sets the source.
- Configuration
Name 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.
- Log
Progress bool Gets or sets progress log option.
- Log
Verbose bool Gets or sets verbose log option.
- Name string
Gets or sets name of the resource.
- Parameters
Dictionary<string, Pulumi.
Azure Native. Automation. Inputs. Dsc Configuration Parameter Args> Gets or sets the configuration parameters.
- Dictionary<string, string>
Gets or sets the tags attached to the resource.
- Automation
Account stringName The name of the automation account.
- Resource
Group stringName Name of an Azure Resource group.
- Source
Content
Source Args Gets or sets the source.
- Configuration
Name 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.
- Log
Progress bool Gets or sets progress log option.
- Log
Verbose bool Gets or sets verbose log option.
- Name string
Gets or sets name of the resource.
- Parameters
map[string]Dsc
Configuration Parameter Args Gets or sets the configuration parameters.
- map[string]string
Gets or sets the tags attached to the resource.
- automation
Account StringName The name of the automation account.
- resource
Group StringName Name of an Azure Resource group.
- source
Content
Source Gets or sets the source.
- configuration
Name 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.
- log
Progress Boolean Gets or sets progress log option.
- log
Verbose Boolean Gets or sets verbose log option.
- name String
Gets or sets name of the resource.
- parameters
Map<String,Dsc
Configuration Parameter Args> Gets or sets the configuration parameters.
- Map<String,String>
Gets or sets the tags attached to the resource.
- automation
Account stringName The name of the automation account.
- resource
Group stringName Name of an Azure Resource group.
- source
Content
Source Gets or sets the source.
- configuration
Name 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.
- log
Progress boolean Gets or sets progress log option.
- log
Verbose boolean Gets or sets verbose log option.
- name string
Gets or sets name of the resource.
- parameters
{[key: string]: Dsc
Configuration Parameter Args} Gets or sets the configuration parameters.
- {[key: string]: string}
Gets or sets the tags attached to the resource.
- automation_
account_ strname The name of the automation account.
- resource_
group_ strname Name of an Azure Resource group.
- source
Content
Source Args 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, Dsc
Configuration Parameter Args] Gets or sets the configuration parameters.
- Mapping[str, str]
Gets or sets the tags attached to the resource.
- automation
Account StringName The name of the automation account.
- resource
Group StringName Name of an Azure Resource group.
- source Property Map
Gets or sets the source.
- configuration
Name 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.
- log
Progress Boolean Gets or sets progress log option.
- log
Verbose 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.
- 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.
- Creation
Time string Gets or sets the creation time.
- Etag string
Gets or sets the etag of the resource.
- Job
Count int Gets or sets the job count of the configuration.
- Last
Modified stringTime Gets or sets the last modified time.
- Node
Configuration intCount Gets the number of compiled node configurations.
- Provisioning
State 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.
- Creation
Time string Gets or sets the creation time.
- Etag string
Gets or sets the etag of the resource.
- Job
Count int Gets or sets the job count of the configuration.
- Last
Modified stringTime Gets or sets the last modified time.
- Node
Configuration intCount Gets the number of compiled node configurations.
- Provisioning
State 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.
- creation
Time String Gets or sets the creation time.
- etag String
Gets or sets the etag of the resource.
- job
Count Integer Gets or sets the job count of the configuration.
- last
Modified StringTime Gets or sets the last modified time.
- node
Configuration IntegerCount Gets the number of compiled node configurations.
- provisioning
State 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.
- creation
Time string Gets or sets the creation time.
- etag string
Gets or sets the etag of the resource.
- job
Count number Gets or sets the job count of the configuration.
- last
Modified stringTime Gets or sets the last modified time.
- node
Configuration numberCount Gets the number of compiled node configurations.
- provisioning
State 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_ strtime Gets or sets the last modified time.
- node_
configuration_ intcount 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.
- creation
Time String Gets or sets the creation time.
- etag String
Gets or sets the etag of the resource.
- job
Count Number Gets or sets the job count of the configuration.
- last
Modified StringTime Gets or sets the last modified time.
- node
Configuration NumberCount Gets the number of compiled node configurations.
- provisioning
State String Gets or sets the provisioning state of the configuration.
- state String
Gets or sets the state of the configuration.
Supporting Types
ContentHash, ContentHashArgs
ContentHashResponse, ContentHashResponseArgs
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.
ContentSourceResponse, ContentSourceResponseArgs
- Hash
Pulumi.
Azure Native. Automation. Inputs. Content Hash Response 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
Content
Hash Response 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
Content
Hash Response 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
Content
Hash Response 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
Content
Hash Response 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, 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
DscConfigurationParameter, DscConfigurationParameterArgs
- Default
Value string 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 string
Gets or sets the type of the parameter.
- Default
Value string 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 string
Gets or sets the type of the parameter.
- default
Value String Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value string Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value String Gets or sets the default value of parameter.
- is
Mandatory 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, DscConfigurationParameterResponseArgs
- Default
Value string 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 string
Gets or sets the type of the parameter.
- Default
Value string 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 string
Gets or sets the type of the parameter.
- default
Value String Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value string Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value String Gets or sets the default value of parameter.
- is
Mandatory 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0