Azure ARM templates - Linked templates with VSTS Git

笑着哭i 提交于 2019-12-11 01:14:16

问题


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?


回答1:


its not achievable without hacks, be it github, vsts whatever. if you need authentication its not possible without hacks.




回答2:


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

Deploying ARM Templates with Artifacts Located in a Private GitHub Repository

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


来源:https://stackoverflow.com/questions/46644690/azure-arm-templates-linked-templates-with-vsts-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!