May 20 16:41:46 172.20.1.1 core[31537]: 2021-05-20T16:41:46Z [ERROR] [/replication/adapter/native/adapter.go:126]: failed to ping registry https://<registry-name-redacted>: http status code: 401, body: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information."}]} May 20 16:45:06 172.20.1.1 core[31537]: 2021-05-20T16:45:06Z [ERROR] [/replication/operation/controller.go:103]: the execution 5 failed: failed to fetch artifacts: failed to fetch artifacts: failed to list artifacts of repository <repository-name-redacted>: http status code: 401, body: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"redacted","Action":"metadata_read"}]}]}
Although the error message may seem to hint that authentication is the issue, the real issue here is one caused by authorization and more specifically, missing permissions. Read the resolution section to find out more about how to isolate this problem.