Accessing the deployment output in the pipeline
At times, you need to access one of the deployment outputs in the other steps in your pipeline. Perhaps you want to access the web app's URL to perform some automated tests, or a function app URL to be called later to seed some data. Regardless of the reason, you need to know how to access these outputs.
Receiving outputs from a deployment
You can use the Azure CLI or PowerShell to get the outputs from a deployment. If you're using the Azure CLI, the following command would get the appURL
output from our deployment:
az deployment group show \ -g Bicep \ -n BicepDeployment \ --query properties.outputs.appURL.value
If you are running the preceding command in a PowerShell-based window, replace \
with '
.
Using Azure PowerShell, the command would be as follows:
(Get-AzResourceGroupDeployment ' -ResourceGroupName Bicep ' -Name BicepDeployment...