问题
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