Skip to content

Data Source: azurermBatchCertificate

Use this data source to access information about an existing certificate in a Batch Account.

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 dataAzurermBatchCertificateExample =
  new azurerm.dataAzurermBatchCertificate.DataAzurermBatchCertificate(
    this,
    "example",
    {
      account_name: "examplebatchaccount",
      name: "SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA",
      resource_group_name: "example",
    }
  );
new cdktf.TerraformOutput(this, "thumbprint", {
  value: dataAzurermBatchCertificateExample.thumbprint,
});

Argument Reference

  • name - The name of the Batch certificate.

  • accountName - The name of the Batch account.

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

Attributes Reference

The following attributes are exported:

  • id - The Batch certificate ID.

  • publicData - The public key of the certificate.

  • format - The format of the certificate, such as cer or pfx.

  • thumbprint - The thumbprint of the certificate.

  • thumbprintAlgorithm - The algorithm of the certificate thumbprint.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the certificate.