使用 VSTS 我可以安装下拉列表中列出的扩展之外的扩展吗?
Using VSTS can I install extensions other than those listed in the dropdown?
我想安装一个 Web 应用程序扩展作为我的 VSTS 的一部分 build/deployment。选项列表仅包含几个选项(主要是 Python)。 How/can 我安装了其他扩展?
您可以使用 powershell\arm templates\rest 调用来做到这一点。这些不是本地步骤,因此需要研究。
几个例子:
http://wp.sjkp.dk/install-azure-site-extensions-with-arm-template/
https://gist.github.com/sethreidnz/aa996f91339bafdfb5ecb1d4681ba26c/
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/app-service-web/app-service-web-arm-with-msdeploy-provision.md
Azure App Service Manage 任务中的值是静态的,您可以 select 它们,但您可以参考源代码:AzureAppServiceManage to custom build/release task 以包含您想要的扩展。
您也可以通过 kudu API:
安装必要的扩展
SiteExtensions
GET /api/extensionfeed List all extension package infos available on
the online (remote) server. The following query strings are
supported.
- filter: matching string
GET /api/siteextensions List all extension package infos currently
installed. The following query strings are supported.
- filter: matching string
GET /api/extensionfeed/{id} Get a package info with {id} from remote
store.
GET /api/siteextensions/{id} Get a package info with {id} currently
installed.
PUT /api/siteextensions/{id} Install or update the package to local
machine. The payload is the package info returned by List/Get apis
above.
DELETE /api/siteextensions/{id} Uninstall the package with {id}.
一篇关于 Install Azure App Extension With Powershell 的文章。
有一个线程调用 Kudu API 可以帮助你:
我想安装一个 Web 应用程序扩展作为我的 VSTS 的一部分 build/deployment。选项列表仅包含几个选项(主要是 Python)。 How/can 我安装了其他扩展?
您可以使用 powershell\arm templates\rest 调用来做到这一点。这些不是本地步骤,因此需要研究。
几个例子:
http://wp.sjkp.dk/install-azure-site-extensions-with-arm-template/
https://gist.github.com/sethreidnz/aa996f91339bafdfb5ecb1d4681ba26c/
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/app-service-web/app-service-web-arm-with-msdeploy-provision.md
Azure App Service Manage 任务中的值是静态的,您可以 select 它们,但您可以参考源代码:AzureAppServiceManage to custom build/release task 以包含您想要的扩展。
您也可以通过 kudu API:
安装必要的扩展SiteExtensions
GET /api/extensionfeed List all extension package infos available on the online (remote) server. The following query strings are supported. - filter: matching string
GET /api/siteextensions List all extension package infos currently installed. The following query strings are supported. - filter: matching string
GET /api/extensionfeed/{id} Get a package info with {id} from remote store.
GET /api/siteextensions/{id} Get a package info with {id} currently installed.
PUT /api/siteextensions/{id} Install or update the package to local machine. The payload is the package info returned by List/Get apis above.
DELETE /api/siteextensions/{id} Uninstall the package with {id}.
一篇关于 Install Azure App Extension With Powershell 的文章。
有一个线程调用 Kudu API 可以帮助你: