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_namerequired - string -
certificaterequired - string -
formatrequired - string -
idoptional computed - string -
nameoptional computed - string -
passwordoptional - string -
public_dataoptional computed - string -
resource_group_namerequired - string -
thumbprintrequired - string -
thumbprint_algorithmrequired - string -
timeoutssingle 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
apiVersionrequired - stringnamerequired - 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.
propertiesrequireddatarequired - stringThe maximum size is 10KB.
formatoptional - stringThe format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.
passwordoptional - stringThis must not be specified if the certificate format is Cer.
thumbprintoptional - stringThis must match the thumbprint from the name.
thumbprintAlgorithmoptional - stringThis must match the first portion of the certificate name. Currently required to be 'SHA1'.
typerequired - 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.