Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
AzureContainerApps
Breaking task version
1.255.0
Last working task version
1.247.1
Regression Description
The task id no longer fomatting the AZ command correctly,
We get the error below (while using the same task params):
/usr/bin/az containerapp update -n ca-mgt-lz-t-weur-001 -g rg-mgt-lzautomation-t-weur -i cravrlzdweur001.azurecr.io/ado-task/container-app:13557.20250417.1
ERROR: Usage error: --container-name is required when adding or updating a container
##[error]Error Code: [1]
##[error]Error: Unable to update Azure Container App via 'az containerapp update' command.
Thanks.
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 24.04.2 LTS (ubuntu-latest)
Relevant log output
/usr/bin/az containerapp update -n ca-mgt-lz-t-weur-001 -g rg-mgt-lzautomation-t-weur -i cravrlzdweur001.azurecr.io/ado-task/container-app:13557.20250417.1
ERROR: Usage error: --container-name is required when adding or updating a container
##[error]Error Code: [1]
##[error]Error: Unable to update Azure Container App via 'az containerapp update' command.
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
SUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
Repro steps
pool:
vmImage: 'ubuntu-latest'
steps:
- task: AzureContainerApps@1
inputs:
appSourcePath: '$(Build.SourcesDirectory)'
azureSubscription: '{armServiceConnection}'
acrName: '{acrName}'
acrUsername: '{acrUserName}'
acrPassword: '{acrPwd}'
containerAppName: '{containerApp}'
resourceGroup: '{rgName}'
containerAppEnvironment: '{containerAppEnvName}'
location: 'West Europe'