Question 430
A deployment named `app-prod-081` has succeeded in resource group `rg-apps`. Its Bicep file declares `output endpointUrl string = web.properties.defaultHostName`. A downstream CI/CD stage needs that exact endpoint value, but it is not automatically available as an environment variable. Which step retrieves the declared result reliably for the downstream stage?
Explanation
Correct Answer
Deployment outputs are stored under `properties.outputs`, with each named output's result in its `value` member. Querying the specific successful group deployment returns endpointUrl; the pipeline must then explicitly map that value for the later stage.
Incorrect Answers
Bicep output declarations produce deployment results; they are not automatically materialized as resource-group tags. Unless the template explicitly writes a tag, reading rg-apps tags does not retrieve endpointUrl.
A web app default hostname is a Microsoft.Web site property exposed through the deployment output, not a VM NIC inventory field. Listing unrelated VM adapters cannot reliably supply that declared Bicep result.
The execution was a resource-group deployment, and its output belongs to that named group deployment's record. A subscription deployment lookup is the wrong scope and lacks the stated resource-group deployment identity.