Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

Azure CLI step in Pipeline is stuck #23114

Open chriscordova opened 2 years ago

chriscordova commented 2 years ago

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command az container create --resource-group XXXXXX --file XXXX.yaml --restart-policy OnFailure

Describe the bug Using the Azure CLI step in Azure Pipelines, and it is stuck on that step. Has been working as expected with no issues this morning AEST.

To Reproduce

Expected behavior

Environment summary

Additional context

chriscordova commented 2 years ago

Creates container with status of 'Unhealthy' and below is the step it is stuck at... `Starting: Azure CLI

Task : Azure CLI 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. Version : 2.198.0 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli

/usr/bin/az --version WARNING: You have 2 updates available. Consider updating your CLI installation with 'az upgrade' azure-cli 2.37.0 *

Please let us know how we are doing: https://aka.ms/azureclihats and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy core 2.37.0 * telemetry 1.0.6

Extensions: azure-devops 0.25.0

Dependencies: msal 1.18.0b1 azure-mgmt-resource 21.1.0b1

Python location '/opt/az/bin/python3' Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.10.4 (main, May 23 2022, 14:03:08) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Setting AZURE_CONFIG_DIR env variable to: /home/vsts/work/_temp/.azclitask Setting active cloud to: AzureCloud /usr/bin/az cloud set -n AzureCloud /usr/bin/az login --service-principal -u --password= --tenant XXXXXXXXXXX --allow-no-subscriptions [ { "cloudName": "AzureCloud", "homeTenantId": "XXXXXXX", "id": "XXXXXX", "isDefault": true, "managedByTenants": [], "name": "XXXXX", "state": "Enabled", "tenantId": "XXXXXX", "user": { "name": "***", "type": "servicePrincipal" } } ] /usr/bin/az account set --subscription XXXXXXXXXX /usr/bin/bash /home/vsts/work/_temp/azureclitaskscript1657011671578.sh

`

yonzhan commented 2 years ago

route to CXP team

chriscordova commented 2 years ago

All is working now, i had removed the --restart-policy OnFailure tag from the az container command and has worked...has something changed for this not to work anymore?

SatishBoddu-MSFT commented 2 years ago

Thank you @chriscordova for the confirmation. we will get back on this.

SatishBoddu-MSFT commented 2 years ago

We are routing this to Service teams for further attention!

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @macolso.

Issue Details
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62 **Related command** az container create --resource-group XXXXXX --file XXXX.yaml --restart-policy OnFailure **Describe the bug** Using the Azure CLI step in Azure Pipelines, and it is stuck on that step. Has been working as expected with no issues this morning AEST. **To Reproduce** **Expected behavior** **Environment summary** **Additional context**
Author: chriscordova
Assignees: -
Labels: `Service Attention`, `Container Instances`, `customer-reported`, `CXP Attention`, `Auto-Assign`
Milestone: Backlog