Microsoft.Batch batchAccounts/certificates 2022-01-01

Bicep resource definition

The batchAccounts/certificates resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Batch/batchAccounts/certificates resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Batch/batchAccounts/certificates@2022-01-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    data: 'string'
    format: 'string'
    password: 'string'
    thumbprint: 'string'
    thumbprintAlgorithm: 'string'
  }
}

Property values

CertificateCreateOrUpdatePropertiesOrCertificateProperties

Name Description Value
data The maximum size is 10KB. string (required)
format The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. 'Cer'
'Pfx'
password This must not be specified if the certificate format is Cer. string
thumbprint This must match the thumbprint from the name. string
thumbprintAlgorithm This must match the first portion of the certificate name. Currently required to be 'SHA1'. string

Microsoft.Batch/batchAccounts/certificates

Name Description Value
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[\w]+-[\w]+$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: batchAccounts
properties The properties associated with the certificate. CertificateCreateOrUpdatePropertiesOrCertificateProperties

ARM template resource definition

The batchAccounts/certificates resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Batch/batchAccounts/certificates resource, add the following JSON to your template.

{
  "type": "Microsoft.Batch/batchAccounts/certificates",
  "apiVersion": "2022-01-01",
  "name": "string",
  "properties": {
    "data": "string",
    "format": "string",
    "password": "string",
    "thumbprint": "string",
    "thumbprintAlgorithm": "string"
  }
}

Property values

CertificateCreateOrUpdatePropertiesOrCertificateProperties

Name Description Value
data The maximum size is 10KB. string (required)
format The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. 'Cer'
'Pfx'
password This must not be specified if the certificate format is Cer. string
thumbprint This must match the thumbprint from the name. string
thumbprintAlgorithm This must match the first portion of the certificate name. Currently required to be 'SHA1'. string

Microsoft.Batch/batchAccounts/certificates

Name Description Value
apiVersion The api version '2022-01-01'
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[\w]+-[\w]+$ (required)
properties The properties associated with the certificate. CertificateCreateOrUpdatePropertiesOrCertificateProperties
type The resource type 'Microsoft.Batch/batchAccounts/certificates'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Existing Azure Batch Service with Pfx from Keyvault

Deploy to Azure
This template demostrates using Azure Batch service with pfx password certificate from keyvault

Terraform (AzAPI provider) resource definition

The batchAccounts/certificates resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Batch/batchAccounts/certificates resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Batch/batchAccounts/certificates@2022-01-01"
  name = "string"
  body = jsonencode({
    properties = {
      data = "string"
      format = "string"
      password = "string"
      thumbprint = "string"
      thumbprintAlgorithm = "string"
    }
  })
}

Property values

CertificateCreateOrUpdatePropertiesOrCertificateProperties

Name Description Value
data The maximum size is 10KB. string (required)
format The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. 'Cer'
'Pfx'
password This must not be specified if the certificate format is Cer. string
thumbprint This must match the thumbprint from the name. string
thumbprintAlgorithm This must match the first portion of the certificate name. Currently required to be 'SHA1'. string

Microsoft.Batch/batchAccounts/certificates

Name Description Value
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[\w]+-[\w]+$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: batchAccounts
properties The properties associated with the certificate. CertificateCreateOrUpdatePropertiesOrCertificateProperties
type The resource type "Microsoft.Batch/batchAccounts/certificates@2022-01-01"