<?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 Matt Bell on Medium]]></title>
        <description><![CDATA[Stories by Matt Bell on Medium]]></description>
        <link>https://medium.com/@mattbell1?source=rss-6a93e41749a9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kqtW7FF8gaHiW_5p</url>
            <title>Stories by Matt Bell on Medium</title>
            <link>https://medium.com/@mattbell1?source=rss-6a93e41749a9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 01:27:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mattbell1/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[Exam Prep — Azure Fundamentals AZ-900]]></title>
            <link>https://mattbell1.medium.com/exam-prep-azure-fundamentals-az-900-c3a9980f05fc?source=rss-6a93e41749a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3a9980f05fc</guid>
            <category><![CDATA[az-900-study-material]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Matt Bell]]></dc:creator>
            <pubDate>Mon, 12 Apr 2021 16:44:30 GMT</pubDate>
            <atom:updated>2021-04-12T16:45:32.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exam Prep — Azure Fundamentals AZ-900</h3><figure><img alt="Cert badge" src="https://cdn-images-1.medium.com/max/378/1*km29fKwe5H44W75Mxtyyiw.png" /></figure><p>I passed the AZ 900 Azure Fundamentals a few weeks back with a little help from Lars Klint and John Savill. Here are the resources I used and what I found useful.</p><p>Video — <a href="https://www.youtube.com/watch?v=t1nB1RYihJg">John Savill’s AZ-900 Azure Fundamentals Hints and Tips</a> — I found this video really easy to follow and absorb 55ish minutes on the fundamentals you need to know for the exam. I am now working my way through <a href="https://youtu.be/rZcyDHIYpO0">John’s Azure Master Class</a> .</p><p>Video — <a href="https://acloudguru.com/course/az-900-microsoft-azure-fundamentals">A Cloud Guru’s AZ-900 Microsoft Azure Fundamentals by Lars Klint</a> — Lars is super engaging and his examples are great — he uses Lego to explain Availability Zones and a space rocket to explain Azure Governance. Training videos have moved on since I was doing my MCSA 8 years ago, no chance of falling asleep in this one!</p><p>Video — <a href="https://youtu.be/NKEFWyqJ5XA">Free Code Camp’s — Course on YouTube</a>- Very neat and to the point overview of Azure fundamentals.</p><p>Book — Azure in a month of Lunches — I wanted to be able to do the work in Azure not just memorise the material for the exam. This book has a chapter per tutorial each is designed to take around 1 hour , so you can do it in your lunch hour. I had my free Azure trial setup and used it to do most of these. One of my favourites was deploying an Azure Web App for ordering Pizza!</p><p>….Next up AZ-104</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3a9980f05fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Terraform via GitHub Actions]]></title>
            <link>https://mattbell1.medium.com/deploying-terraform-via-github-actions-3251d8b1473f?source=rss-6a93e41749a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3251d8b1473f</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[hashicorp]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Matt Bell]]></dc:creator>
            <pubDate>Mon, 12 Apr 2021 15:26:00 GMT</pubDate>
            <atom:updated>2021-04-12T15:26:00.413Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Terraform logo" src="https://cdn-images-1.medium.com/max/820/1*RdBBXGpP2pwBSFu8hq-ABw.png" /></figure><p>As part of the <a href="https://cloudskills.io/courses/cloud-native"><strong>DevOps Bootcamp</strong></a><strong> </strong>I am taking on <a href="http://cloudskills.io/"><strong>CloudSkills.io</strong></a><strong> </strong>I used Terraform and GitHub Actions to deploy an IIS server and a website . I have already used Azure DevOps to create basic pipelines but GitHub Actions was new to me. In this blog I have included the high level steps, what I have learned, the challenges I faced and how I overcame them.</p><p><strong>High level steps</strong></p><ul><li>Get Terraform to authenticate with Azure . Run az login via cmd to get the subscription ID and store in a notepad.</li><li>Create a Service Principal Account via cmd ; set contributor role and the scope to Sub ID (copy from notepad) . Best practice — Do not use your user account to deploy infrastructure when using CI/CD</li><li>Fork the CloudSkills repo for this project</li><li>This code will deploy an IIS server and a website via GitHub Actions</li><li>Setup secrets for GitHub repo — two secrets, one for AZ CLI login and one for Terraform</li><li>JSON credential objects — Had to re watch this section a number of times to get the format right</li><li>Create a workflow in GitHub actions: Put in the environment variables for authentication, Install Terraform using a snippet, Terraform state resources, Make sure the Storage account name is globally unique, insert the az login snippet and reference the secrets created above, Terraform init and configure backend storage , Terraform plan and output it and Terraform apply.</li><li>Commit and save the workflow</li></ul><p><strong>What I have learned</strong></p><ul><li>Why you should use a Service Principal to authenticate with Azure and how to use it in the workflow</li><li>How to setup a workflow in GitHub Actions</li><li>Use snippets in Marketplace to build out the YAML file</li><li>How to monitor workflows in GitHub</li></ul><p><strong>Challenges</strong></p><ul><li>Service Principal authentication and creating secrets in GitHub. I re watched the video a number of times and did a quick google search to read more, helpful link — <a href="https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret">Azure Provider: Authenticating using a Service Principal with a Client Secret</a></li><li>Various errors in my YAML file — had to go back a number of times line by line to get it right</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3251d8b1473f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub — Forking]]></title>
            <link>https://mattbell1.medium.com/github-forking-3a9e4112babd?source=rss-6a93e41749a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a9e4112babd</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Matt Bell]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 14:11:22 GMT</pubDate>
            <atom:updated>2021-04-11T14:11:22.818Z</atom:updated>
            <content:encoded><![CDATA[<h3>GitHub — Forking</h3><figure><img alt="GitHub Logo" src="https://cdn-images-1.medium.com/max/224/1*pYDFyqWImTel97byFWLiwA.png" /></figure><p>Most DevOps tutorials offer source code so you can follow along and check your work. One thing that really confused me when starting out was how to get a copy of that code into my GitHub and onto my local machine. It sounded so easy but all the new language confused me — forking and repos! This is a tutorial on how to Fork a repository (copy).</p><p>On GitHub navigate to the repo you want to fork</p><p>In the top right of the corner of page , click Fork</p><p>You will be taken to your fork</p><p>Click Code then copy the HTTPS link under the Clone section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*LIKcT4z9Nq5HiyXzb45x1A.png" /></figure><p>On your PC navigate to where you want the cloned directory</p><p>Run a cmd in that directory and use the git clone command — i.e. git clone <a href="https://github.com/mbell0/terraform-dev-env-azure.git">https://github.com/mbell0/terraform-dev-env-azure.git</a></p><p>Then initialise the directory — git init</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a9e4112babd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terraform — Creating an Azure Virtual Machine Scale set]]></title>
            <link>https://mattbell1.medium.com/terraform-creating-an-azure-virtual-machine-scale-set-16d91713494?source=rss-6a93e41749a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/16d91713494</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Matt Bell]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 13:36:28 GMT</pubDate>
            <atom:updated>2021-04-11T16:53:31.364Z</atom:updated>
            <content:encoded><![CDATA[<h3>Terraform — Creating an Azure Virtual Machine Scale set</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*RdBBXGpP2pwBSFu8hq-ABw.png" /></figure><p>I have recently been working my way through the Microsoft documentation on Terraform .The first project I took on was “Create an Azure Virtual Machine scale set”. Here is what I have learned, the challenges I faced, and how I overcame them.</p><p><a href="https://docs.microsoft.com/en-us/azure/developer/terraform/create-vm-scaleset-network-disks-hcl%20">Link to tutorial</a></p><p><strong>What I have learned</strong></p><ul><li>How to install Terraform (see previous blog)</li><li>How to use VS Code to create and edit .tf files — Install the Terraform Visual Studio Code Extension .</li><li>How to authenticate to Azure with Terraform</li><li>Terraform syntax and how to understand it</li><li>How to use the <a href="https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs">Terraform Registry</a> to find example code</li><li>Terraform commands — terraform init, terraform plan , terraform apply and terraform destroy</li></ul><p><strong>Challenges I faced and how I overcame them</strong></p><ul><li>Understanding the Terraform syntax rather than just copying and pasting from the tutorial</li></ul><p>I utilised various sources to help — <a href="https://www.youtube.com/watch?v=JKVkblsp3cM&amp;t=558s"><strong>John Savills Youtube Video</strong></a><strong> “Using Terraform on Azure”</strong>, <a href="http://cloudskills.io/"><strong>Cloudskills.io</strong></a><strong> Terraform on Azure course</strong> and <a href="https://learn.hashicorp.com/collections/terraform/azure-get-started"><strong>Terraforms Get Started documentation</strong></a><strong> .</strong></p><p><strong>Example</strong></p><p>Resource blocks are used to define infrastructure , below is a block to create a resource group. This block has two labels 1. the resource type in this case a resource group “azurerm_resource_group” 2. the label for the block .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*dx2LJle9Xp_wFIxZYlgjUA.png" /></figure><ul><li>Formatting my code so it looked good</li></ul><p>I did a Google and found out about the terraform fmt command</p><ul><li>Making it stick</li></ul><p>At first I was just copying and pasting code from the Terraform Registry but typing it out manually has really helped me to understand it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16d91713494" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Terraform]]></title>
            <link>https://mattbell1.medium.com/install-terraform-19a4a6def985?source=rss-6a93e41749a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/19a4a6def985</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[install]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Matt Bell]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 12:40:00 GMT</pubDate>
            <atom:updated>2021-04-11T12:47:31.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*RdBBXGpP2pwBSFu8hq-ABw.png" /></figure><p>Terraform is an open source Infrastructure as code tool made by HashiCorp. Its used to deploy infrastructure using the HashiCorp Configuration Language (HCL). It works with multiple providers including Amazon Web Services , Microsoft Azure and Google Cloud. Its easy to read and declarative , meaning you tell Terraform what you want rather than how to build it.</p><p>I have been using it to provision Infrastructure in Azure. This is a short tutorial on how to install Terraform on Windows.</p><ol><li>Download Terraform — visit <a href="https://www.terraform.io/downloads.html">https://www.terraform.io/downloads.html</a> and pick the version you need. I am using the Windows 64 bit version.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JtvD80USav1JEyTiX7sLYA.png" /></figure><p>2. Create a folder called DevOps on your C: drive . Extract the downloaded file to C:\DevOps\Terraform.</p><figure><img alt="File path" src="https://cdn-images-1.medium.com/max/675/1*Hts9YkfuoTtuFxVhqEIuzg.png" /></figure><p>3. Now we need to set the System Path , this tells Windows where to find and run Terraform .</p><p>Open a Run command (Windows Key + R ) and type sysdm.cpl this opens up System Properties. Click on the Advanced tab and then Environment Variables.</p><figure><img alt="Environment Variables" src="https://cdn-images-1.medium.com/max/412/1*C8BLjbc7SJeDsgE3Sl2OdQ.png" /></figure><p>Click on Path , under the System Variables section and click Edit .</p><figure><img alt="System path" src="https://cdn-images-1.medium.com/max/618/1*u1o9sgDFQEovKZKy_ECdbQ.png" /></figure><p>Click on New and enter C:\DevOps\Terraform. Terraform is now setup.</p><figure><img alt="System path" src="https://cdn-images-1.medium.com/max/529/1*-LwILgzcmQQCODCLVogH7A.png" /></figure><p>NOTE — You can also do this via the cmd line using the set path command.</p><p>4. To verify the install open cmd or PowerShell and type terraform -version</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*DRwo6kAigNGB4xRGxddjZg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19a4a6def985" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>