Skip to content

Data Source: azurermDiskEncryptionSet

Use this data source to access information about an existing Disk Encryption Set.

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 dataAzurermDiskEncryptionSetExisting =
  new azurerm.dataAzurermDiskEncryptionSet.DataAzurermDiskEncryptionSet(
    this,
    "existing",
    {
      name: "example-des",
      resource_group_name: "example-resources",
    }
  );
new cdktf.TerraformOutput(this, "id", {
  value: dataAzurermDiskEncryptionSetExisting.id,
});

Argument Reference

The following arguments are supported:

  • name - The name of the Disk Encryption Set exists.

  • resourceGroupName - The name of the Resource Group where the Disk Encryption Set exists.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Disk Encryption Set.

  • location - The location where the Disk Encryption Set exists.

  • autoKeyRotationEnabled - Is the Azure Disk Encryption Set Key automatically rotated to latest version?

  • tags - A mapping of tags assigned to the Disk Encryption Set.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Disk Encryption Set.