<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Azure on ayyzenn</title><link>https://ayyzenn.github.io/tags/azure/</link><description>Recent content in Azure on ayyzenn</description><generator>Hugo -- 0.163.3</generator><language>en-us</language><lastBuildDate>Mon, 16 Aug 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://ayyzenn.github.io/tags/azure/index.xml" rel="self" type="application/rss+xml"/><item><title>Creating a VM on Microsoft Azure</title><link>https://ayyzenn.github.io/posts/azure/</link><pubDate>Mon, 16 Aug 2021 00:00:00 +0000</pubDate><guid>https://ayyzenn.github.io/posts/azure/</guid><description>&lt;h2 id="what-i-did"&gt;What I Did&lt;/h2&gt;
&lt;p&gt;I needed a cloud server to test things without using my local machine. I spun up an &lt;strong&gt;Ubuntu 20.04 VM&lt;/strong&gt; on Azure and connected via SSH. Here&amp;rsquo;s the exact process I followed.&lt;/p&gt;
&lt;h2 id="create-the-vm"&gt;Create the VM&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Log in to &lt;a href="https://portal.azure.com"&gt;Azure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create a Resource&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Pick &lt;strong&gt;Ubuntu 20.04 LTS&lt;/strong&gt; → &lt;strong&gt;Create&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Name the VM&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Administration Account&lt;/strong&gt;, choose &lt;strong&gt;SSH Public Key&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Set a username and key pair name&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Inbound Port Rules&lt;/strong&gt;, open &lt;strong&gt;SSH (22)&lt;/strong&gt; and &lt;strong&gt;HTTP (80)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Review and Create&lt;/strong&gt; → &lt;strong&gt;Create&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Download the &lt;strong&gt;key pair&lt;/strong&gt; file when prompted&lt;/li&gt;
&lt;li&gt;Wait for deployment, then click &lt;strong&gt;Go to Resource&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="connect-via-ssh"&gt;Connect via SSH&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/Downloads
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod &lt;span style="color:#ae81ff"&gt;400&lt;/span&gt; pair_key_name.pem
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ssh -i pair_key_name.pem username@your_ip
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Type &lt;code&gt;yes&lt;/code&gt; when SSH asks about the fingerprint.&lt;/p&gt;</description></item></channel></rss>