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
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
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
Parameters
-
account_name
required - string -
certificate
required - string -
format
required - string -
id
optional computed - string -
name
optional computed - string -
password
optional - string -
public_data
optional computed - string -
resource_group_name
required - string -
thumbprint
required - string -
thumbprint_algorithm
required - string -
timeouts
single block
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 - stringname
required - stringThe 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
requireddata
required - stringThe maximum size is 10KB.
format
optional - stringThe format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.
password
optional - stringThis must not be specified if the certificate format is Cer.
thumbprint
optional - stringThis must match the thumbprint from the name.
thumbprintAlgorithm
optional - stringThis 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.