Open
Description
What happened?
Due to known bug reported in azure devops extension 1.0.1 here: Azure/azure-cli-extensions#8900, the azure devops extension in the managed build agent needs to be upgraded to 1.0.2.
see the step to reproduce the issue.
pipeline script. See the deprecation warning when the azure devops extension is at version 1.0.1
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
az --version
az login --service-principal --username $(ARM_CLIENT_ID) --password $(ARM_CLIENT_SECRET) --tenant $(ARM_TENANT_ID)
az extension update --name azure-devops
az --version
az login --service-principal --username $(ARM_CLIENT_ID) --password $(ARM_CLIENT_SECRET) --tenant $(ARM_TENANT_ID)
displayName: 'Run a multi-line script'
Output
2025-06-27T19:08:59.6795344Z ##[section]Starting: Run a multi-line script
2025-06-27T19:08:59.6801050Z ==============================================================================
2025-06-27T19:08:59.6801226Z Task : Command line
2025-06-27T19:08:59.6801320Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2025-06-27T19:08:59.6801606Z Version : 2.250.1
2025-06-27T19:08:59.6801704Z Author : Microsoft Corporation
2025-06-27T19:08:59.6801813Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2025-06-27T19:08:59.6801949Z ==============================================================================
2025-06-27T19:08:59.8477291Z Generating script.
2025-06-27T19:08:59.8483903Z ========================== Starting Command Output ===========================
2025-06-27T19:08:59.8496663Z [command]/usr/bin/bash --noprofile --norc /mnt/vss/_work/_temp/ed86a179-6d73-4089-8214-e235f5a417a5.sh
2025-06-27T19:08:59.8561566Z Add other tasks to build, test, and deploy your project.
2025-06-27T19:08:59.8564522Z See https://aka.ms/yaml
2025-06-27T19:09:00.6804206Z azure-cli 2.74.0
2025-06-27T19:09:00.6806943Z
2025-06-27T19:09:00.6808043Z core 2.74.0
2025-06-27T19:09:00.6843955Z telemetry 1.1.0
2025-06-27T19:09:00.6844649Z
2025-06-27T19:09:00.6845557Z Extensions:
2025-06-27T19:09:00.6846542Z azure-devops 1.0.1
2025-06-27T19:09:00.6847219Z
2025-06-27T19:09:00.6848131Z Dependencies:
2025-06-27T19:09:00.6849093Z msal 1.32.3
2025-06-27T19:09:00.6850172Z azure-mgmt-resource 23.3.0
2025-06-27T19:09:00.6850935Z
2025-06-27T19:09:00.6851909Z Python location '/opt/az/bin/python3'
2025-06-27T19:09:00.6852875Z Config directory '/home/AzDevOps/.azure'
2025-06-27T19:09:00.6853607Z Extensions directory '/opt/az/azcliextensions'
2025-06-27T19:09:00.6853943Z
2025-06-27T19:09:00.6854761Z Python (Linux) 3.12.10 (main, May 27 2025, 09:12:37) [GCC 13.3.0]
2025-06-27T19:09:00.6855202Z
2025-06-27T19:09:00.6855831Z Legal docs and information: aka.ms/AzureCliLegal
2025-06-27T19:09:00.6856150Z
2025-06-27T19:09:00.6856334Z
2025-06-27T19:09:00.6856863Z Your CLI is up-to-date.
2025-06-27T19:09:03.4743656Z /opt/az/azcliextensions/azure-devops/azext_devops/dev/__init__.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
2025-06-27T19:09:03.4745693Z import pkg_resources
2025-06-27T19:09:05.6899732Z [
2025-06-27T19:09:05.6904503Z {
2025-06-27T19:09:05.6904862Z "cloudName": "AzureCloud",
2025-06-27T19:09:05.6906420Z "homeTenantId": "***",
2025-06-27T19:09:05.6906862Z "id": "***",
2025-06-27T19:09:05.6907232Z "isDefault": true,
2025-06-27T19:09:05.6907545Z "managedByTenants": [],
2025-06-27T19:09:05.6908183Z "name": "XXXXXXXX",
2025-06-27T19:09:05.6908589Z "state": "Enabled",
2025-06-27T19:09:05.6909001Z "tenantId": "***",
2025-06-27T19:09:05.6909287Z "user": {
2025-06-27T19:09:05.6909643Z "name": "***",
2025-06-27T19:09:05.6910008Z "type": "servicePrincipal"
2025-06-27T19:09:05.6910354Z }
2025-06-27T19:09:05.6910577Z }
2025-06-27T19:09:05.6910884Z ]
2025-06-27T19:09:11.5988841Z azure-cli 2.74.0
2025-06-27T19:09:11.5993234Z
2025-06-27T19:09:11.6006389Z core 2.74.0
2025-06-27T19:09:11.6024264Z telemetry 1.1.0
2025-06-27T19:09:11.6024766Z
2025-06-27T19:09:11.6025274Z Extensions:
2025-06-27T19:09:11.6025836Z azure-devops 1.0.2
2025-06-27T19:09:11.6026286Z
2025-06-27T19:09:11.6026827Z Dependencies:
2025-06-27T19:09:11.6027443Z msal 1.32.3
2025-06-27T19:09:11.6028015Z azure-mgmt-resource 23.3.0
2025-06-27T19:09:11.6028636Z
2025-06-27T19:09:11.6029188Z Python location '/opt/az/bin/python3'
2025-06-27T19:09:11.6030242Z Config directory '/home/AzDevOps/.azure'
2025-06-27T19:09:11.6030844Z Extensions directory '/opt/az/azcliextensions'
2025-06-27T19:09:11.6031251Z
2025-06-27T19:09:11.6032165Z Python (Linux) 3.12.10 (main, May 27 2025, 09:12:37) [GCC 13.3.0]
2025-06-27T19:09:11.6033287Z
2025-06-27T19:09:11.6033847Z Legal docs and information: aka.ms/AzureCliLegal
2025-06-27T19:09:11.6034265Z
2025-06-27T19:09:11.6034545Z
2025-06-27T19:09:11.6035102Z Your CLI is up-to-date.
2025-06-27T19:09:13.6649018Z [
2025-06-27T19:09:13.6654683Z {
2025-06-27T19:09:13.6655376Z "cloudName": "AzureCloud",
2025-06-27T19:09:13.6657595Z "homeTenantId": "***",
2025-06-27T19:09:13.6661646Z "id": "***",
2025-06-27T19:09:13.6664419Z "isDefault": true,
2025-06-27T19:09:13.6664842Z "managedByTenants": [],
2025-06-27T19:09:13.6666548Z "name": "XXXXXXX",
2025-06-27T19:09:13.6666953Z "state": "Enabled",
2025-06-27T19:09:13.6673890Z "tenantId": "***",
2025-06-27T19:09:13.6674226Z "user": {
2025-06-27T19:09:13.6674507Z "name": "***",
2025-06-27T19:09:13.6674877Z "type": "servicePrincipal"
2025-06-27T19:09:13.6675147Z }
2025-06-27T19:09:13.6675364Z }
2025-06-27T19:09:13.6675578Z ]
2025-06-27T19:09:14.0950078Z
2025-06-27T19:09:14.1014990Z ##[section]Finishing: Run a multi-line script
Versions
Version : 2.250.1
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
Version controll system
No response
Relevant log output
2025-06-27T19:08:59.6795344Z ##[section]Starting: Run a multi-line script
2025-06-27T19:08:59.6801050Z ==============================================================================
2025-06-27T19:08:59.6801226Z Task : Command line
2025-06-27T19:08:59.6801320Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2025-06-27T19:08:59.6801606Z Version : 2.250.1
2025-06-27T19:08:59.6801704Z Author : Microsoft Corporation
2025-06-27T19:08:59.6801813Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2025-06-27T19:08:59.6801949Z ==============================================================================
2025-06-27T19:08:59.8477291Z Generating script.
2025-06-27T19:08:59.8483903Z ========================== Starting Command Output ===========================
2025-06-27T19:08:59.8496663Z [command]/usr/bin/bash --noprofile --norc /mnt/vss/_work/_temp/ed86a179-6d73-4089-8214-e235f5a417a5.sh
2025-06-27T19:08:59.8561566Z Add other tasks to build, test, and deploy your project.
2025-06-27T19:08:59.8564522Z See https://aka.ms/yaml
2025-06-27T19:09:00.6804206Z azure-cli 2.74.0
2025-06-27T19:09:00.6806943Z
2025-06-27T19:09:00.6808043Z core 2.74.0
2025-06-27T19:09:00.6843955Z telemetry 1.1.0
2025-06-27T19:09:00.6844649Z
2025-06-27T19:09:00.6845557Z Extensions:
2025-06-27T19:09:00.6846542Z azure-devops 1.0.1
2025-06-27T19:09:00.6847219Z
2025-06-27T19:09:00.6848131Z Dependencies:
2025-06-27T19:09:00.6849093Z msal 1.32.3
2025-06-27T19:09:00.6850172Z azure-mgmt-resource 23.3.0
2025-06-27T19:09:00.6850935Z
2025-06-27T19:09:00.6851909Z Python location '/opt/az/bin/python3'
2025-06-27T19:09:00.6852875Z Config directory '/home/AzDevOps/.azure'
2025-06-27T19:09:00.6853607Z Extensions directory '/opt/az/azcliextensions'
2025-06-27T19:09:00.6853943Z
2025-06-27T19:09:00.6854761Z Python (Linux) 3.12.10 (main, May 27 2025, 09:12:37) [GCC 13.3.0]
2025-06-27T19:09:00.6855202Z
2025-06-27T19:09:00.6855831Z Legal docs and information: aka.ms/AzureCliLegal
2025-06-27T19:09:00.6856150Z
2025-06-27T19:09:00.6856334Z
2025-06-27T19:09:00.6856863Z Your CLI is up-to-date.
2025-06-27T19:09:03.4743656Z /opt/az/azcliextensions/azure-devops/azext_devops/dev/__init__.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
2025-06-27T19:09:03.4745693Z import pkg_resources
2025-06-27T19:09:05.6899732Z [
2025-06-27T19:09:05.6904503Z {
2025-06-27T19:09:05.6904862Z "cloudName": "AzureCloud",
2025-06-27T19:09:05.6906420Z "homeTenantId": "***",
2025-06-27T19:09:05.6906862Z "id": "***",
2025-06-27T19:09:05.6907232Z "isDefault": true,
2025-06-27T19:09:05.6907545Z "managedByTenants": [],
2025-06-27T19:09:05.6908183Z "name": "XXXXXXXX",
2025-06-27T19:09:05.6908589Z "state": "Enabled",
2025-06-27T19:09:05.6909001Z "tenantId": "***",
2025-06-27T19:09:05.6909287Z "user": {
2025-06-27T19:09:05.6909643Z "name": "***",
2025-06-27T19:09:05.6910008Z "type": "servicePrincipal"
2025-06-27T19:09:05.6910354Z }
2025-06-27T19:09:05.6910577Z }
2025-06-27T19:09:05.6910884Z ]
2025-06-27T19:09:11.5988841Z azure-cli 2.74.0
2025-06-27T19:09:11.5993234Z
2025-06-27T19:09:11.6006389Z core 2.74.0
2025-06-27T19:09:11.6024264Z telemetry 1.1.0
2025-06-27T19:09:11.6024766Z
2025-06-27T19:09:11.6025274Z Extensions:
2025-06-27T19:09:11.6025836Z azure-devops 1.0.2
2025-06-27T19:09:11.6026286Z
2025-06-27T19:09:11.6026827Z Dependencies:
2025-06-27T19:09:11.6027443Z msal 1.32.3
2025-06-27T19:09:11.6028015Z azure-mgmt-resource 23.3.0
2025-06-27T19:09:11.6028636Z
2025-06-27T19:09:11.6029188Z Python location '/opt/az/bin/python3'
2025-06-27T19:09:11.6030242Z Config directory '/home/AzDevOps/.azure'
2025-06-27T19:09:11.6030844Z Extensions directory '/opt/az/azcliextensions'
2025-06-27T19:09:11.6031251Z
2025-06-27T19:09:11.6032165Z Python (Linux) 3.12.10 (main, May 27 2025, 09:12:37) [GCC 13.3.0]
2025-06-27T19:09:11.6033287Z
2025-06-27T19:09:11.6033847Z Legal docs and information: aka.ms/AzureCliLegal
2025-06-27T19:09:11.6034265Z
2025-06-27T19:09:11.6034545Z
2025-06-27T19:09:11.6035102Z Your CLI is up-to-date.
2025-06-27T19:09:13.6649018Z [
2025-06-27T19:09:13.6654683Z {
2025-06-27T19:09:13.6655376Z "cloudName": "AzureCloud",
2025-06-27T19:09:13.6657595Z "homeTenantId": "***",
2025-06-27T19:09:13.6661646Z "id": "***",
2025-06-27T19:09:13.6664419Z "isDefault": true,
2025-06-27T19:09:13.6664842Z "managedByTenants": [],
2025-06-27T19:09:13.6666548Z "name": "XXXXXXX",
2025-06-27T19:09:13.6666953Z "state": "Enabled",
2025-06-27T19:09:13.6673890Z "tenantId": "***",
2025-06-27T19:09:13.6674226Z "user": {
2025-06-27T19:09:13.6674507Z "name": "***",
2025-06-27T19:09:13.6674877Z "type": "servicePrincipal"
2025-06-27T19:09:13.6675147Z }
2025-06-27T19:09:13.6675364Z }
2025-06-27T19:09:13.6675578Z ]
2025-06-27T19:09:14.0950078Z
2025-06-27T19:09:14.1014990Z ##[section]Finishing: Run a multi-line script