Azure CLI path issue

Varma 1,390 Reputation points
2024-02-25T06:14:48.5966667+00:00

azure-arm.autogenerated_1: Running builder ... azure-arm.autogenerated_1: Creating Azure Resource Manager (ARM) client ... Build 'azure-arm.autogenerated_1' errored after 4 milliseconds 601 microseconds: building Resource Manager authorizer from credentials: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH% ==> Wait completed after 4 milliseconds 601 microseconds ==> Some builds didn't complete successfully and had errors: --> azure-arm.autogenerated_1: building Resource Manager authorizer from credentials: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH% ==> Builds finished but no artifacts were created. Please suggest on above error

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,558 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,761 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 111.5K Reputation points
    2024-02-25T06:31:08.02+00:00

    Hi,

    Please check if Azure CLI is still in path and working. At windows command prompt (cmd.exe), or powershell prompt, enter below command:

    az --version
    

    This should return the Azure CLI version information. If you get an error and it display any information, that typically means Azure CLI isn't in the path or not installed.

    Check that Azure CLI is still in the PATH environment variable:

    At window command prompt (cmd.exe), enter following command:

    path
    

    You should see long string that is wrapped onto multiple lines, each path separated by semicolons. The correct path to Azure CLI should be in there, something like C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin

    Please click Accept Answer and upvote if above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.