Azure devops hosted agents - Kabrinskiy Eduard
<h1>Azure devops hosted agents</h1>
<p>[youtube]</p>
Azure devops hosted agents <a href="http://remmont.com">Breaking news headlines</a> Azure devops hosted agents
<h1>Bas Lijten</h1>
<h2>A blog on Sitecore, SharePoint, Security, ASP.Net and more?</h2>
<h1>How to run Azure DevOps hosted (Linux) build agents as private agents (and be able to scale them accordingly)</h1>
<p>Lately, I was preparing for a talk on Azure DevOps for the Sitecore community. For this talk I wanted to talk about scaling up and scaling out of build agents and compare the performance of different sized build agents on larger projects. Due to some limitations on the hosted Azure DevOps build agents, I had to create my own build agents. This blogpost will explain <em>why</em> I had to create my own agents and <em>how</em> I did this without too much effort. TLDR: just run a packer script to create your own private build agents</p>
<h1>Why were private build agents required?</h1>
<p>I wanted to have a representative real-world example with quite some (legacy) frontend code and a lot of backend projects. It isn?t a very different scenario from regular Asp.Net applications with a heavy clientside oriented frontend, apart from the fact that a lot of persons are using a single powershell/cakescript/gulp script to build all the clientside assets <em>and</em> backend code. There are three reasons why I couldn?t use the hosted build agents and had create those agents with the same software them myself:</p>
<p><ol>
<li>To show the possibilities to scale out agents, the hosted Azure DevOps build agents could have been used, as they are free to use for up to 10 processes, <em>but only</em> for open source projects. The codebase that was used is <em>not</em> public, so parallelism wasn?t possible.</li>
<li>Scaling up hosted Azure DevOps Build Agents is not possible. All agents are based on the DS2_V3 VM, which has 2 vCPU?s and 7Gb op memory. Scaling up <em>may</em> have a positive effect on some workloads</li>
<li>The hosted build agents are sufficient in terms of tooling. Why create our own agents when the blueprints are already available?</li>
</ol>
</p>
<h1>How to create private build agents with the configuration of the Hosted agents</h1>
<p>My first approach was to run those agents as a docker container. Microsoft published their linux containers to hub.docker.com, but they are deprecated and haven?t been updated since the 22th of January.</p>
<h2>Building the images</h2>
<p>After a bit of research, I found out that Microsoft open sourced the scripts to build the images. They are created using packer and can be found here. The MSDN documentation helps a bit on creating those images using packer and the azure CLI.</p>
<p>I turned out that it was even more easy to create those images with some PowerShell scripts that are available within the github repository. They can be found within the helpers directory. With the command ?GenerateResourcesAndImage -SubscriptionId ? ? -ResourceGroupName ?resourcegroup? -ImageGenerationRepositoryRoot ?C:\github\azure-pipelines-image-generation? -ImageType 1 -AzureLocation ?westeurope? the VM?s can be generated. Choose 0 for VS2017, 1 VS2019 or 2 for the Ubuntu VM. Building of these images take a looooong time.</p>
<p>When the script has run successfully, you?ll eventually see the following output:</p>
<p style="clear: both"> <img src="https://blog.baslijten.com/wp-content/u ... /image.png" /></p>
<p>The last templateUri has to be selected, including the query string parameters, and open it in your browser. Download the json and store it somewhere on your filesystem. This file contains information about your generated VHD.</p>
<h2>Running the image</h2>
<p>The next step is to actually instantiate the VM and update it! The first step is to Create a VM based on the previously created image. Within the helpers directory, there is another script: CreateAzureVMFromPackerTemplate. A few parameters, like name, username, password and TemplateFilePath have to be specified.</p>
<p>After the script has been finished, the last actions can be taken to finalize the configuration.</p>
<h2>Add the Azure Devops agent</h2>
<p>Please note: I am doing this manually Mikael Krief wrote an article on how to automate this! When using that approach, the steps below aren?t needed.</p>
<p>Before the agent can be added, the firewall has to allow connections over SSH (or RDP when using windows). I created a new Network Security Group and added the rule to this NSG. This NSG is added to the Network Interface:</p>
<p style="clear: both"> <img src="https://blog.baslijten.com/wp-content/u ... mage-1.png" /></p>
<p>The next step is to connect over SSH to the linux image. I prefer to use the tool ?putty? for this, when working on windows. Azure DevOps tells us what to do:</p>
<p style="clear: both"> <img src="https://blog.baslijten.com/wp-content/u ... mage-2.png" /></p>
<p>The agent can be downloaded using the ?wget? command. ?wget https://vstsagentpackage.azureedge.net/ ... 5.1.tar.gz? downloads the client to the current directory.</p>
<p>After extracting the client, the agent can be configured following this guide,</p>
<h2>Automatically start the client</h2>
<p>When the client has been configured, it will be shown as ?offline? in the agent overview. Run the command</p>
<p>?sudo ./svc.sh install? && ?sudo ./svc.sh start? and your client is configured to start after startup of the VM <em>and</em> it will be started for now.</p>
<h1>Conclusion</h1>
<p>Creating one or more private build agents is not hard, especially when using the packer scripts provided by Microsoft. It just takes some time go generate the VM?s.</p>
<h3>Leave a Reply <small>Cancel reply</small></h3>
<p>This site uses Akismet to reduce spam. Learn how your comment data is processed.</p>
<h2>Azure devops hosted agents</h2>
<h3>Azure devops hosted agents</h3>
<p>[youtube]</p>
Azure devops hosted agents <a href="http://remmont.com">Latest news online</a> Azure devops hosted agents
<h4>Azure devops hosted agents</h4>
Lately, I was preparing for a talk on Azure DevOps for the Sitecore community. For this talk I wanted to talk about scaling up and scaling out of build agents
<h5>Azure devops hosted agents</h5>
Azure devops hosted agents <a href="http://remmont.com">Azure devops hosted agents</a> Azure devops hosted agents
SOURCE: <h6>Azure devops hosted agents</h6> <a href="https://dev-ops.engineer/">Azure devops hosted agents</a> Azure devops hosted agents
#tags#[replace: -,-Azure devops hosted agents] Azure devops hosted agents#tags#
https://ssylki.info/?who=remmont.com/ua-al-and-video https://ssylki.info/?who=car-websites.remmont.com/news https://ssylki.info/?who=auto-insurance ... t.com/news https://ssylki.info/?who=remmont.com/si ... ia-video-2 https://ssylki.info/?who=remmont.com/pr ... in-belarus
Tempe - Top news today - REMMONT.COM
Всё подряд, без разбора, но про САМБО. Разбор завалов по ходу.
Tempe - Top news today - REMMONT.COM
Сообщение IZRAELEa » 20 май 2021, 04:03
Arguments: all bank credit card offers
Fresh News.
Fresh News.
IZRAELEa
Ответить
1 сообщение
• Страница 1 из 1
Вернуться в «Общие вопросы | General questions»
Перейти
- САМБО-ИНФО | SAMBO-INFO
- ↳ Общие вопросы | General questions
- ↳ Федерации, школы, клубы, секции САМБО | SAMBO federations, schools, clubs, etc.
- ↳ Россия | Russia
- ↳ Бывшие республики Советского Союза | The former republics of the Soviet Union
- ↳ Другие страны | Other countries
- ↳ Поиск клуба САМБО
- ↳ Конференции, семинары, учебно-тренировочные сборы | SAMBO сonferences, seminars, training camps
- ↳ Ссылки | SAMBO Links
- ↳ Склад видео | Video
- САМБО как спорт | SAMBO as sports
- ↳ Правила | Rules
- ↳ Правила самбо (FIAS, 2006—2014)
- ↳ Вопросы по судейству
- ↳ Демо-самбо (разработки, обсуждение)
- ↳ Соревнования по САМБО (архив ...—2012) | SAMBO competitions (archive)
- ↳ Соревнования | Competitions — 2012
- ↳ Соревнования | Competitions — 2011
- ↳ Соревнования | Competitions — 2010
- ↳ Соревнования | Competitions — 2009
- ↳ Соревнования | Competitions — 2008
- ↳ Соревнования | Competitions — 2007
- ↳ Соревнования | Competitions — 2006
- ↳ Соревнования | Competitions — 2005
- ↳ Соревнования | Competitions — 2002-2004
- ↳ Соревнования до 2002 года | Competitions till 2002
- Люди в САМБО | People in SAMBO
- ↳ Самбисты | Sambists
- ↳ Чемпионы мира по самбо
- ↳ Помянуть добрым словом...
- Тренерская
- ↳ Теория и методика физической культуры (ТиМФК) и САМБО
- ↳ Техника. Стратегия и тактика САМБО
- ↳ Стоя
- ↳ Лёжа
- ↳ Учебно-методическая библиотека
- ↳ Ищу
- ↳ Обзор
- ↳ Склад знаний
- Музей САМБО
- ↳ Быль и небылицы | History
- ↳ Всячина | Artifacts
- ↳ Афиши, программы, вымпелы, билеты, беджи САМБО
- ↳ Кубки, медали, памятные знаки, грамоты САМБО
- ↳ Календари, открытки, марки, значки, магниты и прочие сувениры САМБО
- ↳ Вырезки из журналов, газет (про самбо и самбистов)
- ↳ Фотографии (снятые до 2000 года)
- ↳ Кино, видео (снятые до 2000 года)
- Изучаем мировой опыт
- ↳ Общие вопросы раздела «Изучаем мировой опыт»
- ↳ Австралия (+Океания)
- ↳ Африка
- ↳ Европа
- ↳ Азия
- ↳ Америка (Северная)
- ↳ Америка (Южная)
- ↳ САМБО в школе
- ↳ Школы
- ↳ 2 класс
- ↳ 3 класс
- ↳ 4 класс
- ↳ 5 класс
- ↳ 7 класс
- ↳ 8 класс
- ↳ 9 класс
- ↳ 10 класс
- ↳ 11 класс
- ↳ Учительская. Тренерский совет
- ↳ Родительский комитет
- ↳ Стенгазета «САМБО»
- ↳ Текущие дела...