not able to use extension in pipeline

R C VIJAY 0 Reputation points
2024-06-07T14:42:40.5433333+00:00

I am getting error in configuring terraform pipeline, its not allowing to save the pipeline config

error:

A task is missing. The pipeline references a task called 'CmdLine'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 2, job 'Job', step ''.)

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
277 questions
{count} votes

1 answer

Sort by: Most helpful
  1. v-vvellanki-MSFT 4,920 Reputation points Microsoft Vendor
    2024-06-07T16:23:54.7433333+00:00

    Hi @R C VIJAY,

    Thanks for contacting Microsoft Q&A platform.

    The error message you're encountering indicates that the Azure DevOps pipeline is referencing a task called 'CmdLine', but it is not available in your environment. This usually happens because the task is not installed or not included in your organization.

    You may check below troubleshooting steps.

    1. Verify the Task Definition: Ensure that your pipeline YAML file correctly references the 'CmdLine' task. The correct reference for the CmdLine task should look like this:
         - task: CmdLine@2
           inputs:
             script: 'echo Hello, world!'
         
      
    2. Check Azure DevOps Marketplace:
    • Visit Azure DevOps Marketplace.
    • Use the search bar to find the 'CmdLine' task. If the task is available, you should see it listed there.
    • If the 'CmdLine' task is available in the marketplace, install it to your Azure DevOps organization.
      1. Verify Task Installation:
    • Go to your Azure DevOps organization.
    • Click on the organization settings (gear icon).
    • Under 'Extensions', verify that the 'CmdLine' task is listed and enabled.

    Then re-run your pipeline.
    Hope this helps you.

    0 comments No comments

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.