<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ojeniran Shola</title>
    <description>The latest articles on DEV Community by Ojeniran Shola (@ojeniran_shola_bf233acd5e).</description>
    <link>https://dev.to/ojeniran_shola_bf233acd5e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3836166%2Ff094b4a1-6a99-4426-a093-dae2873d73c7.png</url>
      <title>DEV Community: Ojeniran Shola</title>
      <link>https://dev.to/ojeniran_shola_bf233acd5e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ojeniran_shola_bf233acd5e"/>
    <language>en</language>
    <item>
      <title>How to setup Azure Virtual Machine</title>
      <dc:creator>Ojeniran Shola</dc:creator>
      <pubDate>Sat, 18 Apr 2026 19:32:46 +0000</pubDate>
      <link>https://dev.to/ojeniran_shola_bf233acd5e/how-to-setup-azure-virtual-machine-2nl1</link>
      <guid>https://dev.to/ojeniran_shola_bf233acd5e/how-to-setup-azure-virtual-machine-2nl1</guid>
      <description>&lt;p&gt;This Blog is about how to setup your Azure virtual Machine on Azure, connect to the virtual Machine via SSH (Secure Shell Host), install Apache 2 (as web server) and access  the VM (virtual machine) IP via a browser.&lt;/p&gt;

&lt;p&gt;Virtual Machines are cloud based computers where most servers in the world are hosted due to its cost effectiveness and easy scalability.&lt;/p&gt;

&lt;p&gt;This is a simple setup on how to setup a virtual machine on Azure:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a Resource Group&lt;/li&gt;
&lt;li&gt;Create a VNet (Virtual Network) in the newly created Resource Group. Ensure the Vnet carries a /16 private IP Address.&lt;/li&gt;
&lt;li&gt;Create a subnet inside the VNet with a /24 IP address.&lt;/li&gt;
&lt;li&gt;Create a Virtual Machine inside the newly created subnet through these simple steps:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;a. Ensure the newly created resource group is selected for the new virtual machine. Create a new name for the virtual machine and a region.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftppjxsgray1qstc0puij.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftppjxsgray1qstc0puij.png" alt="Fig 1" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;b. Select Zone, OS Image, and disk size/type&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwy75sgeay2kw14oylrp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwy75sgeay2kw14oylrp.png" alt="Fig 2" width="800" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;c. Under authentication type, select "SSH public key", create a username, and key pair name&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs87aivofxi02fkpc5iv4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs87aivofxi02fkpc5iv4.png" alt="Fig 3" width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;d. Enable inbound port (port 22 for SSH and port 80 for HTTP) for the purpose of this blog, and click on next&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvycmc3mrn98x1p31ng2y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvycmc3mrn98x1p31ng2y.png" alt="Fig 4" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;e. Under the Disks tab, make sure the default is selected (image disk 30gb) and click on next (to networking tab)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxvgw0cnz3fsdf6pg4i1b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxvgw0cnz3fsdf6pg4i1b.png" alt="Fig 5" width="800" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;f. Under the networking tab, ensure the newly created VNet is selected. Select "Basic" for NIC network security group and make sure port 80 (http) and port 22 (SSH) are selected on the inbound port field.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fspq4bf12b2j7cuq0rj5o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fspq4bf12b2j7cuq0rj5o.png" alt="Fig 6" width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fig7u12hkt049574jr5ex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fig7u12hkt049574jr5ex.png" alt="Fig 7" width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;g. Under Review and create, ensure all validations are passed. Click on "create" to open the "download SSH key pair" box for download&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2uqcztz9j3i5az2iw55.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2uqcztz9j3i5az2iw55.png" alt="Fig 8" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyhrnk2o38rl6irhnglhy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyhrnk2o38rl6irhnglhy.png" alt="Fig 9" width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzqaq971p4kwu044eujnq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzqaq971p4kwu044eujnq.png" alt="Fig 10" width="800" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5 Once the virtual machine is created, azure displays a status page to view all the features of the newly created vm.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkl1jl2246azq8bb64h65.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkl1jl2246azq8bb64h65.png" alt="Fig 11" width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6 Open GIT Bash terminal.&lt;br&gt;
   Change directory to where the ssh key was downloaded (the downloads folder in this case by using this command : &lt;strong&gt;&lt;em&gt;cd Downloads&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Log on to the virtual machine using this linux command: &lt;strong&gt;&lt;em&gt;ssh -i demovm_key.pem &lt;a href="mailto:azureuser@172.209.216.195"&gt;azureuser@172.209.216.195&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Syntax: &lt;strong&gt;&lt;em&gt;ssh -i ssh-key-filename.pem vm-username@vn-public-ip&lt;/em&gt;&lt;/strong&gt;(as seen on the status page)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7aenwljivktygx4wzzrt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7aenwljivktygx4wzzrt.png" alt="Fig 12" width="800" height="559"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7 Install the Apache2 web server using the linux command: sudo apt install Apache2&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftc5hbng5o8co4auy89x9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftc5hbng5o8co4auy89x9.png" alt="Fig 13" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8 Once installation is completed, open your browser and type the public IP as seen on the vm status page. In this case, the public IP is 172.209.216.195 and you will see an Apache 2 successful page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F986vbsz94apph911yxv6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F986vbsz94apph911yxv6.png" alt="Fig 14" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With these simple steps, you have successfully created a virtual machine on Azure, created a SSH authentication login and used GIT bash and linux commands to logon into your vm and installed a web server.&lt;/p&gt;

</description>
      <category>azure</category>
      <category>beginners</category>
      <category>cloud</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
