» Data Source: azurerm_batch_certificate

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

» Example Usage

data "azurerm_batch_certificate" "example" {
  name                = "SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA"
  account_name        = "examplebatchaccount"
  resource_group_name = "example"
}

output "thumbprint" {
  value = "${data.azurerm_batch_certificate.example.thumbprint}"
}

» Argument Reference

  • name - (Required) The name of the Batch certificate.

  • account_name - (Required) The name of the Batch account.

  • resource_group_name - (Required) The Name of the Resource Group where this Batch account exists.

» Attributes Reference

The following attributes are exported:

  • id - The Batch certificate ID.

  • public_data - The public key of the certificate.

  • format - The format of the certificate, such as Cer or Pfx.

  • thumbprint - The thumbprint of the certificate.

  • thumbprint_algorithm - The algorithm of the certificate thumbprint.