outputs.tf (18 lines of code) (raw):
output "identity" {
description = "Managed identities for the SQL MI instance. This is not available from the `resource` output because AzureRM doesn't yet support adding both User and System Assigned identities."
value = jsondecode(data.azapi_resource.identity.output).identity
}
output "private_endpoints" {
description = <<DESCRIPTION
A map of the private endpoints created.
DESCRIPTION
value = var.private_endpoints_manage_dns_zone_group ? azurerm_private_endpoint.this_managed_dns_zone_groups : azurerm_private_endpoint.this_unmanaged_dns_zone_groups
}
# Module owners should include the full resource via a 'resource' output
# https://azure.github.io/Azure-Verified-Modules/specs/terraform/#id-tffr2---category-outputs---additional-terraform-outputs
output "resource" {
description = "This is the full output for the resource."
value = azurerm_mssql_managed_instance.this
}
output "resource_id" {
description = "This is the resource ID of the resource."
value = azurerm_mssql_managed_instance.this.id
}