microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.45k stars 2.6k forks source link

Azure CLI task failed with exit code: 1 #17662

Closed vishnunagineni closed 1 year ago

vishnunagineni commented 1 year ago

2023-01-24T14:31:23.1070359Z ##[section]Starting: AzureCLI 2023-01-24T14:31:23.1086799Z ============================================================================== 2023-01-24T14:31:23.1087355Z Task : Azure CLI 2023-01-24T14:31:23.1087622Z Description : Run Azure CLI commands against an Azure subscription in a PowerShell Core/Shell script when running on Linux agent or PowerShell/PowerShell Core/Batch script when running on Windows agent. 2023-01-24T14:31:23.1088555Z Version : 2.215.0 2023-01-24T14:31:23.1088845Z Author : Microsoft Corporation 2023-01-24T14:31:23.1089166Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli 2023-01-24T14:31:23.1089638Z ============================================================================== 2023-01-24T14:31:23.3155823Z [command]/usr/bin/az --version 2023-01-24T14:31:24.4933237Z azure-cli 2.44.1 2023-01-24T14:31:24.4934099Z 2023-01-24T14:31:24.4934636Z core 2.44.1 2023-01-24T14:31:24.4935362Z telemetry 1.0.8 2023-01-24T14:31:24.4935740Z 2023-01-24T14:31:24.4936202Z Extensions: 2023-01-24T14:31:24.4936815Z azure-devops 0.25.0 2023-01-24T14:31:24.4937453Z azure-cli-ml 1.41.0 2023-01-24T14:31:24.4937807Z 2023-01-24T14:31:24.4938284Z Dependencies: 2023-01-24T14:31:24.4938794Z msal 1.20.0 2023-01-24T14:31:24.4939430Z azure-mgmt-resource 21.1.0b1 2023-01-24T14:31:24.4939815Z 2023-01-24T14:31:24.4940393Z Python location '/opt/az/bin/python3' 2023-01-24T14:31:24.4941100Z Extensions directory '/opt/az/azcliextensions' 2023-01-24T14:31:24.4941493Z 2023-01-24T14:31:24.4942118Z Python (Linux) 3.10.8 (main, Jan 10 2023, 15:48:34) [GCC 11.3.0] 2023-01-24T14:31:24.4942572Z 2023-01-24T14:31:24.4943116Z Legal docs and information: aka.ms/AzureCliLegal 2023-01-24T14:31:24.4943508Z 2023-01-24T14:31:24.4943815Z 2023-01-24T14:31:24.4944348Z Your CLI is up-to-date. 2023-01-24T14:31:24.4972068Z Setting AZURE_CONFIG_DIR env variable to: /home/vsts/work/_temp/.azclitask 2023-01-24T14:31:24.5013010Z Setting active cloud to: AzureCloud 2023-01-24T14:31:24.5021072Z [command]/usr/bin/az cloud set -n AzureCloud 2023-01-24T14:31:24.9261995Z [command]/usr/bin/az login --service-principal -u --password= --tenant 3d42674c-0075-48f9-948e-51dc832919c2 --allow-no-subscriptions 2023-01-24T14:31:25.9764871Z [ 2023-01-24T14:31:25.9765722Z { 2023-01-24T14:31:25.9766279Z "cloudName": "AzureCloud", 2023-01-24T14:31:25.9767262Z "homeTenantId": "3d42674c-0075-48f9-948e-51dc832919c2", 2023-01-24T14:31:25.9768041Z "id": "cf623b39-75d1-4087-b7c4-dc917b99e483", 2023-01-24T14:31:25.9768645Z "isDefault": true, 2023-01-24T14:31:25.9769173Z "managedByTenants": [], 2023-01-24T14:31:25.9769872Z "name": "Visual Studio Enterprise Subscription – MPN", 2023-01-24T14:31:25.9770463Z "state": "Enabled", 2023-01-24T14:31:25.9771147Z "tenantId": "3d42674c-0075-48f9-948e-51dc832919c2", 2023-01-24T14:31:25.9771929Z "user": { 2023-01-24T14:31:25.9773146Z "name": "***", 2023-01-24T14:31:25.9773732Z "type": "servicePrincipal" 2023-01-24T14:31:25.9774241Z } 2023-01-24T14:31:25.9774714Z } 2023-01-24T14:31:25.9775144Z ] 2023-01-24T14:31:25.9799716Z [command]/usr/bin/az account set --subscription cf623b39-75d1-4087-b7c4-dc917b99e483 2023-01-24T14:31:26.4252885Z [command]/usr/bin/bash /home/vsts/work/_temp/azureclitaskscript1674570683307.sh 2023-01-24T14:31:28.4385711Z ERROR: 'RequestsTransportResponse' object has no attribute 'url' 2023-01-24T14:31:28.6218264Z ##[error]Script failed with exit code: 1 2023-01-24T14:31:28.6237052Z [command]/usr/bin/az account clear 2023-01-24T14:31:29.1529559Z ##[section]Finishing: AzureCLI Screenshot (206)

Could you please help me in finding the error in that?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days