欢迎光临散文网 会员登陆 & 注册

Azure App Service也比Azure Pipeline好用太多了吧

2022-05-01 00:38 作者:澄不空  | 我要投稿

今天忍不住趁假期补一补前两天因为FHL期间请假而没来得及做的东西。从部署一个Web Service到Azure开始。

结果,ASP.Net (.net core)的hello world建出来之后,死活弄不到Azure App Service上去。先是build pipeline需要concurrency额度,申请免费额度要等三天;用公司送的Visual Studio Enterprise Subscription需要取消spending limit。想了想每天担心爆信用卡的恐惧,还是没狠下心来取消spending limit。于是只好去折腾self-hosted agent pool。

结果,装agent也各种问题,超复杂,超繁琐,尝试了各种配置,最后还是在host machine需要保留一个弹窗的前提下配置好了self-hosted agent。如果把agent装成service就启动不了总是出错。

然后呢,基于Azure Resrouce Manager的release pipeline又是一堆复杂的配置问题,不认我的subscription。

然后,我就直接从Visual Studio publish呢。也失败了。HTTP 5xx.

最后,打开Azure App Service的portal,发现有一个叫deployment center的东西,似乎有一套独立于Azure Pipeline的东西可以简单直接部署,于是,抱着死马当活马医的心情,我就在下面这样的界面里点了几次鼠标:

Azure App Service: Deployment Center - Settings

于是,结果,最终,就:

Azure App Service: Deployment Center - Settings (Saved)

Azure App Service: Deployment Center - Logs
App service https response


Azure App Service也比Azure Pipeline好用太多了吧的评论 (共 条)

分享到微博请遵守国家法律