Skip to content

Data Source: azurermManagementGroupTemplateDeployment

Use this data source to access information about an existing Management Group Template Deployment.

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 dataAzurermManagementGroupTemplateDeploymentExample =
  new azurerm.dataAzurermManagementGroupTemplateDeployment.DataAzurermManagementGroupTemplateDeployment(
    this,
    "example",
    {
      management_group_id: "00000000-0000-0000-000000000000",
      name: "existing",
    }
  );
new cdktf.TerraformOutput(this, "example_output", {
  value: `\${jsondecode(${dataAzurermManagementGroupTemplateDeploymentExample.outputContent}).exampleOutput.value}`,
});
new cdktf.TerraformOutput(this, "id", {
  value: dataAzurermManagementGroupTemplateDeploymentExample.id,
});

Arguments Reference

The following arguments are supported:

  • managementGroupId - (Required) The ID of the Management Group to which this template was applied.

  • name - (Required) The name of this Management Group Template Deployment.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Management Group Template Deployment.

  • outputContent - The JSON Content of the Outputs of the ARM Template Deployment.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Management Group Template Deployment.