<?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: Mohamed Yassen</title>
    <description>The latest articles on DEV Community by Mohamed Yassen (@gemy).</description>
    <link>https://dev.to/gemy</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%2F805846%2F8f5324e5-402c-473e-ba49-e57689945d8b.jpeg</url>
      <title>DEV Community: Mohamed Yassen</title>
      <link>https://dev.to/gemy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gemy"/>
    <language>en</language>
    <item>
      <title>Azure Virtual Machines</title>
      <dc:creator>Mohamed Yassen</dc:creator>
      <pubDate>Sat, 05 Feb 2022 23:46:42 +0000</pubDate>
      <link>https://dev.to/gemy/azure-virtual-machines-115f</link>
      <guid>https://dev.to/gemy/azure-virtual-machines-115f</guid>
      <description>&lt;p&gt;Azure Virtual machines and what makes it different ?&lt;/p&gt;

&lt;p&gt;first we will discuss what is Azure virtual machines and what is consists of :&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An Azure virtual machine gives you the flexibility of virtualization without having to buy and maintain the physical hardware that runs it&lt;/p&gt;

&lt;p&gt;there are 3 common ways to use Azure Vms :&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;1.Development and test.&lt;br&gt;
2.Applications in the cloud.&lt;br&gt;
3.extended datacenters.&lt;/p&gt;

&lt;p&gt;Azure virtual machines Components : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2ZvSjyy4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nf4pp6ns7pgtvws2auxi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2ZvSjyy4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nf4pp6ns7pgtvws2auxi.png" alt="Image description" width="880" height="571"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Resource Group&lt;/li&gt;
&lt;li&gt;Vm size&lt;/li&gt;
&lt;li&gt;Network&lt;/li&gt;
&lt;li&gt;Images [Ubuntu - Windows] &lt;/li&gt;
&lt;li&gt;Virtual Disk [ Storage ]&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;But How To Create Vms :&lt;br&gt;
there are four ways to create resources in Azure &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eSD8_7st--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j7i1s2wod2uistiac90d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eSD8_7st--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j7i1s2wod2uistiac90d.png" alt="Image description" width="880" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Azure Portal &lt;/li&gt;
&lt;li&gt;Azure CLI&lt;/li&gt;
&lt;li&gt;Azure Powershell[Az Module]&lt;/li&gt;
&lt;li&gt;Azure ARM Templates&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;but Note Azure Portal Cannot create VM Programmatically&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jPLufNlU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tns7lghpeaxw0frbujd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jPLufNlU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tns7lghpeaxw0frbujd.png" alt="Image description" width="880" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note the Order of these steps when you create Vms Programmatically &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create Resource Group &lt;/li&gt;
&lt;li&gt;create the Virtual Machine &lt;/li&gt;
&lt;li&gt;Ensure Remote Access Port is open &lt;/li&gt;
&lt;li&gt;retrieve the public IP address&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6xcZ3wP8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vupd7eeg0ev9kn9112vj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6xcZ3wP8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vupd7eeg0ev9kn9112vj.png" alt="Image description" width="880" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;first let's create a VM using Azure CLI :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wfADS5TA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/srmr69nsvufnagbdvla1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wfADS5TA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/srmr69nsvufnagbdvla1.png" alt="Image description" width="880" height="513"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;notice the different in creation Vm with windows image and Ubuntu image &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pSM5FXCV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oypj9u853ymx9ygcnt43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pSM5FXCV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oypj9u853ymx9ygcnt43.png" alt="Image description" width="880" height="216"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;then Enable Remote Access &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TrIyhHuF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09ul7hlbts3jwzdi478v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TrIyhHuF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09ul7hlbts3jwzdi478v.png" alt="Image description" width="880" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's Create a VM using Azure Powershell ,&lt;br&gt;
main advantage of powershell [Az Module ]&lt;/p&gt;

&lt;p&gt;idea of storing variables in powershell script&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---hJrtsj1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4t7fqr1bhi8hci2eui2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---hJrtsj1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4t7fqr1bhi8hci2eui2o.png" alt="Image description" width="880" height="425"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;and finally create a VM with ARM Templates &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4OG2SbBN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czvzhfcy10vshcicjyo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4OG2SbBN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czvzhfcy10vshcicjyo0.png" alt="Image description" width="880" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>azure</category>
      <category>az204</category>
    </item>
  </channel>
</rss>
