Hello Julie Jensen,
Welcome to Microsoft Q&A, Even though you're using Validation deployment mode, resources might still get created because the AzureResourceManagerTemplateDeployment@3 triggers a deployment rg operation not just a dry-run validation. In Azure Pipelines, this task doesn't strictly isolate validation from execution unless explicitly scoped. The Validation mode checks the template's syntax and resource availability, but if the resource group doesn't exist, it will be created.
However, actual resources (like your Container App and Environment) should not be created unless the deployment action is misconfigured or the pipeline overrides the mode internally.
To avoid unintended resource creation you can use What-If analysis via Azure CLI or PowerShell for safer template previews as instance:
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: AzureCLI@2
inputs:
azureSubscription: '<your-service-connection>'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
az deployment group what-if \
--resource-group <your-resource-group> \
--template-file <your-template-file>.json \
--parameters <your-parameters-file>.json
displayName: 'ARM Template What-If Validation'
Reference:
- https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-resource-manager-template-deployment-v3?view=azure-pipelines
- https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-what-if
If this resolves your question, please accept the answer.
Luis