-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
85 changes: 85 additions & 0 deletions
85
website/docs/r/automation_dsc_nodeconfiguration.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = <<mofcontent | ||
instance of MSFT_FileDirectoryConfiguration as $MSFT_FileDirectoryConfiguration1ref | ||
{ | ||
ResourceID = "[File]bla"; | ||
Ensure = "Present"; | ||
Contents = "bogus Content"; | ||
DestinationPath = "c:\\bogus.txt"; | ||
ModuleName = "PSDesiredStateConfiguration"; | ||
SourceInfo = "::3::9::file"; | ||
ModuleVersion = "1.0"; | ||
ConfigurationName = "bla"; | ||
}; | ||
instance of OMI_ConfigurationDocument | ||
{ | ||
Version="2.0.0"; | ||
MinimumCompatibleVersion = "1.0.0"; | ||
CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"}; | ||
Author="bogusAuthor"; | ||
GenerationDate="06/15/2018 14:06:24"; | ||
GenerationHost="bogusComputer"; | ||
Name="test"; | ||
}; | ||
mofcontent | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) Specifies the name of the DSC Node Configuration. Changing this forces a new resource to be created. | ||
|
||
* `resource_group_name` - (Required) The name of the resource group in which the DSC Node 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 Node Configuration is created. Changing this forces a new resource to be created. | ||
|
||
* `content` - (Required) The PowerShell DSC Node Configuration (mof content). | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The DSC Node Configuration ID. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
layout: "azurerm" | ||
page_title: "Azure Resource Manager: azurerm_automation_module" | ||
sidebar_current: "docs-azurerm-resource-automation-module" | ||
description: |- | ||
Manages a Automation Module. | ||
--- | ||
|
||
# azurerm_automation_module | ||
|
||
Manages a Automation Module. | ||
|
||
## 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_module" "example" { | ||
name = "xActiveDirectory" | ||
resource_group_name = "${azurerm_resource_group.example.name}" | ||
automation_account_name = "${azurerm_automation_account.example.name}" | ||
module_link = { | ||
uri = "https://devopsgallerystorage.blob.core.windows.net/packages/xactivedirectory.2.19.0.nupkg" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) Specifies the name of the Module. Changing this forces a new resource to be created. | ||
|
||
* `resource_group_name` - (Required) The name of the resource group in which the Module is created. Changing this forces a new resource to be created. | ||
|
||
* `automation_account_name` - (Required) The name of the automation account in which the Module is created. Changing this forces a new resource to be created. | ||
|
||
* `module_link` - (Required) The published Module link. | ||
|
||
`module_link` supports the following: | ||
|
||
* `uri` - (Required) The uri of the module content (zip or nupkg). | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The Automation Module ID. |