Use this data source to access information about an existing certificate in a Batch Account.
data "azurerm_batch_certificate" "example" {
name = "SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA"
account_name = "examplebatchaccount"
resource_group_name = "example"
}
output "thumbprint" {
value = data.azurerm_batch_certificate.example.thumbprint
}
name
- The name of the Batch certificate.
account_name
- The name of the Batch account.
resource_group_name
- The Name of the Resource Group where this Batch account exists.
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.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the certificate.