Skip to content

Outputs

Rod Christiansen edited this page Oct 8, 2026 · 3 revisions

Outputs

The root module exposes six outputs. All of them concern the optional Function App or the maintenance job — there are no root outputs for the dashboard URL, the API URL, the database FQDN or the Key Vault URI, even though the submodules produce them.

Root outputs

Name Type Description
function_app_name string or null Name of the Function App. null unless enable_functions is true
function_app_url string or null Default hostname of the Function App. null unless enable_functions is true. This is the hostname, not a URL with a scheme
function_app_identity_principal_id string or null Principal ID of the Function App's system-assigned identity. null unless enable_functions is true
maintenance_job_name string Name of the database maintenance Container App Job
maintenance_schedule string Cron schedule of the maintenance job
maintenance_job_id string Resource ID of the maintenance Container App Job

None are marked sensitive.

Reaching the things that are not output

Get these from the CLI, or add your own output block referencing the submodule.

What you want Submodule output CLI alternative
Dashboard URL module.containers.frontend_url az containerapp show --name <frontend app> --resource-group rg-reportmate-prod --query properties.configuration.ingress.fqdn -o tsv
API URL module.containers.api_url same, with the API app name
PostgreSQL FQDN module.database.postgres_fqdn az postgres flexible-server show --name <server> --resource-group rg-reportmate-prod --query fullyQualifiedDomainName -o tsv
Key Vault URI module.key_vault[0].key_vault_uri az keyvault show --name kv-reportmate-prod --query properties.vaultUri -o tsv
Entra client ID module.auth.application_id az ad app list --display-name ReportMate --query "[].appId" -o tsv
Front Door endpoint module.networking[0].front_door_endpoint az afd endpoint show --profile-name reportmate-frontdoor --endpoint-name reportmate-endpoint --resource-group rg-reportmate-prod --query hostName -o tsv

Submodule outputs

Every output of every submodule, with the expression behind it and whether it is sensitive, is listed on Submodules. Use that page when you consume a submodule directly or add a root output.

Clone this wiki locally