Skip to content

[BUG]: AzureCLI Task Failing with Exit Code -1073740791 #22201

@JoshHariz

Description

@JoshHariz

New issue checklist

Task name

AzureCLI@2

Task version

2.274.1

Issue Description

AzureCLI tasks are intermittently failing on startup. Seems to have started occurring around May 15th. Users have reported similar issues in #22195

Issue has been occurring more and more recently this week. As of writing, our deployment pipeline has failed three times in a row due to this issue- all on different steps which are all AzureCLI tasks

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

Windows 10 Server

Relevant log output

2026-05-25T01:30:46.1185641Z ##[section]Starting: Check if table exists - ErrorSetting
2026-05-25T01:30:46.1195350Z ==============================================================================
2026-05-25T01:30:46.1195521Z Task         : Azure CLI
2026-05-25T01:30:46.1195630Z 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.
2026-05-25T01:30:46.1195876Z Version      : 2.274.1
2026-05-25T01:30:46.1195982Z Author       : Microsoft Corporation
2026-05-25T01:30:46.1196086Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli
2026-05-25T01:30:46.1196239Z ==============================================================================
2026-05-25T01:30:46.5085269Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" version"
2026-05-25T01:30:46.9892860Z {
2026-05-25T01:30:46.9915081Z   "azure-cli": "2.84.0",
2026-05-25T01:30:47.0068997Z   "azure-cli-core": "2.84.0",
2026-05-25T01:30:47.0252057Z   "azure-cli-telemetry": "1.1.0",
2026-05-25T01:30:47.1144899Z   "extensions": {}
2026-05-25T01:30:47.1272460Z }
2026-05-25T01:30:47.1288015Z Setting AZURE_CONFIG_DIR env variable to: C:\a\_temp\.azclitask
2026-05-25T01:30:47.1288470Z Setting active cloud to: AzureCloud
2026-05-25T01:30:47.1616530Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" cloud set -n AzureCloud"
2026-05-25T01:30:47.7846122Z ##[error]Exit code -1073740791 returned from process: file name 'C:\agent\externals\node24\bin\node.exe', arguments '"C:\a\_tasks\AzureCLI_46e4be58-730b-4389-8a2f-ea10b3e5e815\2.274.1\azureclitask.js"'.
2026-05-25T01:30:47.7857693Z ##[section]Finishing: Check if table exists - ErrorSetting

Full task logs with system.debug enabled

Issue occurs intermittently- unable to gather logs

Repro steps

Issue occurs intermittently- unable to gather logs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions