从Linux计算机上的私有Azure DevOps存储库安装文件 [英] Install file from private Azure DevOps Repo on Linux Machine

查看:190
本文介绍了从Linux计算机上的私有Azure DevOps存储库安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我可以在本地编辑文件,但不确定如何复制到框上,即我将无法访问ssh,并且不能使用 我很乐意在此提供建议/指针

    解决方案

    您好,MetaMorphDeus,

    关于第一个问题,

    您要克隆整个存储库还是仅克隆一个文件?

    如果您要查找一个文件,则可以使用azure文件进行存储.将该文件下载到vm会更容易.

    关于第二个问题,

    您可以使用 扩展.可以将扩展添加到Windows和Linux虚拟机.在创建计算机时,用户可以将扩展添加到其虚拟机中.您还可以使用一个ARM模板来创建带有扩展名的Vm.

    将扩展添加到计算机后,它将在这些计算机上执行,而无需您提供登录这些计算机的凭据.


    I have a file that repo that I need to edit before I install in on a linux VM. I will not be allowed SSH access with have to use run commands to write bash scripts to install them.

    • I am not sure how to handle authentication on to the Private Repo. It uses single sign on. I can however can access my username and personal access token. This will not be ideal as the scripts need to be deployable by any user.
    • I can edit the files locally, but not sure how to copy onto the boxes i.e I will not have access to ssh and cant use scp

    I would love advice / pointers on this

    解决方案

    Hi MetaMorphDeus,

    Regarding your first question,

    Do you wan to clone the entire repo or only one file?

    If you are looking for one file, you can use azure files to store. Downloading that file to a vm will be easier.

    Regarding the second question,

    You can use extensions. Extensions can be added to both windows and linux virtual machines. While creating the machines, Users can add the extensions to their vms. You can also have a ARM template which created a Vm with extension. 

    Once the extensions are added to the machines, It will execute on those machines without requiring you to provide credentials to login to those machines.


    这篇关于从Linux计算机上的私有Azure DevOps存储库安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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