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
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 {}"
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)
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 {}"
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
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
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
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
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 {}"
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
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
Parameters
-
automation_account_name
required - string -
content_embedded
required - string -
description
optional - string -
id
optional computed - string -
location
required - string -
log_verbose
optional - bool -
name
required - string -
resource_group_name
required - string -
state
optional computed - string -
tags
optional - map from string to string -
timeouts
single block
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
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workbookName": {
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"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.