Azure / Azure/acr-cli

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

Open
#592 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
70
Forks
52
Avg merge
3d 2h
Merged PRs (30d)
12

Description

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

```yaml
- 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.