AppServices Pipeline: Deployment fails "Authentication required"

Alexander Lindgren 31 Reputation points
2021-11-15T12:15:00.28+00:00

Trying to deploy a Docker image by following this guide, however I'm running into unauthorized errors in the log when trying to go to the URL of the app, any ideas how to fix this?

My deployment setup in the pipeline:
Ska-rmavbild-2021-11-15-kl-13-14-10.png

The logs:
2021-11-15T12:11:12.240Z INFO - Pulling image: fileservicegithubcontainerregistry.azurecr.io/fileservicegithubcontainerregistry.azurecr.io/allinwsazureci:latest
2021-11-15T12:11:12.958Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://fileservicegithubcontainerregistry.azurecr.io/v2/fileservicegithubcontainerregistry.azurecr.io/allinwsazureci/manifests/latest: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information."}

2021-11-15T12:11:13.765Z ERROR - Pull image threw Exception: Input string was not in a correct format.
2021-11-15T12:11:13.773Z INFO  - Pulling image from Docker hub: fileservicegithubcontainerregistry.azurecr.io/fileservicegithubcontainerregistry.azurecr.io/allinwsazureci:latest

2021-11-15T12:11:14.360Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://fileservicegithubcontainerregistry.azurecr.io/v2/fileservicegithubcontainerregistry.azurecr.io/allinwsazureci/manifests/latest: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information."}

2021-11-15T12:11:14.364Z WARN  - Image pull failed. Defaulting to local copy if present.
2021-11-15T12:11:14.367Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)

2021-11-15T12:11:17.095Z INFO  - Stopping site fileservicegitci because it failed during startup.
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,694 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pramod Valavala 20,616 Reputation points Microsoft Employee
    2021-11-23T04:39:44.287+00:00

    Hi @Alexander Lindgren

    Welcome to Microsoft Q&A! Thanks for posting the question.

    DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can ask the experts in the dedicated forum over here:
    https://stackoverflow.com/questions/tagged/devops
    https://developercommunity.visualstudio.com/spaces/21/index.html

    0 comments No comments

  2. Sander de Koning 1 Reputation point
    2022-01-26T14:38:13.77+00:00

    Reverted back to v3 of the Azure App Service deploy task fixed the issue for me.

    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.