我在使用Azure时遇到了一些问题。
最令人烦恼的是,每次尝试将Web App部署到Web App失败后,我都必须删除它,因为它卡住了,没有任何东西可以使它再次运行。这很糟糕,但是可以忍受,至少我可以删除它们并重新创建。
2020-09-22T16:43:04.986Z INFO - Stopping site <web-app-name> because it failed during startup.
我使用来自Azure DevOps的CI \ CD,它运行良好(您不会相信,但是来自Azure的东西确实有效)。
在最后一步,它使用AzureRmWebAppDeployment@4
任务部署容器,该任务假定将容器部署到Web App。
当我尝试使用“私有注册表”时,它只会忽略它,并且不会保存我的更改,而是将其返回给公共Azure注册表
好的,可能应该在内部运行,并且UI不对应更改。无论如何,我得到的是:
2020-09-22T16:43:04.467Z ERROR - Pulling docker image <repo-name>:latest failed:
2020-09-22T16:43:04.468Z INFO - Pulling image from Docker hub: library/<repo-name>:latest
2020-09-22T16:43:04.963Z ERROR - DockerApiException: Docker API responded with status code=NotFound, response={"message":"pull access denied for <repo-name>, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}
好的,但是我在Web App配置中指定了所有凭据
从这里拿走它们,所以我100%确信它是正确的(我删除了数据,但是它在那里)
Registry Container credentials
因此,由于Azure中没有任何东西可以按预期工作,因此是否有任何黑客手段可以使其从Azure存储库中提取图像并部署到Web App中?
所有应用程序都共享相同的订阅,所有CI \ CD都是通过UI构建的,因此我没有机会犯任何错字或愚蠢的事情。
我尝试了Stackoverflow和Github问题中的所有内容,仍然没有运气。