azurerm_confidential_ledger

Manages a Confidential Ledger.

Example Usage

data "azurerm_client_config" "current" {}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_confidential_ledger" "ledger" {
  name                = "example-ledger"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  ledger_type         = "Private"

  azuread_based_service_principal {
    principal_id     = data.azurerm_client_config.current.object_id
    tenant_id        = data.azurerm_client_config.current.tenant_id
    ledger_role_name = "Administrator"
  }
}

Argument Reference

The following arguments are supported:



A azuread_based_service_principal block supports the following:


A certificate_based_security_principal block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Confidential Ledgers can be imported using the resource id, e.g.

terraform import azurerm_confidential_ledger.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-group/providers/Microsoft.ConfidentialLedger/ledgers/example-ledger