azapi_resource output is “{}”

Jake Ginnivan
Sep 12, 2022

--

When using azapi_resource in terraform, I got the error

azapi_resource.container_app.output is “{}”

When trying to read the output using the following code

jsondecode(azapi_resource.container_app.output).properties.configuration.ingress.fqdn

If this happens to you, you have missed response_export_values = ["*"] in your resource

--

--

Jake Ginnivan
Jake Ginnivan

Written by Jake Ginnivan

Co-Founder featureboard.app | Principal Consultant arkahna.io | Previously Tech Lead Seven West Media WA | International Speaker | OSS | Mentor

No responses yet