I am trying to deploy an online endpoint using a model/environment from an ML Registry. The deployment is failing and in the logs I am seeing 401 errors. The online endpoint is using a user assigned id which I have verified has AzureML Registry User role. It seems like maybe a networking issue, but I'm not sure. The ACR backing the registry has public access enabled as does the registry itself, though the registry does have a private endpoint configured. Not sure if that matters.
Kind: Pod, Name: ImagePullFailed, Type: Warning, Time: 2026-08-14T00:19:57.025589Z, Message: Image pull failed, retrying. Please check image-fetcher log for detail.
Kind: Pod, Name: DownloadFailed, Type: Warning, Time: 2026-08-14T00:20:10.550807Z, Message: Model download failed, retrying. Please check storage-initializer log for detail.
Kind: Pod, Name: Pulling, Type: Normal, Time: 2026-08-14T00:20:13.724089Z, Message: Start pulling container image
Kind: Pod, Name: DownloadFailed, Type: Warning, Time: 2026-08-14T00:20:21.557221Z, Message: Model download failed, retrying. Please check storage-initializer log for detail.
Kind: Pod, Name: Downloading, Type: Normal, Time: 2026-08-14T00:20:35.694766Z, Message: Startdownloading models
Container logs:
+ '[' '!' -S /run/containerd/containerd.sock ']'
+ ./mir-imagefetcher
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:131","msg":"Use environment: AzurePublicCloud"}
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:157","msg":"Parse image name","ImageUrl":"b7869157b0a.azurecr.io/azureml/30aa9c9f-f60e-5330-b189-17a6f8fa1499/statements:11","repo":"b7869157b0a.azurecr.io/azureml/30aa9c9f-f60e-5330-b189-17a6f8fa1499/statements","tag":"11","digest":""}
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:290","msg":"Start getting image credential","ImageUrl":"b7869157b0a.azurecr.io/azureml/30aa9c9f-f60e-5330-b189-17a6f8fa1499/statements:11"}
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:320","msg":"Found user ACR image","ImageUrl":"b7869157b0a.azurecr.io/azureml/30aa9c9f-f60e-5330-b189-17a6f8fa1499/statements:11","IdentityType":"XDS"}
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:454","msg":"Request parameters","Registry":"b7869157b0a.azurecr.io","clientid":"f831ae94-ac82-435f-96e2-e5e88c20c870"}
{"level":"[WARN]","ts":"Aug 14 00:20:13","logger":"VMAgent","caller":"common/http_util.go:197","msg":"Http status code of response is not 2xx","HTTP status code":401}
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:509","msg":"Get challenge header","registry":"b7869157b0a.azurecr.io","Www-Authenticate":"Bearer realm=\https://b7869157b0a.azurecr.io/oauth2/token\,service=\"b7869157b0a.azurecr.io\""}
{"level":"[INFO]","ts":"Aug 14 00:20:13","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:514","msg":"Update login server","registry":"b7869157b0a.azurecr.io","service":"b7869157b0a.azurecr.io"}
{"level":"[WARN]","ts":"Aug 14 00:20:13","logger":"VMAgent","caller":"common/http_util.go:197","msg":"Http status code of response is not 2xx","HTTP status code":401}
{"level":"[WARN]","ts":"Aug 14 00:20:15","logger":"VMAgent","caller":"common/code_util.go:75","msg":"After attempt # 1, got error: exchange refresh token return non-success status: 401, details: "}