Azure Batch Certificate

This page shows how to write Terraform and Azure Resource Manager for Batch Certificate and write them securely.

azurerm_batch_certificate (Terraform)

The Certificate in Batch can be configured in Terraform with the resource name azurerm_batch_certificate. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "azurerm_batch_certificate" "this" {
  account_name         = var.account_name
  certificate          = var.certificate
  format               = var.format
  password             = var.password
  resource_group_name  = var.resource_group_name
main.tf#L7
resource "azurerm_batch_certificate" "this" {
  account_name         = var.account_name
  certificate          = var.certificate
  format               = var.format
  password             = var.password
  resource_group_name  = var.resource_group_name

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a certificate in an Azure Batch account.

Microsoft.Batch/batchAccounts/certificates (Azure Resource Manager)

The batchAccounts/certificates in Microsoft.Batch can be configured in Azure Resource Manager with the resource name Microsoft.Batch/batchAccounts/certificates. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • name required - string

    The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

  • properties required
      • data required - string

        The maximum size is 10KB.

      • format optional - string

        The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.

      • password optional - string

        This must not be specified if the certificate format is Cer.

      • thumbprint optional - string

        This must match the thumbprint from the name.

      • thumbprintAlgorithm optional - string

        This must match the first portion of the certificate name. Currently required to be 'SHA1'.

  • type required - string

Frequently asked questions

What is Azure Batch Certificate?

Azure Batch Certificate is a resource for Batch of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Batch Certificate?

For Terraform, the kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.