Azure Automation Credential
This page shows how to write Terraform and Azure Resource Manager for Automation Credential and write them securely.
azurerm_automation_credential (Terraform)
The Credential in Automation can be configured in Terraform with the resource name azurerm_automation_credential
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_automation_credential" "credential" {
name = var.name
resource_group_name = var.resource_group_name
automation_account_name = var.automation_account_name
username = var.username
password = var.password
resource "azurerm_automation_credential" "this" {
automation_account_name = var.automation_account_name
description = var.description
name = var.name
password = var.password
resource_group_name = var.resource_group_name
resource "azurerm_automation_credential" "this" {
automation_account_name = var.automation_account_name
description = var.description
name = var.name
password = var.password
resource_group_name = var.resource_group_name
Parameters
-
automation_account_name
required - string -
description
optional - string -
id
optional computed - string -
name
required - string -
password
required - string -
resource_group_name
required - string -
username
required - string -
timeouts
single block
Explanation in Terraform Registry
Manages a Automation Credential.
Microsoft.Automation/automationAccounts/credentials (Azure Resource Manager)
The automationAccounts/credentials in Microsoft.Automation can be configured in Azure Resource Manager with the resource name Microsoft.Automation/automationAccounts/credentials
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Frequently asked questions
What is Azure Automation Credential?
Azure Automation Credential 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 Credential?
For Terraform, the BrettOJ/azuread_adfs_jwt_token, kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.