Skip to content

Data Source: azurermAutomationVariableString

Use this data source to access information about an existing Automation String Variable.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermAutomationVariableStringExample =
  new azurerm.dataAzurermAutomationVariableString.DataAzurermAutomationVariableString(
    this,
    "example",
    {
      automation_account_name: "tfex-example-account",
      name: "tfex-example-var",
      resource_group_name: "tfex-example-rg",
    }
  );
new cdktf.TerraformOutput(this, "variable_id", {
  value: dataAzurermAutomationVariableStringExample.id,
});

Argument Reference

The following arguments are supported:

  • name - The name of the Automation Variable.

  • resourceGroupName - The Name of the Resource Group where the automation account exists.

  • automationAccountName - The name of the automation account in which the Automation Variable exists.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Automation Variable.

  • description - The description of the Automation Variable.

  • encrypted - Specifies if the Automation Variable is encrypted. Defaults to false.

  • value - The value of the Automation Variable as a string.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Automation String Variable.