Azure Purview Account

This page shows how to write Terraform for Purview Account and write them securely.

azurerm_purview_account (Terraform)

The Account in Purview can be configured in Terraform with the resource name azurerm_purview_account. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L1
resource "azurerm_purview_account" "purview" {
  name                = var.name
  resource_group_name = var.resource_group_name
  location            = var.location
  sku_name            = var.sku_name
  tags                = var.tags
main.tf#L9
resource "azurerm_purview_account" "example" {
  for_each            = var.purviewAccounts
  name                = each.value["puviewName"]
  resource_group_name = each.value["purviewRgName"]
  location            = each.value["purviewLocation"]
  sku_name            = each.value["purviewSku"]
purview.tf#L1
resource "azurerm_purview_account" "pv_account" {
  name                = "purviewatlaspoc"
  resource_group_name = azurerm_resource_group.rg.name
  location            = azurerm_resource_group.rg.location
  sku_name            = "Standard_1"

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 Purview Account.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Purview Account?

Azure Purview Account is a resource for Purview of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Purview Account?

For Terraform, the AnikG-Org/devops-practice, johhess40/Terraform and jvanbuel/purview-atlas-poc source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.