Azure Automation Dsc Configuration

This page shows how to write Terraform and Azure Resource Manager for Automation Dsc Configuration and write them securely.

azurerm_automation_dsc_configuration (Terraform)

The Dsc Configuration in Automation can be configured in Terraform with the resource name azurerm_automation_dsc_configuration. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

automation_dsc_configuration_test.tf#L17
resource "azurerm_automation_dsc_configuration" "zeroNodes" {
  name                    = "test"
  resource_group_name     = azurerm_resource_group.example.name
  automation_account_name = azurerm_automation_account.example.name
  location                = azurerm_resource_group.example.location
  content_embedded        = "configuration test {}"
dsc.tf#L11
resource "azurerm_automation_dsc_configuration" "dsc" {
  name                    = "ngnix"
  resource_group_name     = azurerm_resource_group.rg.name
  automation_account_name = azurerm_automation_account.automation.name
  location                = azurerm_resource_group.rg.location
  content_embedded        = filebase64(.//WebsiteNgnix.ps1)
automation_dsc_configuration_test.tf#L17
resource "azurerm_automation_dsc_configuration" "zeroNodes" {
  name                    = "test"
  resource_group_name     = azurerm_resource_group.example.name
  automation_account_name = azurerm_automation_account.example.name
  location                = azurerm_resource_group.example.location
  content_embedded        = "configuration test {}"
main.tf#L7
resource "azurerm_automation_dsc_configuration" "this" {
  automation_account_name = var.automation_account_name
  content_embedded        = var.content_embedded
  description             = var.description
  location                = var.location
  log_verbose             = var.log_verbose
main.tf#L7
resource "azurerm_automation_dsc_configuration" "this" {
  automation_account_name = var.automation_account_name
  content_embedded        = var.content_embedded
  description             = var.description
  location                = var.location
  log_verbose             = var.log_verbose
dsc_config_app.tf#L1
resource "azurerm_automation_dsc_configuration" "dsc_disk" {
  name                    = "DiskAttach"
  automation_account_name = data.azurerm_automation_account.dsc.name
  location            = var.location
  resource_group_name = var.rg_name

AzureAutomation.tf#L11
resource "azurerm_automation_dsc_configuration" "dsc_config" {
  name                    = "HelloWorld"
  automation_account_name = azurerm_automation_account.azauto.name
  resource_group_name     = azurerm_resource_group.rg.name
  location                = azurerm_resource_group.rg.location
  content_embedded        = <<BODY
automation_dsc_nodeconfiguration_test.tf#L18
resource "azurerm_automation_dsc_configuration" "example" {
  name                    = "test"
  resource_group_name     = azurerm_resource_group.example.name
  automation_account_name = azurerm_automation_account.example.name
  location                = azurerm_resource_group.example.location
  content_embedded        = "configuration test {}"
nva1_config.tf#L1
resource "azurerm_automation_dsc_configuration" "NVA1" {
  name                    = "NVA1config"
  automation_account_name = var.automation_account_name
  location            = var.location
  resource_group_name = var.resource_group_name

main.tf#L12
resource "azurerm_automation_dsc_configuration" "GCDOCS-DSC" {
  name                    = "GCDOCSDsc"
  location                = var.location
  resource_group_name     = var.resource_group_name
  automation_account_name = var.automation_account_name

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Automation DSC Configuration.

Microsoft.Automation/automationAccounts/configurations (Azure Resource Manager)

The automationAccounts/configurations in Microsoft.Automation can be configured in Azure Resource Manager with the resource name Microsoft.Automation/automationAccounts/configurations. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
AzureInventory.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
        "workbookName": {
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
dash.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",

Frequently asked questions

What is Azure Automation Dsc Configuration?

Azure Automation Dsc Configuration is a resource for Automation of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Automation Dsc Configuration?

For Terraform, the gilyas/infracost, INGourav/webvm and infracost/infracost source code examples are useful. See the Terraform Example section for further details.

For Azure Resource Manager, the tulpy/Azure, HasanIftakher/Azure-Monitor and gaelor/SentinelAsCode source code examples are useful. See the Azure Resource Manager Example section for further details.