Skip to content

[ACR] Fix #17618: Update credential add/update handling for tasks created using --auth-mode#17715

Merged
fengzhou-msft merged 2 commits intoAzure:devfrom
AzureCR:jeburke/task-credential
Apr 26, 2021
Merged

[ACR] Fix #17618: Update credential add/update handling for tasks created using --auth-mode#17715
fengzhou-msft merged 2 commits intoAzure:devfrom
AzureCR:jeburke/task-credential

Conversation

@jaysterp
Copy link
Copy Markdown
Member

Description

Fixes #17618.
Fixes the sample for creating a task with --auth-mode None.

Testing Guide

  1. Create task a valid --auth-mode value.
    az acr task create -t hello-world:{{.Run.ID}} -n hello-world -r MyRegistry -f Dockerfile \ --no-push true --auth-mode None -c https://github.com/Azure-Samples/acr-build-helloworld-node.git \ --git-access-token 000000000000000000000000000000000 --assign-identity
  2. Add custom registry credential
    az acr task credential add --login-server myotherregistry.azurecr.io --use-identity [system]

Previously, az acr task credential add and az acr task credential update crashed.

History Notes


This checklist is used to make sure that common guidelines for a pull request are followed.

Copy link
Copy Markdown
Member

@northtyphoon northtyphoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fengzhou-msft fengzhou-msft merged commit ba16ce5 into Azure:dev Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az acr task credential add crashes

4 participants