Azure Automation Certificate
This page shows how to write Terraform and Azure Resource Manager for Automation Certificate and write them securely.
azurerm_automation_certificate (Terraform)
The Certificate in Automation can be configured in Terraform with the resource name azurerm_automation_certificate
. The following sections describe 6 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_automation_certificate" "example" {
name = "certificate1"
resource_group_name = azurerm_resource_group.example.name
automation_account_name = azurerm_automation_account.example.name
description = "This is an example certificate"
resource "azurerm_automation_certificate" "this" {
automation_account_name = var.automation_account_name
base64 = var.base64
description = var.description
name = var.name
resource_group_name = var.resource_group_name
resource "azurerm_automation_certificate" "this" {
automation_account_name = var.automation_account_name
base64 = var.base64
description = var.description
name = var.name
resource_group_name = var.resource_group_name
resource "azurerm_automation_certificate" "auto_cert" {
name = var.name
resource_group_name = var.resource_group_name
automation_account_name = var.automation_account_name
description = var.description
resource "azurerm_automation_certificate" "automationAccountCertificate" {
name = var.automation_run_as_certificate_name
resource_group_name = var.resource_group_name
automation_account_name = azurerm_automation_account.automation_account.name
description = var.automation_run_as_certificate_name
resource "azurerm_automation_certificate" "test" {
name = "AzureRunAsCertificate"
resource_group_name = azurerm_automation_account.test.resource_group_name
automation_account_name = azurerm_automation_account.test.name
base64 = filebase64("certificate.pfx")
}
Parameters
-
automation_account_name
required - string -
base64
required - string -
description
optional - string -
exportable
optional computed - bool -
id
optional computed - string -
name
required - string -
resource_group_name
required - string -
thumbprint
optional computed - string -
timeouts
single block
Explanation in Terraform Registry
Manages an Automation Certificate.
Microsoft.Automation/automationAccounts/certificates (Azure Resource Manager)
The automationAccounts/certificates in Microsoft.Automation can be configured in Azure Resource Manager with the resource name Microsoft.Automation/automationAccounts/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.
Frequently asked questions
What is Azure Automation Certificate?
Azure Automation Certificate is a resource for Automation of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Automation Certificate?
For Terraform, the lazywinadmin/terraform, kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.