Azure Automation Variable String

This page shows how to write Terraform and Azure Resource Manager for Automation Variable String and write them securely.

azurerm_automation_variable_string (Terraform)

The Variable String in Automation can be configured in Terraform with the resource name azurerm_automation_variable_string. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

automation-account.tf#L49
resource "azurerm_automation_variable_string" "am_variable_string1" {
  name                    = "Internal_ResourceGroupName"
  resource_group_name     = var.resource_group_name
  automation_account_name = azurerm_automation_account.am.name
  value                   = var.resource_group_name
  depends_on              = [azurerm_kubernetes_cluster.k8s]
module.tf#L1
resource "azurerm_automation_variable_string" "automation_variable_string" {
  name                    = var.name
  resource_group_name     = var.resource_group_name
  automation_account_name = var.automation_account_name
  value                   = var.value
  depends_on              = [var.automation_depends_on]
main.tf#L7
resource "azurerm_automation_variable_string" "this" {
  automation_account_name = var.automation_account_name
  description             = var.description
  encrypted               = var.encrypted
  name                    = var.name
  resource_group_name     = var.resource_group_name

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a string variable in Azure Automation

Microsoft.Automation/automationAccounts/variables (Azure Resource Manager)

The automationAccounts/variables in Microsoft.Automation can be configured in Azure Resource Manager with the resource name Microsoft.Automation/automationAccounts/variables. 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 Variable String?

Azure Automation Variable String 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 Variable String?

For Terraform, the mnhat3896/Automated-Provisioning, BrettOJ/azuread_adfs_jwt_token and kevinhead/azurerm source code examples are useful. See the Terraform Example section for further details.