You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi.periketi 8bad20885f Merge pull request 'feature/init' (#1) from feature/init into master 7 months ago
examples fix example 7 months ago
.gitignore initial commit 8 months ago
.pre-commit-config.yaml fix review 7 months ago
CHANGELOG.md fix review 7 months ago
Jenkinsfile add jenkinsfile 8 months ago
LICENSE initial commit 8 months ago
README.md removes tags variable from linked service resource 7 months ago
main.tf removes tags variable from linked service resource 7 months ago
outputs.tf add more example and add update management resource 7 months ago
variables.tf removes tags variable from linked service resource 7 months ago
versions.tf fix version 8 months ago

README.md

terraform-module-azurerm-automation-account

Usage

See examples folders for usage of this module.

Requirements

Name Version
terraform >= 0.12
azurerm >= 2.0.0

Providers

Name Version
azurerm >= 2.0.0

Inputs

Name Description Type Default Required
automation_account_enabled Boolean flag which describes whether or not enable the automation account resource. bool false no
automation_account_exist Boolean flag which describes whether the automation account already exist or not. bool false no
automation_account_name Specifies the name of the Automation Account. Changing this forces a new resource to be created. If enabled value is Required string "" no
automation_account_tags Tags which will be associated to the automation account resource. map {} no
automation_credential_enabled Boolean flag which describes whether to enable the automation crdentials resource or not. bool false no
automation_job_enabled Boolean flag which describes whether or not enable the automation job schedule resource. bool false no
automation_job_schedule_names List of names of the automation job schedules. Changing this forces a new resource to be created. if enabled this value is Required. list(string)
[
““
]
no
automation_job_schedule_parameters List of key/value pairs corresponding to the arguments that can be passed to the runbook. NOTE: The parameter keys/names must strictly be in lowercase, even if this is not the case in the runbook. This is due to a limitation in Azure automation where the parameter names are normalized. The values specified don't have this limitation. Changing this forces a new resource to be created. list(object({}))
[
null
]
no
automation_job_schedule_run_on List of names of hybrid worker group on which runbook will be executed on. Changing this forces a new resource to be created. list(string)
[
null
]
no
automation_job_schedule_runbook_names List of names of the runbook to link to a schedule. It needs to be in the same automation account as the schedule and job schedule. Changing this forces a new resource to be created. If enabled this value is Rquired. list(string)
[
““
]
no
automation_schedule_enabled Boolean flag which describes whether or not enable the automation account schedule resource. bool false no
automation_variable_bool_enabled Boolean flag which describes whether or not to enable the automation variable boolean resource. bool false no
automation_variable_datetime_enabled Boolean flag which describes whether or not to enable the automation variable datetime resource. bool false no
automation_variable_int_enabled Boolean flag which describes whether or not to enable the automation variable integer resource. bool false no
automation_variable_string_enabled Boolean flag which describes whether or not to enable the automation variable string resource. bool false no
credential_descriptions The list of descriptions associated with the automation credentials. list(string)
[
““
]
no
credential_names List of credentials names which will be created in the automation account. Changing this forces a new resource to be created. If enabled this value is Required. list(string)
[
““
]
no
credential_passwords The list of passowrds associated with the automation credentials. list(string)
[
““
]
no
credential_usernames The list of usernames associated with the automation credentials. list(string)
[
““
]
no
enable_update_management Boolean flag which describes whether or not enable the update management on the automation account. bool false no
enabled Enable or disable module. bool true no
existing_automation_account_names List of names of existing automation account names. If automation_account_exist is enabled then this value is Required. list(string)
[
““
]
no
location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.If enabled value is Required. string "" no
log_analytics_workspace_id The full resource ID of the log analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. If enabled the value is REQUIRED. string "" no
log_analytics_workspace_name Name of the log analytics workspace that will contain the linkedServices resource. Changing this forces a new resource to be created. If enabled the value is REQUIRED. string "" no
module_enabled Boolean flag which describes whether or not enable the automation module resource. bool false no
module_link_uris The list of published module link URIS of the module content (zip or nupkg).If enabled this value is Required. list(string)
[
““
]
no
module_names The list which describes the names of the automation module. Changing this force a new resource to be created. list(string)
[
““
]
no
monthly_occurrence_days List of day of the monthly occurrences days of the schedule. Must be one of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. list(string)
[
““
]
no
monthly_occurrence_occurrences List of monthly occurrences of the week within the month. Must be between 1 and 5. -1 for last week within the month. list(number)
[
1
]
no
publish_content_link_uris The list of URIS of the runbook content. If enabled this value is Required. list(string)
[
null
]
no
resource_group_name Name of the resource group in which the automation account resource should exist.Changing this forces a new resource to be created. string "" no
runbook_contents The list of desired content of the runbook. NOTE: The Azure API requires a publish_content_linkto be supplied even when specifying your owncontent& settingcontentto an empty string will revert the runbook to thepublish_content_link. list(string)
[
““
]
no
runbook_descriptions The list of descriptions which will be associated to the runbooks. list(string)
[
““
]
no
runbook_enabled Boolean flag which describes whether or not enable the automation runbook resource. bool false no
runbook_log_progress The list of boolean flag which describes whether to have log options or not. If enabled this value is Required. list(bool)
[
false
]
no
runbook_log_verbose The list of boolean flag which describes whether to have versbose log option or not. If enabled this value is Required. list(bool)
[
false
]
no
runbook_names The list of names of the runbook . Changing this forces a new resource to be created. If enabled this value is Required. list(string)
[
““
]
no
runbook_tags Tags which will be associated to the automation account runbook resource. map {} no
runbook_types The list which describes the type of the runbook can be either Graph, GraphPowerShell, GraphPowerShellWorkflow, PowerShellWorkflow, PowerShell or Script. If enabled this value is Required. list(string)
[
““
]
no
schedule_descriptions The list of descriptions for the automation schedules. list(string)
[
““
]
no
schedule_expiry_times The list of end times of the automation schedule. list(string)
[
“9999-12-31T23:59:59Z"
]
no
schedule_frequencies List of frequencies of the schedules.Can be either OneTime, Day, Hour, Week, or Month.If enabled value id Required. list(string)
[
“Onetime"
]
no
schedule_intervals List of number of schedule frequencies between runs. Only valid when frequency is Day, Hour, Week, or Month and defaults to 1. list(number)
[
1
]
no
schedule_month_days List of days of the month on which schedule job should will be executed. Must be between 1 and 31. -1 for last day of the month. Only valid when frequency is Month. list(list(string)) [] no
schedule_names List which specifies the names of the automation schedule. Changing this forces a new resource to be created.If enabled value is Required. list(string)
[
““
]
no
schedule_start_times The list of start times of the automation schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created. list(string)
[
““
]
no
schedule_timezones List of timezones of the start time. Defaults to UTC. For possible values see: https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx list(string)
[
“UTC"
]
no
schedule_weekdays List of days of the week on which schedule job should will be executed. Only valid when frequency is Week. list(list(string)) [] no
sku_name The SKU name of the automation account - only Basic is supported at this time. string "Basic" no
tags Tags shared by all resources of this module. Will be merged with any other specific tags by resource. map {} no
variable_bool_descriptions List of descriptions of the automation boolean variable. list(string)
[
““
]
no
variable_bool_encryptions List which specifies if the automation boolean variables are encrypted or not. Defaults to false. list(bool)
[
false
]
no
variable_bool_names List which specifies the names of automation boolean variable. Changing this forces a new resource to be created. If enabled this value is Required. list(string)
[
““
]
no
variable_bool_values The list of values of automation boolean variable as boolean. list(bool)
[
false
]
no
variable_datetime_descriptions List of descriptions of the automation datetime variable. list(string)
[
““
]
no
variable_datetime_encryptions List which specifies if the automation datetime variable is encrypted or not. Defaults to false. list(bool)
[
false
]
no
variable_datetime_names List which specifies the names of automation datetime variable. Changing this forces a new resource to be created. If enabled this value is Required. list(string)
[
““
]
no
variable_datetime_values The list of values of automation datetime variable in the RFC3339 Section 5.6 Internet Date/Time Format. https://tools.ietf.org/html/rfc3339#section-5.6 list(string)
[
“2019-04-24T21:40:54.074Z"
]
no
variable_int_descriptions List of description of the automation integer variables. list(string)
[
““
]
no
variable_int_encryptions List which specifies if the automation integer variable is encrypted or not. Defaults to false. list(bool)
[
false
]
no
variable_int_names List which specifies the names of automation integer variable. Changing this forces a new resource to be created. If enabled this value is Required. list(string)
[
““
]
no
variable_int_values The list of values of automation integer variable as Integer. list(number)
[
1234
]
no
variable_string_descriptions List of description of the automation string variables. list(string)
[
““
]
no
variable_string_encryptions List which specifies if the automation string variable is encrypted or not. Defaults to false. list(bool)
[
false
]
no
variable_string_names List which specifies the names of automation string variable. Changing this forces a new resource to be created. If enabled this value is Required. list(string)
[
““
]
no
variable_string_values The list of values of automation string variable as String. list(string)
[
“Terraform"
]
no

Outputs

Name Description
automation_account_credential_ids IDs of the automation credentials.
automation_account_id ID of the automation account.
automation_account_job_ids Ids of the automation job schedule.
automation_account_job_schedule_ids The UUID identifying the automation job schedule.
automation_account_runbook_ids IDs of the automation account runbook.
automation_account_var_bool_ids IDs of the automation account account variable bool.
automation_account_var_datetime_ids Id of the automation acount variable date-time.
automation_account_var_int_ids Id of the automation acount variable int.
automation_account_var_string_ids Id of the automation acount variable string.
automation_module_ids IDs of the automation module.
automation_schedule_ids IDs of the automation schedules.
log_analytics_linked_service_id the ID of the log analytics linked service.