Skip to content

ERROR: 'annotate' is misspelled or not recognized by the system. #592

@escherstair

Description

@escherstair

I use a DockerCLI@2 task in my Azure DevOps pipeline (MS Hosted ubuntu-latest), with the following content

          - task: AzureCLI@2
            displayName: "Annotate image with dummy words"
            condition: succeeded()  # push ok
            inputs:
              azureSubscription: $(azureResourceManagerServiceConnection)  # Service Connection which uses Azure Resource Manager App with AcrDelete and AcrPull rights over ACR
              scriptType: bash
              scriptLocation: inlineScript
              inlineScript: |
                export ACR_EXPERIMENTAL_ANNOTATE=true
                az acr annotate \
                  --registry $(acrName) \
                  --filter "$(containerName):$(tag)" \
                  --annotation "vnd.myorganization.image.end-of-life=2026-12-31T00:00:00Z" 

but I get the error

ERROR: 'annotate' is misspelled or not recognized by the system.

Where is my mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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