Azure ARM模板-带有VSTS Git的链接模板 [英] Azure ARM templates - Linked templates with VSTS Git

查看:60
本文介绍了Azure ARM模板-带有VSTS Git的链接模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主要的ARM模板,它引用了几个链接的ARM模板.每个ARM模板都托管在其自己的私有VSTS Git存储库中.部署主模板时,ARM引擎将需要向私有VSTS git repo进行身份验证.我已经看到了将内容存储在github中时如何实现的示例.可以使用VSTS git做同样的事情吗?如果可以,怎么做?

I have a have a main ARM template that refers to couple of linked ARM templates. Each of the ARM templates are hosted in their own private VSTS Git repo. When deploying the main template the ARM engine will need to authenticate to the private VSTS git repo. I have seen examples of how this can be achieved when the content is stored in github. Is it possible to do the same thing with VSTS git and if yes how?

推荐答案

有一种变通方法,可以使用Azure Function应用程序通过私有存储库部署ARM模板:

There is the workaround for deploying ARM template with private Repository by using Azure Function app:

顺便说一句:我可以通过邮递员使用以下链接来访问文件,但不能通过互联网浏览器访问.

BTW: I can access the file by using this link below through Postman, but can’t access through internet browser.

https://test:[accesstoken]@[account].VisualStudio.com/DefaultCollection/[project]/_apis/git/repositories/[repository]/items?scopePath=/helloword.json&api-version=1.0&$format=Text

这篇关于Azure ARM模板-带有VSTS Git的链接模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆