Data Source: azurerm_key_vault_certificates

Use this data source to retrieve a list of certificate names from an existing Key Vault.

Example Usage

data "azurerm_key_vault_certificates" "example" {
  key_vault_id = data.azurerm_key_vault.existing.id
}

data "azurerm_key_vault_certificate" "example" {
  for_each     = toset(data.azurerm_key_vault_certificates.example.names)
  name         = each.key
  key_vault_id = data.azurerm_key_vault.existing.id
}

Argument Reference

The following arguments are supported:

NOTE: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.

Attributes Reference

In addition to the arguments above, the following attributes are exported:


A certificates block supports following:

Timeouts

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