diff --git a/website/docs/r/automation_dsc_configuration.html.markdown b/website/docs/r/automation_dsc_configuration.html.markdown new file mode 100644 index 000000000000..8106df8bb420 --- /dev/null +++ b/website/docs/r/automation_dsc_configuration.html.markdown @@ -0,0 +1,55 @@ +--- +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_automation_dsc_configuration" +sidebar_current: "docs-azurerm-resource-automation-dsc-configuration" +description: |- + Manages a Automation DSC Configuration. +--- + +# azurerm_automation_dsc_configuration + +Manages a Automation DSC Configuration. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "resourceGroup1" + location = "West Europe" +} + +resource "azurerm_automation_account" "example" { + name = "account1" + location = "${azurerm_resource_group.example.location}" + resource_group_name = "${azurerm_resource_group.example.name}" + sku { + name = "Basic" + } +} + +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 = "configuration test {}" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of the DSC Configuration. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the resource group in which the DSC Configuration is created. Changing this forces a new resource to be created. + +* `automation_account_name` - (Required) The name of the automation account in which the DSC Configuration is created. Changing this forces a new resource to be created. + +* `content` - (Required) The PowerShell DSC Configuration script. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The DSC Configuration ID. diff --git a/website/docs/r/automation_dsc_nodeconfiguration.html.markdown b/website/docs/r/automation_dsc_nodeconfiguration.html.markdown new file mode 100644 index 000000000000..5f138225b13d --- /dev/null +++ b/website/docs/r/automation_dsc_nodeconfiguration.html.markdown @@ -0,0 +1,85 @@ +--- +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_automation_dsc_nodeconfiguration" +sidebar_current: "docs-azurerm-resource-automation-dsc-nodeconfiguration" +description: |- + Manages a Automation DSC Node Configuration. +--- + +# azurerm_automation_dsc_nodeconfiguration + +Manages a Automation DSC Node Configuration. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "resourceGroup1" + location = "West Europe" +} + +resource "azurerm_automation_account" "example" { + name = "account1" + location = "${azurerm_resource_group.example.location}" + resource_group_name = "${azurerm_resource_group.example.name}" + sku { + name = "Basic" + } +} + +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 = "configuration test {}" +} + +resource "azurerm_automation_dsc_nodeconfiguration" "example" { + name = "test.localhost" + resource_group_name = "${azurerm_resource_group.example.name}" + automation_account_name = "${azurerm_automation_account.example.name}" + depends_on = ["azurerm_automation_dsc_configuration.example"] + content = <