<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Avina Jain on Medium]]></title>
        <description><![CDATA[Stories by Avina Jain on Medium]]></description>
        <link>https://medium.com/@avinajain?source=rss-6f6a391a4e7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JXTLlzpmy1srQrfKWxpi0g.gif</url>
            <title>Stories by Avina Jain on Medium</title>
            <link>https://medium.com/@avinajain?source=rss-6f6a391a4e7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:06:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@avinajain/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SRE — Principles and Practices]]></title>
            <link>https://medium.com/avina-jain/sre-principles-and-practices-c12d6861e9ed?source=rss-6f6a391a4e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12d6861e9ed</guid>
            <category><![CDATA[reliability]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[avina]]></category>
            <dc:creator><![CDATA[Avina Jain]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 20:35:01 GMT</pubDate>
            <atom:updated>2021-07-04T20:12:40.181Z</atom:updated>
            <content:encoded><![CDATA[<h3>SRE — Principles and Practices</h3><p>Whether you are a Software engineer, DevOps engineer, IT consultant or a System Admin, I am sure Site Reliability Engineering sounds intriguing to you. Let’s discuss what is SRE and its principles and practices.</p><h4>What is Site Reliability Engineering?</h4><p>SRE started when Treynor Sloss, at Google, tried to answer — “what happens when you ask a software engineer to design an operations function?”. As more and more people talked about and adopted SRE, it became a discipline. Now Site Reliability Engineering is an engineering field dedicated to assisting organizations in achieving the right degree of reliability in their systems and services over time.</p><p>The keyword here is reliability. We rarely see systems that are reliable 100% of the time. And, reaching 100% reliability should not even be the goal. Based on the kind of application being managed, stakeholders can specify the level of reliability needed.</p><p>Let’s discuss some key SRE principles and practices to better understand reliability, in turn, site reliability engineering.</p><ul><li><strong>SLI </strong>— SLIs or Service Level Indicators are the indicators of your service’s health. There can be a lot of indicators and ways to track them. A good SLI should not be based on noisy data from monitoring tools, instead should show that a service is working as the users expect. For example, one indicator for your service could be that it is available to the users, returns a 200 status code, and not a 5XX server error code.</li><li><strong>SLO </strong>— SLOs or Service Level Objectives are well-understood goals for the reliability of the service. Once we have indicators to see how the service is functioning, we should establish what level of reliability we want from it. You set an SLO based on something that can be accurately measured and represented in your monitoring system. For example, your service returns a 200 status code 90% of the time and hence is available to users and 90% of the requests are successful.</li><li><strong>Error Budget</strong> — An error budget is the difference between the theoretical perfect reliability(100%) of a service and the required reliability. For the above example, the Error budget you have is 100–90 = 10%. This means we have a fund of 10% unreliability which we can use until it is exhausted. We can focus on, say another feature development for the service and test it till we stay within that 10% budget. What steps are to be taken, when this budget is exceeded and the SLO is violated, should be agreed upon when creating that error budget.</li><li><strong>Blameless Postmortem</strong> — Blameless postmortem, as the name implies, is a method of analyzing an unfavourable occurrence in hindsight without pointing fingers. The emphasis is on the failure of technology rather than on specific individuals. This ensures that we seek methods to enhance the systems or processes rather than ways to penalise people who inadvertently contributed to the outage.</li><li><strong>Toil</strong> — Toil is the kind of work that is largely manual, repetitive, without any value, and grows as a service grows. An SRE’s main focus is on removing as much toil from the service as possible.</li></ul><p>After reading the above, I am sure you have a question in mind about how DevOps and SRE are different and if/how they are related. People in the industry are still trying to present the differences properly, but we know that they are separate parallel disciplines both involving automation and monitoring operations, though SRE started with a software engineering mindset and cannot be seen as the future of DevOps, both have to be implemented differently.</p><p>Hopefully, this article has given you a good start in your understanding of SRE! 😀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12d6861e9ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/avina-jain/sre-principles-and-practices-c12d6861e9ed">SRE — Principles and Practices</a> was originally published in <a href="https://medium.com/avina-jain">Avina’s blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps — Principles and Processes]]></title>
            <link>https://medium.com/avina-jain/devops-principles-and-processes-513241389fc9?source=rss-6f6a391a4e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/513241389fc9</guid>
            <category><![CDATA[avina]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Avina Jain]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 21:16:03 GMT</pubDate>
            <atom:updated>2021-06-23T07:12:44.306Z</atom:updated>
            <content:encoded><![CDATA[<h3>DevOps — Principles and Processes</h3><p>DevOps is an umbrella term for a collection of processes amalgamating software development and IT operation. Before we dig into what DevOps is and what are the processes involved, let’s briefly look at some of the crucial DevOps principles.</p><h4>DevOps principles</h4><p>Although there are a lot of DevOps principles, let’s discuss the three key principles you need to keep in mind. First and foremost is <strong>Automation</strong>. Automation is a key step in releasing new software to your clients as quickly as possible. Developers and operations teams can streamline processes and increase productivity by using automation. It enhances the development quality and improves security since it minimizes the number of manual activities.</p><p>Next is <strong>Continuous Improvement. </strong>The goal of continual improvement is to make the processes smoother. DevOps brings together teams to enable continuous integration and delivery (CI/CD) pipelines through improved workflows and automation.</p><p>And the third and last one we talk about in this article is <strong>Collaboration. </strong>Teams are required to collaborate at every stage of the development cycle to deliver customer-centric results and achieve success faster.</p><p>Now you know three principles that should come into your mind when you think of DevOps&#39; goals and objectives. To further understand what DevOps is, let’s move on to DevOps processes.</p><h4>DevOps processes</h4><ol><li><strong>Plan</strong> — During this phase, teams brainstorm, and outline the applications’ and systems’ features and capabilities. They keep track of progress at various levels. You plan and track the work using tasks, users stories and tickets. You should choose and follow one of the processes like Agile, Scrum, etc. to have a proper planning and tracking system.</li><li><strong>Develop</strong> — Whether you operate as a solo developer or in a team, a source control system allows you to stay organized and collaborate while fixing issues and developing new features. You write the code, share it with your team, reviews happen, testing is done, and then CI/CD tools get the code from source control and build it to generate the output that can be deployed.</li><li><strong>Deploy </strong>— You can deploy your code to a variety of targets, including VMs, containers, or deploy your app in the production stage or push it to app stores. You can set up a release management strategy and automate it to deploy your app to staging and production environments</li><li><strong>Operate</strong> — You can then maintain a scalable infrastructure, allowing you to maintain logs, investigate issues and address them more quickly. This ensures system stability and high availability providing a superior customer experience.</li></ol><p>Now that you are familiar with some DevOps terminologies including its principles and processes, I hope this article helps you get started on your DevOps journey! 😀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=513241389fc9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/avina-jain/devops-principles-and-processes-513241389fc9">DevOps — Principles and Processes</a> was originally published in <a href="https://medium.com/avina-jain">Avina’s blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pipeline as code with YAML in Azure DevOps]]></title>
            <link>https://medium.com/avina-jain/pipeline-as-code-with-yaml-in-azure-devops-23c0f37077af?source=rss-6f6a391a4e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/23c0f37077af</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[yaml]]></category>
            <category><![CDATA[pipeline]]></category>
            <dc:creator><![CDATA[Avina Jain]]></dc:creator>
            <pubDate>Wed, 14 Apr 2021 12:22:50 GMT</pubDate>
            <atom:updated>2021-04-16T12:09:32.424Z</atom:updated>
            <content:encoded><![CDATA[<p>Azure DevOps offers two kinds of pipelines, Classic pipelines and YAML (Yet Another Markup language) pipelines. Initially, YAML pipelines may feel intimidating as compared to Classic, but they offer some great advantages. Let’s discuss some in this article.</p><p>One of the major advantages is that you can manage yaml files and in turn the pipeline, along with the source code in your repository. Since it is a text file, it is easier to edit and collaborate, and the changes can be committed and pushed just like any other file in your repository.</p><p>A great way to get started with the YAML pipelines is by exporting your already present Classic pipelines as YAML and go through it. The classic pipeline stays as is after export and we just get the YAML version of it. It is similar to exporting the pipeline in JSON format. Since you already understand the flow of a Classic pipeline, it will be then easier for you to understand how a YAML is written.</p><p>You can just browse to any one of your Classic pipelines, click on the Overflow menu (three dots) and click on Export to YAML -</p><figure><img alt="Export to YAML" src="https://cdn-images-1.medium.com/max/861/1*GetpswJWV8Kh1sE4mN-JiA.png" /><figcaption>Export to YAML</figcaption></figure><p>You can then check out the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&amp;tabs=schema%2Cparameter-schema"><strong>official documentation</strong></a> provided and refer to it while going through the YAML pipeline. The documentation is extensive and useful.</p><p>Another great thing about YAML pipelines is <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&amp;tabs=schema%2Cparameter-schema#template-references"><strong>Templates</strong></a>. You can export reusable sections of your pipeline to a separate file. These separate files are known as templates. You can then call them in the main YAML file as many times as you want with different parameters. Templates themselves can include other templates.</p><p>YAML pipelines are also useful when you are using containers. You can define <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops"><strong>container jobs</strong></a> in YAML so that each step of the job runs inside a container. Container jobs are not available in classic pipelines.</p><p>These are just a few advantages to make you feel optimistic and get yourself started with YAML pipelines.</p><p>I hope you found this helpful as you get started with and learn more about YAML pipelines! 😀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23c0f37077af" width="1" height="1" alt=""><hr><p><a href="https://medium.com/avina-jain/pipeline-as-code-with-yaml-in-azure-devops-23c0f37077af">Pipeline as code with YAML in Azure DevOps</a> was originally published in <a href="https://medium.com/avina-jain">Avina’s blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your complete Jaisalmer Itinerary]]></title>
            <link>https://medium.com/avina-jain/your-complete-jaisalmer-itinerary-a249198b92d4?source=rss-6f6a391a4e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a249198b92d4</guid>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[tourism]]></category>
            <category><![CDATA[jaisalmer]]></category>
            <category><![CDATA[trip]]></category>
            <category><![CDATA[avina]]></category>
            <dc:creator><![CDATA[Avina Jain]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 15:14:13 GMT</pubDate>
            <atom:updated>2021-06-24T22:00:24.299Z</atom:updated>
            <content:encoded><![CDATA[<h3>Jaisalmer Trip Itinerary</h3><p><a href="https://en.wikipedia.org/wiki/Jaisalmer">Jaisalmer</a>, also known as, the Golden city, situated amidst the Thar desert, is one of the most beautiful cities of India. My trip to Jaisalmer was one of the greatest sojourns of my life.</p><p>I planned a three-day trip to this city with my family, from Feb 22, 2021, to Feb 24, 2021. I believe three days are more than enough to explore Jaisalmer as we covered all the tourist locations of Jaisalmer, very comfortably and without being in a hurry.<br>It was a little too hot even during this time for outside travel, so if you ever decide to plan a trip to Jaisalmer, do it between Nov — Jan.</p><p>I travelled to Jaisalmer from Jaipur, and both the cities are around 565 km away from each other. That meant, a journey of approximately 12 hours whether you choose to travel via bus or train. There is no airport as of now in Jaisalmer and the nearest airport is in the city of Jodhpur.</p><p>Due to COVID-19 travel restrictions, since only a limited number of trains were running, I couldn’t find enough seats to book for my family, so I decided to book tickets in a sleeper bus for an overnight journey.<br>We boarded the bus at 8:30 PM on the night of Feb 21, 2021, and reached Jaisalmer at 10 AM, on the next day of Feb 22, 2021. We had already booked a stay in Jaisalmer for one day and one night and a taxi for all three days. We reached the hotel, freshen up, had brunch and were ready to explore the exquisite regality Jaisalmer had to offer.</p><p>Let me now tell you the day by day plan you should follow to enjoy Jaisalmer.</p><p><strong>DAY 1</strong></p><ul><li>We first went to <a href="https://en.wikipedia.org/wiki/Jaisalmer_Fort"><strong><em>Jaisalmer Fort</em></strong></a>. Now, as a resident of Rajasthan, I have visited Jaipur city palace and Udaipur city palace and went to the fort thinking it would be a similar experience, but I was taken aback as I have never seen a fort like this one in my life. This fort is a complete city in itself. I would advise you to hire a guide or else you will not be able to explore this marvel.<br>It took us about 3 hours to complete our tour of the fort after which the guide took us to Patwon ki Haveli which is around 10 mins of distance from the fort on foot.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oixFZ77550g2uAu-LqeWdg.png" /><figcaption>Jaisalmer Fort</figcaption></figure><ul><li><strong><em>Patwon ki Haveli</em></strong> is a set of havelis and are an example of the exquisite sandstone architecture because of which Jaisalmer gets the name of Golden city. Again, you will need a guide to understand as to why these are of historic importance. We finished our tour of havelis in an hour and then took some rest in the haveli’s seating area.</li><li>Our next stop was <a href="https://en.wikipedia.org/wiki/Jaisalmer_War_Museum"><strong><em>the Jaisalmer War Museum</em></strong></a><strong><em>.</em></strong> After the tour of the fort and the Havelis in excruciating heat, we were tired and wanted to go back to the hotel to take some rest, but the closing time for the museum is 5 PM IST, so we decided to first visit the museum and then take a break. You’ll have to pay a minimal ticket fee to enter the museum and then you can explore the complete museum. You will not need a guide here, just follow the arrows marked on the pathway and you will be able to cover it.<br>After this, we headed back to our hotel for a much-needed break. had some tea and light snacks, rested for half an hour, and got ready to leave for our next destination.</li><li>We then went to <a href="https://en.wikipedia.org/wiki/Gadisar_Lake"><strong><em>Gadisar Lake</em></strong></a>, which spans a 3 km area. We booked a rowing boat for 6 and then witnessed sunset in the middle of the lake. The rower told us all about the lake and its historical importance.<br>After we finished, we came back to the ghat to check out some traditional accessories being sold.<br>We then went to a rooftop restaurant with a beautiful view to have a peaceful dinner.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMvAb-eXNqAwSRLFXSTlaw.jpeg" /><figcaption>Gadisar Lake</figcaption></figure><p><strong>DAY 2</strong></p><ul><li>We checked out of the hotel and had a light breakfast and reached our first destination for day 2 — <a href="https://en.wikipedia.org/wiki/Bada_Bagh"><strong><em>Bada Bagh</em></strong></a>. Here as well, I will suggest you book a guide or else it will just be some random chhatris without understanding their historical importance. We spent around half an hour here, and then left for our next destination.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToXhWTqF_4ktQ55RdyQGpw.jpeg" /><figcaption>Bada bagh</figcaption></figure><ul><li>Our next destination was <a href="https://en.wikipedia.org/wiki/Longewala#Longewala_War_Museum"><strong><em>the Longewala War Museum</em></strong></a> which is one of its kind. The movie Border is based on the attack that took place here. The Pakistani tanks and jeeps are kept exactly where they left them and fled. They will show a 17-minute documentary which is worth watching, you’ll have to pay a nominal fee to watch it. After that, we had lunch on the way before heading to the next spot.</li><li>Next, we went to <a href="https://en.wikipedia.org/wiki/Tanot_Mata"><strong><em>Tanot Mata</em></strong></a><strong><em> </em></strong>temple. It is believed that the temple protects itself as no bomb dropped in its premises has ever blasted. The soldiers hold immense reverence for this temple; hence it is a must-visit.</li><li>After this, we headed to the tents we booked in the <strong><em>Sam district</em></strong> to enjoy the dunes and Thar desert. We reached there at around 5:30 PM IST.<br>As soon as we reached and got inside our tent, we had some tea and light snacks and then went for a Jeep safari. Jeep safari is a must. You will not have half as fun if you do not go on a Jeep safari. The Jeep then left us in the middle of the desert where we climbed on camels for camel safari. On camels, we went to the sunset point and witnessed the sunset amidst the desert. It was a surreal experience. On camels, we went back to where the jeep left us, and the same jeep again took us to our tents.<br>We then had snacks and sat in the open area with a bonfire where the local artists performed <a href="https://en.wikipedia.org/wiki/Kalbelia"><em>Kalbelia</em></a>, sang <a href="https://en.wikipedia.org/wiki/Music_of_Rajasthan"><em>Rajasthani folk songs</em></a>, and performed stunts for us to enjoy. We then had dinner and went to sleep to start day three afresh.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUzBbkaoFM2gNG3IbA2JNA.jpeg" /><figcaption>Sunset at Thar</figcaption></figure><p><strong>DAY 3</strong></p><ul><li>We woke up at 6:30 AM IST and took a camel cart to the middle of the desert to witness the sunrise. We then returned to our tents, had breakfast, and checked out.</li><li>We then went to the <strong><em>Khaba Fort</em></strong> from where you can see the abandoned villages of Kuldhara. We spent not more than 30 minutes there and went to Kuldhara.</li></ul><figure><img alt="Khaba Fort" src="https://cdn-images-1.medium.com/max/957/1*O9qXRYaUhTkRPgAzSo6l7Q.jpeg" /><figcaption>Khaba Fort</figcaption></figure><ul><li>Then we went to see <strong><em>the remains of </em></strong><a href="https://en.wikipedia.org/wiki/Kuldhara"><strong><em>Kuldhara</em></strong></a> where again you’ll have to pay a minimal entry fee but is worth a visit. We again finished the visit in around half an hour and had a soft drink outside the village to beat the heat.</li><li>After this, we went to see <strong><em>Amar Sagar Jain temple</em></strong> on the way which was the last destination of Day 3. Another Jain temple you might wish to add in your itinerary would be <a href="https://en.wikipedia.org/wiki/Lodhruva"><strong><em>Lodhruva</em></strong></a><strong><em> Jain temple</em></strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*du10Y2nX6XVYqxL4LxuzYQ.jpeg" /><figcaption>Amar Sagar Jain temple</figcaption></figure><p>We then went back to the same hotel and rested there for an hour. Since we were leaving from Jaisalmer at 5 PM IST, we had some time to kill and hence we went to explore the streets of Jaisalmer on foot. I would recommend all who visit Jaisalmer to explore the inner city. Only then you will truly understand why it is called the Golden city. Most of the houses have sandstone architecture and are yellow in colour and appear golden as they reflect sunlight.</p><p>Then we took our luggage, boarded our bus at 5:30 PM IST from Jaisalmer and reached Jaipur at 6 AM IST on Feb 25, 2021.</p><p>I would like to emphasize that we were able to cover all of this without any fatigue or hurry.<br>We took our sweet time to explore each location properly, had fun and clicked a lot of pictures.</p><p>I hope this article gives you an idea of how to plan a trip to Jaisalmer. 😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a249198b92d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/avina-jain/your-complete-jaisalmer-itinerary-a249198b92d4">Your complete Jaisalmer Itinerary</a> was originally published in <a href="https://medium.com/avina-jain">Avina’s blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation using available APIs — Azure DevOps]]></title>
            <link>https://medium.com/avina-jain/automation-using-available-apis-azure-devops-29728c526962?source=rss-6f6a391a4e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/29728c526962</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[avina]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[pull-request]]></category>
            <category><![CDATA[azure-devops]]></category>
            <dc:creator><![CDATA[Avina Jain]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 11:37:40 GMT</pubDate>
            <atom:updated>2021-02-02T11:37:40.213Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Automation using available APIs — Azure DevOps</strong></h3><p>========================================</p><p>There are a lot of tools available in the market to automate DevOps practices in the software development lifecycle, like Jenkins, Azure DevOps, et. al.</p><p>In this article, we focus on Azure DevOps and how to make the most of automation.</p><p>Azure DevOps does a decent job in providing features ranging from managing sprints, work items, etc., to creating CI/CD pipelines and the documentation provided is also useful.</p><p>There are APIs provided which can help us in further automation based on our specific scenarios. One such specific user scenario I came across was user wanting to create a Pull request once their Release pipeline completes. I found customer scenario valid as, to fully automate deployments, one might need to create a Pull Request not beforehand but only after the release has completed. Let us take this as an example, understand how we can achieve this task and then apply the learning to any other automation scenarios you may encounter.</p><p>We require the three things listed below to achieve this -</p><ol><li>A bash/command line task- <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/bash?view=azure-devops">https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/bash?view=azure-devops</a> or <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/command-line?view=azure-devops&amp;tabs=yaml">https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/command-line?view=azure-devops&amp;tabs=yaml</a></li><li>Azure DevOps API to create Pull request<a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull%20requests/create?view=azure-devops-rest-5.1">https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull requests/create?view=azure-devops-rest-5.1</a></li><li>API to retrieve Git repositories<a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-5.1">https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-5.1</a></li></ol><p>First, we need to add a Bash/Command line task as the last task at the end of the pipeline and then would provide the command like below -</p><p>========================================</p><p>curl -u “User:<strong>PAT</strong>” -H “Content-Type: application/json” -d “{“sourceRefName”: “refs/heads/<strong>test</strong>”,”targetRefName”:”refs/heads/<strong>master</strong>”,”title”: “A new feature”,”description”: “Adding a new feature”}” <a href="https://dev.azure.com/%7Borganization%7D/%7Bproject%7D/_apis/git/repositories/%7BrepositoryId%7D/pullrequests?api-version=5.1">https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?api-version=5.1</a></p><p>========================================</p><p>Let’s understand all the inputs we provided to the script -</p><p>• We should create a PAT token for authentication and provide it in place of <strong>PAT</strong> in the script. We can do so as mentioned here — <a href="https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&amp;tabs=current-page#create-personal-access-tokens-to-authenticate-access">https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&amp;tabs=current-page#create-personal-access-tokens-to-authenticate-access</a> .Make sure to copy the PAT and save it somewhere safe as it is not stored on Azure DevOps and you will not be able to retrieve it again.</p><p>• The command above passes the following inputs to the request body of the Create Pull request API -</p><ul><li> <em>sourceRefname</em> (<strong>The name of the source branch of the pull request</strong>),</li><li> <em>targetRefName</em> (<strong>The name of the target branch of the pull request</strong>),</li><li> <em>title</em> (The title of the pull request),</li><li> <em>description</em> (The description of the pull request)</li></ul><p>You can add other inputs to the request body based on your requirements as per — <a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull%20requests/create?view=azure-devops-rest-5.1#request-body">https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull requests/create?view=azure-devops-rest-5.1#request-body</a></p><p>• For the API, you will then have to provide your Azure DevOps organization name, project name where you have the repository for the branches of which you want to create a Pull Request and the repository id for the same repository.</p><p>You can find out the repository id by running the below API from the browser -<a href="https://dev.azure.com/%7Borganization%7D/%7Bproject%7D/_apis/git/repositories?api-version=5.1">https://dev.azure.com/{organization}/{project}/_apis/git/repositories?api-version=5.1</a></p><p>After this, you should see an active Pull Request from your source branch to destination as below —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECJuokiwn4gCphJNBHGDOA.png" /><figcaption>PR from test to master</figcaption></figure><p>=======================================</p><p>Similarly, you can automate Pull Request creation or achieve any other automation via APIs. You can refer to the below document for the list of available Azure DevOps APIs —</p><p><a href="https://docs.microsoft.com/en-us/rest/api/?view=Azure%20DevOps">REST API Browser | Microsoft Docs</a></p><p>========================================</p><p>I hope you find this article helpful! 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29728c526962" width="1" height="1" alt=""><hr><p><a href="https://medium.com/avina-jain/automation-using-available-apis-azure-devops-29728c526962">Automation using available APIs — Azure DevOps</a> was originally published in <a href="https://medium.com/avina-jain">Avina’s blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation using GitHub Actions]]></title>
            <link>https://medium.com/avina-jain/automation-using-github-actions-584c433b3ba3?source=rss-6f6a391a4e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/584c433b3ba3</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[avina]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Avina Jain]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 11:37:40 GMT</pubDate>
            <atom:updated>2021-03-04T17:45:33.598Z</atom:updated>
            <content:encoded><![CDATA[<p>========================================</p><p>In this article, we will talk about GitHub Actions and how they can be used to configure CI/CD pipelines directly on GitHub so you can automate your DevOps processes on GitHub itself instead of using any tool like Jenkins, Azure DevOps, etc.</p><p>I feel that the biggest advantage of using Actions and workflows is not needing to import your GitHub repositories to such tools, avoiding overheads of creating web-hooks, service endpoints or using some extensions for the same, which in turn will help in reducing time, effort, and security related issues.</p><p>Once you create a new repository and check-in your code on GitHub, you can go with any of the three options listed below to help you set up CI/CD pipelines -</p><ol><li>GitHub Actions will analyze your repository for the kind of project you have checked-in and will accordingly recommend a workflow. Those are called starter workflows. For example, if you are trying to build a node-based application, you might be suggested a <a href="https://github.com/actions/starter-workflows/blob/c6c0c7b5efb8a6d4121a9e15b3007b6cc794681e/ci/azure.yml">workflow</a> that will build and push a node.js application to an Azure Web App when a release is created. You can use these templates as-is if they suit your needs.<br>To demonstrate this, I just created a new empty repository and it suggested me a <a href="https://github.com/actions/starter-workflows/blob/c6c0c7b5efb8a6d4121a9e15b3007b6cc794681e/ci/blank.yml">Simple workflow</a> —</li></ol><figure><img alt="Simple workflow" src="https://cdn-images-1.medium.com/max/1024/1*6DoLUjnaBMvpiFimWj_taQ.png" /><figcaption>Simple workflow</figcaption></figure><p>2. The second option would be to modify the same starter workflow you choose in case you have additional steps or any test to be run. You can add additional Featured Actions or third-party actions from the marketplace for the same.<br>For example, you can add <a href="https://github.com/marketplace/actions/upload-a-build-artifact">Upload a Build Artifact action</a> which uploads artifacts from your workflow allowing you to share data between jobs and store data once a workflow is complete.</p><p>3. You can skip selecting a workflow template and set up a workflow yourself. This will just create a YAML file with a basic workflow to help you get started with Actions, and then again, you can customize the file based on how you want to build/test your application or publish any packages. You will see the option as below -</p><figure><img alt="Set up a workflow yourself" src="https://cdn-images-1.medium.com/max/1024/1*f71NL3xQ3Rxb8mC7vHT76g.png" /><figcaption>Set up a workflow yourself</figcaption></figure><p>You can look and search for all the available Actions on the below link -<br><a href="https://github.com/marketplace?type=actions">https://github.com/marketplace?type=actions</a></p><p>========================================</p><p>I hope you find this article helpful! 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=584c433b3ba3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/avina-jain/automation-using-github-actions-584c433b3ba3">Automation using GitHub Actions</a> was originally published in <a href="https://medium.com/avina-jain">Avina’s blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>