<?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: samuel</title>
    <description>The latest articles on DEV Community by samuel (@sammyug7).</description>
    <link>https://dev.to/sammyug7</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%2F2884267%2F2d591d07-c55f-4d61-afd1-9067a2f565d3.png</url>
      <title>DEV Community: samuel</title>
      <link>https://dev.to/sammyug7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sammyug7"/>
    <language>en</language>
    <item>
      <title>Boost your Website's Performance: How to provide Seamless Storage for the Public</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Sun, 30 Mar 2025 10:51:03 +0000</pubDate>
      <link>https://dev.to/sammyug7/boost-your-websites-performance-how-to-provide-seamless-storage-for-the-public-3iea</link>
      <guid>https://dev.to/sammyug7/boost-your-websites-performance-how-to-provide-seamless-storage-for-the-public-3iea</guid>
      <description>&lt;p&gt;In today’s digital landscape, ensuring high availability for your website is crucial to providing a seamless user experience. One of the most effective ways to achieve this is through Azure’s Storage Accounts, which offer high availability and redundancy options. This guide will walk you through the process of creating a robust, publicly accessible storage solution for your website that supports images, documents, and other media files, even during a regional outage.&lt;/p&gt;

&lt;p&gt;Step 1: Create a New Storage Account with High Availability&lt;br&gt;
Start by Accessing the Azure Portal: Open the Azure Portal and search for Storage accounts. Click on + Create to begin the process.&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%2Fjiqttznc09iguz1dr25e.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%2Fjiqttznc09iguz1dr25e.png" alt="Im" width="800" height="439"&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%2F5tr7tsvz98mjvmizvjea.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%2F5tr7tsvz98mjvmizvjea.png" alt="Ima" width="800" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select Resource Group: Choose New for the resource group, and give it a unique name, such as "WebsiteResourceGroup". Click OK to continue.&lt;/p&gt;

&lt;p&gt;Set Storage Account Name: Enter a unique storage account name, like “publicwebsite.” To ensure the name is available, you may need to add a random identifier to the end (e.g., "publicwebsite123").&lt;/p&gt;

&lt;p&gt;Choose Default Settings: Accept the default settings for performance, replication, and security, but ensure the redundancy setting is configured for high availability.&lt;/p&gt;

&lt;p&gt;Enable Read Access to the Secondary Region: In the Data management section, go to the Redundancy blade and select Read-access Geo-redundant storage (RA-GRS). This setting ensures that your data is replicated across regions, making it accessible even during a regional outage.&lt;/p&gt;

&lt;p&gt;Finalize and Deploy: Review your settings and click Create. Wait for the deployment to finish and click Go to Resource.&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%2F9svumds0bhushap59bse.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%2F9svumds0bhushap59bse.png" alt="Imag" width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Enable Anonymous Blob Access for the Public Website&lt;br&gt;
To make your website content accessible to everyone without requiring authentication:&lt;/p&gt;

&lt;p&gt;Allow Blob Anonymous Access: In the storage account, navigate to the Settings section and select Configuration. Enable the Allow blob anonymous access setting and click Save.&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%2Fsxt4exh6cmuelssnt71i.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%2Fsxt4exh6cmuelssnt71i.png" alt="Image" width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Create a Blob Storage Container for Website Content&lt;br&gt;
Next, create a container to hold your website's files such as images and documents:&lt;/p&gt;

&lt;p&gt;Navigate to Containers: In the Data storage section of the storage account, select Containers.&lt;/p&gt;

&lt;p&gt;Create a New Container: Click + Container and name the container “public.” Make sure it’s set to Private (No anonymous access) initially.&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%2Fzwbsxb6zxhms8m9nc4hw.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%2Fzwbsxb6zxhms8m9nc4hw.png" alt="Image d" width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enable Public Access: After creating the container, select it, and on the Overview blade, click Change access level. Set the Public access level to Blob (anonymous read access for blobs only).&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%2F317jrazoriutv3oz9yz3.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%2F317jrazoriutv3oz9yz3.png" alt="Image de" width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Save and Test Access: Test the public access by uploading a small file (e.g., an image or text file). Browse the file’s URL and confirm it opens or downloads correctly.&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%2Fztwhntc94jo96y5nb0v9.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%2Fztwhntc94jo96y5nb0v9.png" alt="Image desc" width="800" height="436"&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%2F7ivjvvdt7jrlsu90q3ll.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%2F7ivjvvdt7jrlsu90q3ll.png" alt="Image descr" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Enable Soft Delete for Blobs&lt;br&gt;
To protect your files from accidental deletion, enable the soft delete feature for blobs:&lt;/p&gt;

&lt;p&gt;Navigate to Blob Soft Delete Settings: In the Properties section, under the Blob service category, select Blob soft delete.&lt;/p&gt;

&lt;p&gt;Configure Retention Period: Ensure the Enable soft delete for blobs box is checked, and set the Keep deleted blobs for (in days) to 21 days. This ensures you can restore any files within 21 days if they are accidentally deleted.&lt;/p&gt;

&lt;p&gt;Save Your Settings: Don’t forget to click Save after configuring these settings.&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%2Fkl078pirvs31qhhpgiiw.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%2Fkl078pirvs31qhhpgiiw.png" alt="Image desdfhbchhfd" width="800" height="370"&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%2F7yj2v5nf98husf9qwuk1.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%2F7yj2v5nf98husf9qwuk1.png" alt="Image dyjyuytion" width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 5: Practice Restoring Deleted Files Using Soft Delete&lt;br&gt;
Delete a File: Go to your public container, select a file, and click Delete.&lt;/p&gt;

&lt;p&gt;Restore the File: After deletion, toggle the slider to Show deleted blobs. Select the deleted file and choose Undelete. This will restore the file back to the container.&lt;/p&gt;

&lt;p&gt;Confirm Restoration: Refresh the container, and you should see the file has been restored.&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%2Fn6rmn9fkgjd6eir35sth.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%2Fn6rmn9fkgjd6eir35sth.png" alt="Image ghvjhjt" width="800" height="360"&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%2Fkzju8m2vq4a6mlngta3x.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%2Fkzju8m2vq4a6mlngta3x.png" alt="Image dtuitution" width="800" height="370"&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%2Fcs6c8l19tfxzbyxheaoz.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%2Fcs6c8l19tfxzbyxheaoz.png" alt="Image descrvjjfon" width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 6: Enable Blob Versioning&lt;br&gt;
To track different versions of your website documents, enable blob versioning:&lt;/p&gt;

&lt;p&gt;Navigate to Blob Versioning Settings: In the Properties section of your storage account, go to Versioning under Blob service.&lt;/p&gt;

&lt;p&gt;Enable Versioning: Check the Enable versioning for blobs box to ensure all versions of your documents are saved automatically. You can choose whether to keep all versions or delete older versions after a certain period.&lt;/p&gt;

&lt;p&gt;Save Your Settings: Click Save to apply the versioning settings.&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%2Ff88lac05pxyrzcrann2k.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%2Ff88lac05pxyrzcrann2k.png" alt="Image dfurtu576n" width="800" height="447"&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%2Fy9cnvdymezm70oilo0y6.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%2Fy9cnvdymezm70oilo0y6.png" alt="Image desfcnnon" width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 7: Test Blob Versioning&lt;br&gt;
Upload a New Version of a File: Upload a new version of an existing file in your container. This will overwrite the previous version.&lt;/p&gt;

&lt;p&gt;Check Previous Versions: Go to the Show deleted blobs page, where you’ll see the old version listed. You can restore it if needed.&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%2F4hlphvetihokc8wsqdil.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%2F4hlphvetihokc8wsqdil.png" alt="Image dhfhty" width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
By following these steps, you've created a highly available, publicly accessible storage solution for your website that ensures high uptime, automatic redundancy, and protection against accidental deletions. You’ve also set up essential features such as soft delete and versioning to safeguard your website’s content. With these configurations, you can rest easy knowing your website’s files are safe, accessible, and ready to serve your users even in the event of a regional failure.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>cloud</category>
      <category>azure</category>
      <category>devops</category>
    </item>
    <item>
      <title>Mastering Azure: A Step-by-Step Guide to Creating a Storage Account</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Wed, 26 Mar 2025 16:52:09 +0000</pubDate>
      <link>https://dev.to/sammyug7/mastering-azure-a-step-by-step-guide-to-creating-a-storage-account-2624</link>
      <guid>https://dev.to/sammyug7/mastering-azure-a-step-by-step-guide-to-creating-a-storage-account-2624</guid>
      <description>&lt;p&gt;Azure provides a highly scalable and secure platform for storing data, and one of its most fundamental services is Azure Storage. Whether you are storing files, blobs, or data for your web and mobile applications, Azure Storage accounts provide a reliable and cost-effective solution. In this guide, we’ll walk you through the process of creating a storage account in Azure using both the Azure Portal and Azure CLI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before creating an Azure Storage account, ensure that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You have an active Azure subscription. If you don't have one, you can sign up for a free account &lt;a href="https://azure.microsoft.com/en-us/free/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;You have an Azure Active Directory (AD) account with the necessary permissions to create resources in the Azure subscription.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step-by-Step Guide to Creating a Storage Account in Azure
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Method 1: Using the Azure Portal
&lt;/h3&gt;

&lt;p&gt;The Azure Portal offers a user-friendly graphical interface for managing Azure resources. Here’s how you can create a storage account using the Azure Portal:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Sign in to the Azure Portal&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Visit &lt;a href="https://portal.azure.com/" rel="noopener noreferrer"&gt;portal.azure.com&lt;/a&gt; and log in with your Azure account credentials.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fp1v33ko7pm51og3hqcjd.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%2Fp1v33ko7pm51og3hqcjd.png" alt="Ben" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Navigate to Storage Accounts&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;In the left sidebar, click on &lt;strong&gt;“Create a resource.”&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;In the search box, type &lt;strong&gt;“Storage Account”&lt;/strong&gt; and select &lt;strong&gt;“Storage Account”&lt;/strong&gt; from the list of options.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2F0pecxf9ddm3bap8xnfm4.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%2F0pecxf9ddm3bap8xnfm4.png" alt="Storage no bad" width="800" height="451"&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%2Fk6w0bof1ma2qhntqohdw.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%2Fk6w0bof1ma2qhntqohdw.png" alt="Image descripkdhhfn" width="800" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Configure the Storage Account&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Subscription&lt;/strong&gt;: Choose the Azure subscription you want to use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource Group&lt;/strong&gt;: Either select an existing resource group or create a new one by clicking on &lt;strong&gt;“Create new.”&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage Account Name&lt;/strong&gt;: Choose a unique name for your storage account. This name must be between 3 and 24 characters and can contain only lowercase letters and numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Region&lt;/strong&gt;: Select the Azure region where the storage account will be created. Choose a region close to your users to reduce latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance&lt;/strong&gt;: You can choose between two performance tiers:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Standard&lt;/strong&gt;: Best for most workloads and offers cost-effective performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Premium&lt;/strong&gt;: Designed for high-performance workloads with lower latency.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account Kind&lt;/strong&gt;: You can select from several account types based on your needs:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;StorageV2 (general-purpose v2)&lt;/strong&gt;: Most versatile, supports blob, file, and table storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BlobStorage&lt;/strong&gt;: Optimized for storing large amounts of unstructured data, such as text and binary data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;General-purpose v1&lt;/strong&gt;: Older version, not recommended for new workloads.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replication&lt;/strong&gt;: Choose how your data will be replicated:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Locally redundant storage (LRS)&lt;/strong&gt;: Data is replicated three times within a region.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Geo-redundant storage (GRS)&lt;/strong&gt;: Data is replicated across regions for higher availability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read-access geo-redundant storage (RA-GRS)&lt;/strong&gt;: Same as GRS but allows read access to the secondary region.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fu0rnrgw8z4qjx98hb0kl.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%2Fu0rnrgw8z4qjx98hb0kl.png" alt="Image n" width="800" height="473"&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%2F4lpmv1rni2byso412qi1.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%2F4lpmv1rni2byso412qi1.png" alt="Image deptn" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Advanced Settings&lt;/strong&gt; (Optional):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can configure additional settings such as networking, access control, and encryption. For most users, the default options are sufficient.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Review + Create&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After configuring your storage account, click &lt;strong&gt;“Review + Create.”&lt;/strong&gt; Azure will validate the settings you’ve chosen.&lt;/li&gt;
&lt;li&gt;If everything looks good, click &lt;strong&gt;“Create”&lt;/strong&gt; to start the deployment process.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fq07f37awmmge8jrav4hh.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%2Fq07f37awmmge8jrav4hh.png" alt="Imagtuidb" width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Wait for Deployment&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;It will take a few moments for Azure to create the storage account. Once the process is complete, you will be notified, and you can access your new storage account from the &lt;strong&gt;Storage Accounts&lt;/strong&gt; section of the Azure Portal.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fhfewwrsc6zy0fyjplbwc.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%2Fhfewwrsc6zy0fyjplbwc.png" alt="Notification" width="800" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Method 2: Using Azure CLI
&lt;/h3&gt;

&lt;p&gt;Azure CLI is a powerful tool for managing Azure resources via the command line. If you prefer automation or scripting, here’s how to create a storage account using Azure CLI.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Install Azure CLI&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you haven't already, install the &lt;a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli" rel="noopener noreferrer"&gt;Azure CLI&lt;/a&gt; on your system.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Sign in to Azure CLI&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open a terminal or command prompt and log in to your Azure account by typing:
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; az login
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&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%2Fxhpf48qf9d7oapzd40rh.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%2Fxhpf48qf9d7oapzd40rh.png" alt="Image login" width="800" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Make sure to follow the log in link)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Create a Resource Group&lt;/strong&gt; (if necessary):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you don’t already have a resource group, create one with the following command:
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; az group create &lt;span class="nt"&gt;--name&lt;/span&gt; MyResourceGroup &lt;span class="nt"&gt;--location&lt;/span&gt; eastus
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Replace &lt;code&gt;MyResourceGroup&lt;/code&gt; with your desired resource group name and &lt;code&gt;eastus&lt;/code&gt; with your preferred 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%2Fo4em068gsr2o4bvve3c9.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%2Fo4em068gsr2o4bvve3c9.png" alt="Image Resource" width="800" height="211"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Create the Storage Account&lt;/strong&gt;:   - Run the following command to create a storage account:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; az storage account create &lt;span class="nt"&gt;--name&lt;/span&gt; mystorageaccount &lt;span class="nt"&gt;--resource-group&lt;/span&gt; MyResourceGroup &lt;span class="nt"&gt;--location&lt;/span&gt; eastus &lt;span class="nt"&gt;--sku&lt;/span&gt; Standard_LRS &lt;span class="nt"&gt;--kind&lt;/span&gt; StorageV2
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&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%2F7p1uhx3m8c9x3hagcn09.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%2F7p1uhx3m8c9x3hagcn09.png" alt="Image script" width="800" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here’s a breakdown of the parameters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--name mystorageaccount&lt;/code&gt;: Specify a unique name for your storage account.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--resource-group MyResourceGroup&lt;/code&gt;: The resource group where the storage account will be created.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--location eastus&lt;/code&gt;: The region where the storage account will reside.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--sku Standard_LRS&lt;/code&gt;: The replication type (Standard_LRS stands for locally redundant storage).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--kind StorageV2&lt;/code&gt;: Specifies the account type (StorageV2 is the most flexible).&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Confirm Creation&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After running the command, you should receive a JSON output with details about your storage account, including the resource ID and location.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Access Your Storage Account&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To manage your storage account or list the storage account details, you can use commands like:
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; az storage account show &lt;span class="nt"&gt;--name&lt;/span&gt; mystorageaccount &lt;span class="nt"&gt;--resource-group&lt;/span&gt; MyResourceGroup
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&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%2Fv51oevcimt9jk2egu443.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%2Fv51oevcimt9jk2egu443.png" alt="Script" width="800" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Creating a storage account in Azure is a straightforward process, whether you prefer to use the Azure Portal for a graphical interface or Azure CLI for automation and scripting. Once your storage account is created, you can start using it to store various types of data, including blobs, files, queues, and tables, depending on your needs.&lt;/p&gt;

&lt;p&gt;Azure Storage provides excellent scalability, reliability, and security, making it ideal for storing application data, backup solutions, and much more.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>devops</category>
      <category>discuss</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Effortless Azure VM Deployment and IIS Setup Using PowerShell in Cloud Shell</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Wed, 26 Mar 2025 10:50:15 +0000</pubDate>
      <link>https://dev.to/sammyug7/effortless-azure-vm-deployment-and-iis-setup-using-powershell-in-cloud-shell-58e</link>
      <guid>https://dev.to/sammyug7/effortless-azure-vm-deployment-and-iis-setup-using-powershell-in-cloud-shell-58e</guid>
      <description>&lt;p&gt;Azure Cloud Shell is a sophisticated tool that lets you manage Azure resources without having to set up a local development environment.  It comes with all of the necessary Azure tools preinstalled and configured, making it easy for users to run scripts right from their browser.  In this post, we'll go over how to construct a Windows Virtual Machine (VM) in Azure using PowerShell and Azure Cloud Shell.  In addition, we will deploy a web server (IIS) on the virtual machine and clean up the resources after use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Launch Azure Cloud Shell
&lt;/h2&gt;

&lt;p&gt;Azure Cloud Shell is a free browser-based shell that allows you to run Azure commands interactively.  To begin, launch Cloud Shell by following these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open Cloud Shell&lt;/strong&gt;: In the Azure portal, click the Cloud Shell symbol in the upper right corner of the page.  If you're not in the portal, you can activate the Cloud Shell by visiting:(&lt;a href="https://shell.azure.com/powershell" rel="noopener noreferrer"&gt;https://shell.azure.com/powershell&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cloud Shell will launch with a preconfigured environment that is ready for use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create an Azure Resource Group
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;resource group&lt;/strong&gt; is a container in Azure that holds related resources for an Azure solution. We will start by creating a resource group using the &lt;code&gt;New-AzResourceGroup&lt;/code&gt; cmdlet. Here’s how you can do it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;New-AzResourceGroup&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myResourceGroup'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Location&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'eastus'&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fzufhf30r3cqadvtq5eih.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%2Fzufhf30r3cqadvtq5eih.png" alt="Give Up" width="800" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This command creates a new resource group named &lt;code&gt;myResourceGroup&lt;/code&gt; in the East US region. You can change the name or location as per your requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Create a Virtual Machine
&lt;/h2&gt;

&lt;p&gt;Now that we have a resource group, we can create a Windows Virtual Machine. The &lt;code&gt;New-AzVM&lt;/code&gt; cmdlet allows you to create a virtual machine in Azure. It automatically handles the creation of other resources such as the network interface, virtual network, public IP, and more, as part of the VM creation process.&lt;/p&gt;

&lt;p&gt;Run the following command to create a VM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;New-AzVm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-ResourceGroupName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myResourceGroup'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myVM'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Location&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'eastus'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Image&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edition:latest'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-VirtualNetworkName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myVnet'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-SubnetName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'mySubnet'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-SecurityGroupName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myNetworkSecurityGroup'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-PublicIpAddressName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myPublicIpAddress'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-OpenPorts&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;3389&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fb2qapw8mhroau9q3619v.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%2Fb2qapw8mhroau9q3619v.png" alt="Imagin" width="800" height="380"&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%2Fhv1p2kb67ru7rt04xznq.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%2Fhv1p2kb67ru7rt04xznq.png" alt="Imagination" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Explanation of Parameters:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-ResourceGroupName&lt;/code&gt;: The resource group where the VM will reside (&lt;code&gt;myResourceGroup&lt;/code&gt; in this case).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-Name&lt;/code&gt;: The name of the VM (&lt;code&gt;myVM&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-Location&lt;/code&gt;: The Azure region where the VM will be deployed (East US).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-Image&lt;/code&gt;: The operating system image for the VM. We’ve selected the Windows Server 2022 Datacenter edition.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-VirtualNetworkName&lt;/code&gt;: Name of the virtual network to which the VM will be connected.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-SubnetName&lt;/code&gt;: The subnet within the virtual network where the VM will be deployed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-SecurityGroupName&lt;/code&gt;: The network security group to apply to the VM for controlling inbound and outbound traffic.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-PublicIpAddressName&lt;/code&gt;: Name of the public IP address that will be assigned to the VM.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-OpenPorts&lt;/code&gt;: Ports to be opened on the VM (port 80 for HTTP and port 3389 for RDP).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once executed, the VM and all associated resources will be created.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Install IIS Web Server
&lt;/h2&gt;

&lt;p&gt;Once the VM is up and running, you can use PowerShell to run commands on the VM. Let’s install IIS (Internet Information Services) to view a basic web server in action.&lt;/p&gt;

&lt;p&gt;To install IIS on the newly created VM, use the &lt;code&gt;Invoke-AzVMRunCommand&lt;/code&gt; cmdlet to run a PowerShell script remotely on the VM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Invoke-AzVMRunCommand&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ResourceGroupName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myResourceGroup'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-VMName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myVM'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-CommandId&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'RunPowerShellScript'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ScriptString&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'Install-WindowsFeature -Name Web-Server -IncludeManagementTools'&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fewc5i5nqyfpih5enfdhx.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%2Fewc5i5nqyfpih5enfdhx.png" alt="Imatiitjf" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This command installs the IIS web server along with the necessary management tools. The &lt;code&gt;-ScriptString&lt;/code&gt; parameter specifies the PowerShell script to be executed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: View the Web Server
&lt;/h2&gt;

&lt;p&gt;After IIS has been installed, the next step is to access the web server from a browser. The VM is assigned a public IP address, which can be used to access the web server from any machine.&lt;/p&gt;

&lt;p&gt;To get the public IP address of your VM, you can run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$publicIp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Get-AzPublicIpAddress&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ResourceGroupName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myResourceGroup'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myPublicIpAddress'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IpAddress&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nx"&gt;Write-Host&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Access your web server at: http://&lt;/span&gt;&lt;span class="nv"&gt;$publicIp&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F28bybwxqe66gwv96dn20.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%2F28bybwxqe66gwv96dn20.png" alt="describe" width="800" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you have the public IP address, open a web browser and navigate to &lt;code&gt;http://&amp;lt;public_ip&amp;gt;&lt;/code&gt;. You should see the default IIS welcome page, confirming that the IIS web server is successfully running on your 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%2Fbbhay9tqnydsh1u8ldzy.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%2Fbbhay9tqnydsh1u8ldzy.png" alt="Image had to " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Clean Up Resources
&lt;/h2&gt;

&lt;p&gt;When you're done using the virtual machine and its associated resources, it's important to clean up to avoid incurring unnecessary charges. You can easily remove the resource group, which will delete the VM and all related resources, by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Remove-AzResourceGroup&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'myResourceGroup'&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fcar0ykcxpzsb2pophcff.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%2Fcar0ykcxpzsb2pophcff.png" alt="TH end" width="800" height="209"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This command deletes the entire resource group, including the VM, networking resources, and other components, so that you are not charged for unneeded resources.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Creating and managing Azure resources with PowerShell is a powerful and efficient way to automate infrastructure deployment. In this guide, we demonstrated how to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Launch Azure Cloud Shell and create a resource group.&lt;/li&gt;
&lt;li&gt;Deploy a Windows Virtual Machine.&lt;/li&gt;
&lt;li&gt;Install a web server (IIS) on the VM.&lt;/li&gt;
&lt;li&gt;View the web server through a browser.&lt;/li&gt;
&lt;li&gt;Clean up resources when no longer needed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Using Azure Cloud Shell and PowerShell together simplifies the process of working with Azure, providing automation and control over cloud infrastructure.  Following these instructions will allow you to effortlessly establish, manage, and clean up virtual machines and other Azure resources.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>cloud</category>
      <category>azure</category>
    </item>
    <item>
      <title>"Mastering High Availability: A Step-by-Step Guide to Creating a Load Balancer in Azure"</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Tue, 11 Mar 2025 17:11:01 +0000</pubDate>
      <link>https://dev.to/sammyug7/mastering-high-availability-a-step-by-step-guide-to-creating-a-load-balancer-in-azure-28k4</link>
      <guid>https://dev.to/sammyug7/mastering-high-availability-a-step-by-step-guide-to-creating-a-load-balancer-in-azure-28k4</guid>
      <description>&lt;h1&gt;
  
  
  How to Create a Load Balancer in Azure
&lt;/h1&gt;

&lt;p&gt;When building a scalable and highly available application in the cloud, one of the critical components to ensure efficient distribution of traffic is a load balancer. Azure provides a robust load balancing solution that can automatically distribute incoming network traffic across multiple backend resources, such as virtual machines, ensuring high availability and reliability. This article will walk you through the process of creating a load balancer in Azure.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Load Balancer in Azure?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;Load Balancer&lt;/strong&gt; is a fully managed service in Azure that enables you to distribute incoming traffic across multiple virtual machines (VMs) or services to ensure no single machine becomes a bottleneck. This improves the scalability, performance, and availability of your application. Azure Load Balancer works at the transport layer (Layer 4) of the OSI model, handling traffic on both TCP and UDP protocols.&lt;/p&gt;

&lt;p&gt;Azure offers two types of load balancers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Public Load Balancer:&lt;/strong&gt; Used to distribute traffic from the internet to your virtual machines in a virtual network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internal Load Balancer (ILB):&lt;/strong&gt; Used to distribute traffic among VMs within a private virtual network, typically for internal services.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before you create an Azure Load Balancer, ensure you have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An &lt;strong&gt;Azure subscription&lt;/strong&gt; (If you don’t have one, you can create a free account).&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;resource group&lt;/strong&gt; to organize your resources.&lt;/li&gt;
&lt;li&gt;At least two &lt;strong&gt;virtual machines&lt;/strong&gt; deployed within the same virtual network to simulate a real-world scenario.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Steps to Create a Load Balancer in Azure
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Create a Resource Group (if not already created)
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;resource group&lt;/strong&gt; is a logical container that holds Azure resources. It is good practice to keep your resources organized under one resource group.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to the &lt;strong&gt;Azure portal&lt;/strong&gt; (&lt;a href="https://portal.azure.com" rel="noopener noreferrer"&gt;https://portal.azure.com&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;In the left sidebar, select &lt;strong&gt;Resource groups&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;+ Add&lt;/strong&gt; to create a new resource group.&lt;/li&gt;
&lt;li&gt;Enter the &lt;strong&gt;name&lt;/strong&gt; and &lt;strong&gt;region&lt;/strong&gt; of your resource group and click &lt;strong&gt;Review + Create&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  2. Deploy Virtual Machines (VMs)
&lt;/h3&gt;

&lt;p&gt;Next, you’ll need to deploy at least two VMs that will be part of your backend pool, as Azure Load Balancer will distribute traffic among them.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to the &lt;strong&gt;Azure portal&lt;/strong&gt;, select &lt;strong&gt;Virtual machines&lt;/strong&gt; in the sidebar.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;+ Add&lt;/strong&gt; and follow the prompts to create two VMs in the same resource group and region.&lt;/li&gt;
&lt;li&gt;Ensure that the VMs have the same configuration (e.g., same operating system, same size).&lt;/li&gt;
&lt;li&gt;Install a simple web server or any other test application on both VMs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;See how to create and deploy Vms on my previous article.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Create the Load Balancer
&lt;/h3&gt;

&lt;p&gt;Now, we will create the Azure Load Balancer.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;strong&gt;Azure portal&lt;/strong&gt;, click on &lt;strong&gt;Create a resource&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Search for &lt;strong&gt;Load Balancer&lt;/strong&gt; in the marketplace and click on it.&lt;/li&gt;
&lt;/ol&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%2Fzoeqkpyh3nx77ghgbdfi.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%2Fzoeqkpyh3nx77ghgbdfi.png" alt="Balance load" width="800" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Create&lt;/strong&gt; to begin the process.&lt;/li&gt;
&lt;/ol&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%2Fjg4crj9nrpz6ql9zabca.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%2Fjg4crj9nrpz6ql9zabca.png" alt="Engineer" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configure the Load Balancer:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Name&lt;/strong&gt;: Give your Load Balancer a unique name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Region&lt;/strong&gt;: Select the region where your VMs are deployed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SKU&lt;/strong&gt;: Choose the &lt;strong&gt;Standard&lt;/strong&gt; SKU for a production-ready load balancer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Type&lt;/strong&gt;: Choose between &lt;strong&gt;Public&lt;/strong&gt; or &lt;strong&gt;Internal&lt;/strong&gt; based on your requirements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Click &lt;strong&gt;Next&lt;/strong&gt; to proceed to the &lt;strong&gt;Frontend IP configuration&lt;/strong&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%2F9cctkz02if495twtlqxv.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%2F9cctkz02if495twtlqxv.png" alt="Medical description" width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Configure Frontend IP Address
&lt;/h3&gt;

&lt;p&gt;The frontend IP address is the IP address that clients use to access your application. If you are using a Public Load Balancer, this IP will be accessible over the internet.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;For &lt;strong&gt;Public Load Balancer&lt;/strong&gt;, select &lt;strong&gt;Public IP address&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose &lt;strong&gt;Create new&lt;/strong&gt; for the public IP address.&lt;/li&gt;
&lt;li&gt;Provide a name for the public IP and choose the &lt;strong&gt;IP version&lt;/strong&gt; (IPv4 is typical).&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Dynamic&lt;/strong&gt; or &lt;strong&gt;Static&lt;/strong&gt; depending on your needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For &lt;strong&gt;Internal Load Balancer&lt;/strong&gt;, select &lt;strong&gt;Private IP address&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose the &lt;strong&gt;virtual network&lt;/strong&gt; and &lt;strong&gt;subnet&lt;/strong&gt; for the internal IP.&lt;/li&gt;
&lt;li&gt;The IP will be used internally within your network.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Click &lt;strong&gt;Next&lt;/strong&gt; to move on to the &lt;strong&gt;Backend Pools&lt;/strong&gt; configuration.&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%2F20152yad97wl2zbr48j1.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%2F20152yad97wl2zbr48j1.png" alt="Image giot" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Configure Backend Pools
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;backend pool&lt;/strong&gt; consists of the resources (in this case, your virtual machines) that will receive traffic from the load balancer.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Click on &lt;strong&gt;+ Add a backend pool&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Provide a name for the backend pool.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;+ Add&lt;/strong&gt; to add your virtual machines to the pool.

&lt;ul&gt;
&lt;li&gt;Select the VMs that you created earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once added, click &lt;strong&gt;Add&lt;/strong&gt; to finish.&lt;/li&gt;
&lt;/ol&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%2Fb3mzqv25nff8yn2vcyxx.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%2Fb3mzqv25nff8yn2vcyxx.png" alt="Ima10h" width="800" height="459"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Next&lt;/strong&gt; to proceed to &lt;strong&gt;Health Probes&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Configure Health Probes
&lt;/h3&gt;

&lt;p&gt;Health probes help Azure determine the health of your backend VMs. These probes ensure that traffic is only directed to healthy VMs.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Click on &lt;strong&gt;+ Add a health probe&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Provide a name for the health probe.&lt;/li&gt;
&lt;li&gt;Choose the &lt;strong&gt;protocol&lt;/strong&gt; (TCP, HTTP, or HTTPS) based on your application.&lt;/li&gt;
&lt;li&gt;Set the &lt;strong&gt;port&lt;/strong&gt; to the port your application listens on (e.g., port 80 for a web server).&lt;/li&gt;
&lt;li&gt;Configure the &lt;strong&gt;interval&lt;/strong&gt; and &lt;strong&gt;unhealthy threshold&lt;/strong&gt; based on your requirements.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Click &lt;strong&gt;Next&lt;/strong&gt; to proceed to the &lt;strong&gt;Load Balancing Rules&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Configure Load Balancing Rules
&lt;/h3&gt;

&lt;p&gt;Load balancing rules define how the traffic is distributed between the backend pool members.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;+ Add a load balancing rule&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Provide a name for the rule.&lt;/li&gt;
&lt;li&gt;Choose the &lt;strong&gt;frontend IP&lt;/strong&gt; (the one you created earlier).&lt;/li&gt;
&lt;li&gt;Set the &lt;strong&gt;backend pool&lt;/strong&gt; (the one you just created).&lt;/li&gt;
&lt;li&gt;Choose the &lt;strong&gt;protocol&lt;/strong&gt; (TCP or UDP) and set the &lt;strong&gt;port&lt;/strong&gt; (e.g., port 80).&lt;/li&gt;
&lt;li&gt;Set the &lt;strong&gt;health probe&lt;/strong&gt; you created earlier.&lt;/li&gt;
&lt;li&gt;Configure the &lt;strong&gt;session persistence&lt;/strong&gt; if needed (for sticky sessions).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Click &lt;strong&gt;Review + Create&lt;/strong&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%2Ftr1n2s4lewfrhpzwio1v.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%2Ftr1n2s4lewfrhpzwio1v.png" alt="Image dliyutrn" width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Review and Create
&lt;/h3&gt;

&lt;p&gt;Azure will now validate your configurations. If everything looks good, click &lt;strong&gt;Create&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Azure will provision the load balancer, backend pool, health probe, and load balancing rules. Once the deployment is complete, you will have a functioning load balancer that distributes traffic to your backend virtual machines.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Test the Load Balancer
&lt;/h3&gt;

&lt;p&gt;To verify that the load balancer is working correctly, you can:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Access the &lt;strong&gt;frontend IP address&lt;/strong&gt; of the Load Balancer (the public IP or private IP depending on the configuration).&lt;/li&gt;
&lt;li&gt;You should be routed to one of your backend virtual machines based on the load balancing rule you set.&lt;/li&gt;
&lt;li&gt;Refresh the page or try multiple times to confirm that traffic is being distributed between the VMs.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Creating a load balancer in Azure ensures that your application can scale and maintain high availability by distributing traffic across multiple backend VMs. By following the steps outlined above, you can create a robust load balancing solution using Azure Load Balancer. Whether you are building a public-facing website or a private application, Azure’s load balancing features help improve the reliability and performance of your infrastructure. &lt;/p&gt;

&lt;p&gt;Be sure to explore other advanced options such as &lt;strong&gt;application gateway&lt;/strong&gt; or &lt;strong&gt;Azure Traffic Manager&lt;/strong&gt; if you have more complex traffic management needs, including layer 7 load balancing, global distribution, or content-based routing.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>writing</category>
      <category>cloudcomputing</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Creating an Azure Compute Gallery and Capturing the Image of a Virtual Machine (VM)</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Fri, 07 Mar 2025 13:43:50 +0000</pubDate>
      <link>https://dev.to/sammyug7/creating-an-azure-compute-gallery-and-capturing-the-image-of-a-virtual-machine-vm-1n39</link>
      <guid>https://dev.to/sammyug7/creating-an-azure-compute-gallery-and-capturing-the-image-of-a-virtual-machine-vm-1n39</guid>
      <description>&lt;p&gt;Azure Compute Gallery is a powerful feature in Azure that enables users to efficiently manage and share VM images across multiple subscriptions and regions. It provides a centralized location to store images and simplifies the deployment of consistent environments across your organization or across your Azure infrastructure. In this article, we will walk through the steps of creating an Azure Compute Gallery and capturing the image of a VM, with an emphasis on the state of the VM being specialized. We’ll also discuss when you might want to generalize the VM instead.&lt;/p&gt;

&lt;h4&gt;
  
  
  Prerequisites:
&lt;/h4&gt;

&lt;p&gt;Before beginning, make sure you have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An active Azure subscription.&lt;/li&gt;
&lt;li&gt;Azure CLI or Azure PowerShell installed and configured.&lt;/li&gt;
&lt;li&gt;Basic understanding of Azure Virtual Machines and image creation.&lt;/li&gt;
&lt;li&gt;A VM in Azure that is in the desired configuration for capturing.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Step 1: Create an Azure Compute Gallery
&lt;/h3&gt;

&lt;p&gt;First, let’s set up the Azure Compute Gallery to store and manage your VM images.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Navigate to Azure Portal:&lt;/strong&gt;
Go to the &lt;a href="https://portal.azure.com/" rel="noopener noreferrer"&gt;Azure Portal&lt;/a&gt; and log into your account.&lt;/li&gt;
&lt;/ol&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%2Flk0vw9b7pxpnudqobyw5.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%2Flk0vw9b7pxpnudqobyw5.png" alt="logs" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a Compute Gallery:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;In the search bar at the top, search for "Azure Compute Gallery" and click on "Create."&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fjj4yho2dnvvegeuyebd2.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%2Fjj4yho2dnvvegeuyebd2.png" alt="Create" width="800" height="420"&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%2F7ivb4phmdqi5icit7rbo.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%2F7ivb4phmdqi5icit7rbo.png" alt="Image click" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fill out the required details:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Subscription&lt;/strong&gt;: Choose the subscription in which the gallery will be created.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource Group&lt;/strong&gt;: Select an existing resource group or create a new one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gallery Name&lt;/strong&gt;: Provide a unique name for the gallery.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Region&lt;/strong&gt;: Select the region where the gallery will be created (it’s recommended to place the gallery in a region close to where most of your VMs reside).&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Click on &lt;strong&gt;Review + Create&lt;/strong&gt; and then &lt;strong&gt;Create&lt;/strong&gt; to deploy the gallery.&lt;/li&gt;

&lt;/ul&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%2Fa51vb4444cqhvedsd7va.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%2Fa51vb4444cqhvedsd7va.png" alt="Imaging" width="800" height="420"&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%2F0ktv61pr8y20tyft04d0.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%2F0ktv61pr8y20tyft04d0.png" alt="Imagetion" width="800" height="462"&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%2F0lvf47d7gpmu3bez17sb.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%2F0lvf47d7gpmu3bez17sb.png" alt="Imageyviption" width="800" height="379"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 2: Prepare the Virtual Machine (VM)
&lt;/h3&gt;

&lt;p&gt;Before capturing an image, ensure the VM is configured and ready to be captured. It’s essential that the VM is in the correct state.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Access the VM:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;In the Azure Portal, navigate to your VM, ensuring it is in the desired state, with all necessary applications, configurations, and updates installed.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Ffr82dxtc1x082nk2ftsm.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%2Ffr82dxtc1x082nk2ftsm.png" alt="Image nfuix" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Configure the VM for Image Capture:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;If you want the VM to be specialized, it means the machine has unique configurations like specific user settings, applications, and data. The specialized state is typically required if you intend to use the image for subsequent VM deployments where those customizations should persist.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Specialized vs. Generalized VM&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Specialized VM&lt;/strong&gt;: This is a VM that has been fully configured with custom settings. It is generally used when the machine will act as a template for an environment that needs to maintain specific configuration or software settings. It is &lt;strong&gt;not suitable for creating images that will be used across multiple tenants or environments&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generalized VM&lt;/strong&gt;: This is a VM that has been generalized to remove any unique configurations like user accounts or specific machine-specific data, making it ideal for creating reusable, uniform VM images that can be used to create new VMs. A generalized VM is prepared by running the command &lt;code&gt;sysprep&lt;/code&gt; in Windows or &lt;code&gt;deprovision&lt;/code&gt; in Linux. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  Step 3: Capture the Image of the Specialized VM
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Ensure the VM is in Specialized State&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the VM is configured correctly, and you want to capture it as a specialized image, leave the VM in its current state. If it is generalized, refer to the next section for instructions on how to generalize it.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Capture the Image&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To capture the image of the VM, follow these steps:

&lt;ul&gt;
&lt;li&gt;In the Azure Portal, go to the &lt;strong&gt;VM&lt;/strong&gt; and select &lt;strong&gt;Capture&lt;/strong&gt; from the top menu.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fa89o92gzs9os9vmwz70t.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%2Fa89o92gzs9os9vmwz70t.png" alt="Image capion" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; - Name your image, and select the **Compute Gallery** you just created.
 - Choose the **Image version** (this is how you will track different versions of your image).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fbelr4adkm40iae27c0xz.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%2Fbelr4adkm40iae27c0xz.png" alt="Eazy" width="800" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; - Make sure to check the box that indicates the VM is **specialized** and **not generalized**.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Flu3xqx6oi2hezxvte1ci.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%2Flu3xqx6oi2hezxvte1ci.png" alt="Image specialized" width="800" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; - Confirm that you understand the implications of capturing a specialized image.
 - Click **Create** to capture the image.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fiirq1jhgo9fr404zfyff.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%2Fiirq1jhgo9fr404zfyff.png" alt="Imlet" width="800" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The VM image is now stored in your Azure Compute Gallery and can be used to deploy new VMs with the same configuration.&lt;/p&gt;




&lt;h3&gt;
  
  
  When to Generalize a VM
&lt;/h3&gt;

&lt;p&gt;While we focused on capturing a specialized image, there are situations where you may want to generalize the VM instead. The primary use case for generalizing a VM is when you need to create a reusable, standardized image for scaling purposes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Generalizing the VM&lt;/strong&gt;:
To generalize the VM, use the following process (for Windows VMs, the &lt;code&gt;sysprep&lt;/code&gt; tool is used, while Linux VMs use the &lt;code&gt;deprovision&lt;/code&gt; command):&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;For Windows VMs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the &lt;strong&gt;Command Prompt&lt;/strong&gt; inside the VM.&lt;/li&gt;
&lt;li&gt;Run the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   sysprep /oobe /shutdown /generalize
&lt;/code&gt;&lt;/pre&gt;



&lt;ul&gt;
&lt;li&gt;This command prepares the VM by removing unique machine-specific data and settings. The VM will shut down once the process is completed.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;For Linux VMs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the terminal inside the VM.&lt;/li&gt;
&lt;li&gt;Run the command to deprovision the VM:
&lt;/li&gt;
&lt;/ul&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   sudo waagent -deprovision+user -force
&lt;/code&gt;&lt;/pre&gt;



&lt;ul&gt;
&lt;li&gt;This will remove any user-specific data and settings, preparing the VM for image capture.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Capture the Image After Generalization&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Once the VM is generalized, you can proceed with capturing the image by following the same steps we used to capture the specialized image, but this time, the VM image will be available for widespread deployment and will not contain unique data.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Step 4: Use the Image from the Azure Compute Gallery
&lt;/h3&gt;

&lt;p&gt;Once you have captured the image, whether specialized or generalized, it’s available in your Azure Compute Gallery. You can use it to deploy new virtual machines within the same region or across different regions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Deploying VMs from the Compute Gallery&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;In the Azure Portal, go to the &lt;strong&gt;Compute Gallery&lt;/strong&gt; and select the image you captured.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2F8dt6ryf7peu7kvg3x2p6.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%2F8dt6ryf7peu7kvg3x2p6.png" alt="Imag up" width="800" height="420"&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%2Fm3wie8et3voc99p1h80i.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%2Fm3wie8et3voc99p1h80i.png" alt="Image desc" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose &lt;strong&gt;Create VM&lt;/strong&gt; to initiate the deployment process.&lt;/li&gt;
&lt;/ul&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%2F9tj21dnqtmcryatl1uuz.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%2F9tj21dnqtmcryatl1uuz.png" alt="Image dddd" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Follow the prompts to configure the VM settings, such as size, network, and storage.&lt;/li&gt;
&lt;/ul&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%2Fe62tcsl3zz1gt4rsd96o.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%2Fe62tcsl3zz1gt4rsd96o.png" alt="Closing" width="800" height="466"&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%2Fyq1ekeehkzk1rj1y1a8o.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%2Fyq1ekeehkzk1rj1y1a8o.png" alt="jgfniption" width="800" height="463"&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%2Fo6wfcejsg219d42x30fh.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%2Fo6wfcejsg219d42x30fh.png" alt="End" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Creating an Azure Compute Gallery and capturing a VM image is a vital part of managing and scaling virtual machines in Azure. Deciding whether to generalize or specialize the VM depends on your use case. Specialized images are ideal when you need to maintain unique machine configurations, while generalized images are more suitable for creating multiple identical VM instances. Azure Compute Gallery provides an efficient, organized way to manage these images, improving the overall efficiency of your cloud infrastructure.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>writing</category>
      <category>cloudcomputing</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Unlocking Extra Storage: How to Create, Initialize, and Use a Data Disk on Your Azure VM</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Thu, 06 Mar 2025 02:04:27 +0000</pubDate>
      <link>https://dev.to/sammyug7/unlocking-extra-storage-how-to-create-initialize-and-use-a-data-disk-on-your-azure-vm-3f7p</link>
      <guid>https://dev.to/sammyug7/unlocking-extra-storage-how-to-create-initialize-and-use-a-data-disk-on-your-azure-vm-3f7p</guid>
      <description>&lt;p&gt;Azure is a powerful cloud platform that allows you to create and manage virtual machines (VMs) and storage resources easily. In many scenarios, you may need to attach an additional data disk to a VM for increased storage capacity. This article walks you through the process of creating a VM data disk, initializing it, and making it usable in an Azure VM.&lt;/p&gt;

&lt;p&gt;Certainly! Below is a step-by-step guide on how to create a &lt;strong&gt;VM&lt;/strong&gt;, attach a &lt;strong&gt;data disk&lt;/strong&gt;, initialize it, and make it usable using &lt;strong&gt;RDP&lt;/strong&gt; (Remote Desktop Protocol) on Azure.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 1: Create a Virtual Machine (VM) on Azure&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Before you can attach a data disk to a virtual machine, the virtual machine must first be created. Here's how you can do it:&lt;/p&gt;

&lt;h4&gt;
  
  
  1.1 &lt;strong&gt;Sign In to Azure Portal&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Visit the &lt;a href="https://portal.azure.com" rel="noopener noreferrer"&gt;Azure Portal&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Sign in with your Azure credentials (Microsoft account or Azure Active Directory).&lt;/li&gt;
&lt;/ol&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%2F6vbibl1umo56c2h9d7w0.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%2F6vbibl1umo56c2h9d7w0.png" alt="Sign Up" width="800" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  1.2 &lt;strong&gt;Start the VM Creation Process&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;In the left-hand navigation pane, click &lt;strong&gt;"Create a resource"&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Search the Marketplace&lt;/strong&gt; box, type &lt;strong&gt;"Virtual Machine"&lt;/strong&gt; and select &lt;strong&gt;Virtual Machine&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&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%2Fiihn7huy7dyqv4p8iktu.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%2Fiihn7huy7dyqv4p8iktu.png" alt="Resource" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on &lt;strong&gt;Create&lt;/strong&gt; to begin the creation of your new virtual machine.&lt;/li&gt;
&lt;/ol&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%2Fjp1kme5ilsrtff2pd570.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%2Fjp1kme5ilsrtff2pd570.png" alt="VM" width="800" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  1.3 &lt;strong&gt;Configure Basic Settings&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Subscription&lt;/strong&gt;: Choose the Azure subscription under which the VM will be created.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource Group&lt;/strong&gt;: Select an existing resource group or create a new one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VM Name&lt;/strong&gt;: Give your VM a unique name (e.g., &lt;code&gt;MyAzureVM&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Region&lt;/strong&gt;: Choose the region where you want your VM to be located.&lt;/li&gt;
&lt;/ul&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%2Fn7hplw9iayohqylchajk.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%2Fn7hplw9iayohqylchajk.png" alt="Made" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Image&lt;/strong&gt;: Choose the desired operating system. For example, choose &lt;strong&gt;Windows Server&lt;/strong&gt; for a Windows-based VM.&lt;/li&gt;
&lt;/ul&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%2Fdme6l3hpewkaoign4hok.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%2Fdme6l3hpewkaoign4hok.png" alt="Dev" width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Size&lt;/strong&gt;: Choose the appropriate VM size based on your needs (CPU, RAM, etc.).&lt;/li&gt;
&lt;/ul&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%2F2jkie2936647l9n1phle.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%2F2jkie2936647l9n1phle.png" alt="Parts" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Authentication Type&lt;/strong&gt;: Choose &lt;strong&gt;Password&lt;/strong&gt; for simpler access or &lt;strong&gt;SSH public key&lt;/strong&gt; if you're familiar with SSH keys. Since we're using RDP, select &lt;strong&gt;Password&lt;/strong&gt; and set an administrator username and password.&lt;/li&gt;
&lt;/ul&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%2F1mtjf25oqdww9f581n45.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%2F1mtjf25oqdww9f581n45.png" alt="Keys" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  1.4 &lt;strong&gt;Configure Networking and Storage&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Virtual Network (VNet)&lt;/strong&gt;: Azure will create a default VNet or allow you to choose an existing one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subnet&lt;/strong&gt;: Choose a subnet or accept the default option.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public IP&lt;/strong&gt;: Select &lt;strong&gt;"Yes"&lt;/strong&gt; to assign a public IP if you need remote access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network Security Group (NSG)&lt;/strong&gt;: Ensure RDP (TCP/3389) is enabled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OS Disk&lt;/strong&gt;: Choose the disk type, such as &lt;strong&gt;Standard SSD&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  1.5 &lt;strong&gt;Review and Create&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Review all the configurations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;"Create"&lt;/strong&gt; to start the deployment. It will take a few minutes to deploy the VM.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&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%2Fc0jdt3grn1izv6g4djf1.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%2Fc0jdt3grn1izv6g4djf1.png" alt="Review" width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the VM is deployed, it will be listed in the &lt;strong&gt;Virtual Machines&lt;/strong&gt; section of the Azure Portal.&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%2F7173880f13jh8rxa4y9z.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%2F7173880f13jh8rxa4y9z.png" alt="Listed" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 2: Attach a Data Disk to the VM&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;After the VM is created, we can attach a data disk for additional storage.&lt;/p&gt;

&lt;h4&gt;
  
  
  2.1 &lt;strong&gt;Navigate to Your Virtual Machine&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Virtual Machines&lt;/strong&gt; in the Azure portal.&lt;/li&gt;
&lt;li&gt;Click on the VM you just created.&lt;/li&gt;
&lt;/ol&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%2F1j4stsog0zz1koip5kbm.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%2F1j4stsog0zz1koip5kbm.png" alt="Imager" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  2.2 &lt;strong&gt;Attach a Data Disk&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;In the VM's settings, find and click on &lt;strong&gt;Disks&lt;/strong&gt; in the left-hand menu.&lt;/li&gt;
&lt;/ol&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%2F5ut1z0aq7giunj3zs9jj.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%2F5ut1z0aq7giunj3zs9jj.png" alt="Imaging" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Under &lt;strong&gt;Data Disks&lt;/strong&gt;, click on &lt;strong&gt;Add data disk&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&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%2Foq29gk7lb2o33n6vagaq.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%2Foq29gk7lb2o33n6vagaq.png" alt="Ivjdhy" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To create a new data disk, select &lt;strong&gt;Create and attach a new disk&lt;/strong&gt;.

&lt;ul&gt;
&lt;li&gt;Choose a &lt;strong&gt;Disk Type&lt;/strong&gt; (Standard HDD, Premium SSD, etc.).&lt;/li&gt;
&lt;li&gt;Set the &lt;strong&gt;Size&lt;/strong&gt; based on your storage needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Ftk8akqxlx5p7h69qpspk.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%2Ftk8akqxlx5p7h69qpspk.png" alt="Imagrdgyhd" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt; to attach the new data disk to your VM.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Azure will now attach the data disk to your VM.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 3: Initialize the Data Disk Using RDP&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Now that the data disk is attached, you need to initialize and format it before you can use it.&lt;/p&gt;

&lt;h4&gt;
  
  
  3.1 &lt;strong&gt;Connect to the VM via RDP&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;strong&gt;Azure Portal&lt;/strong&gt;, go to &lt;strong&gt;Virtual Machines&lt;/strong&gt; and select your VM.&lt;/li&gt;
&lt;/ol&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%2Fbqd2ekdue33k2ltiggox.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%2Fbqd2ekdue33k2ltiggox.png" alt="Image Azure" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On the VM's page, click on &lt;strong&gt;Connect&lt;/strong&gt; at the top.&lt;/li&gt;
&lt;/ol&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%2F31obtjows8smmlffk3bb.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%2F31obtjows8smmlffk3bb.png" alt="Connect VM" width="800" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;RDP&lt;/strong&gt; (Remote Desktop Protocol).&lt;/li&gt;
&lt;/ol&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%2Fwxtix679dxmtsn7xnv5n.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%2Fwxtix679dxmtsn7xnv5n.png" alt="Image RDP" width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the &lt;strong&gt;RDP file&lt;/strong&gt; and enter the &lt;strong&gt;username&lt;/strong&gt; and &lt;strong&gt;password&lt;/strong&gt; you set when creating the VM.&lt;/li&gt;
&lt;/ol&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%2Fa0r162f6v01xwlxp8z01.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%2Fa0r162f6v01xwlxp8z01.png" alt="Image rdpuser" width="800" height="430"&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%2Felgip3xtov4keyz22j8w.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%2Felgip3xtov4keyz22j8w.png" alt="MAx drption" width="800" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3.2 &lt;strong&gt;Initialize and Format the Data Disk (Windows)&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Once you are connected to the Windows VM via RDP, follow these steps to initialize the new data disk:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Open Disk Management&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Press &lt;strong&gt;Win + X&lt;/strong&gt; and select &lt;strong&gt;Disk Management&lt;/strong&gt; (or type &lt;code&gt;diskmgmt.msc&lt;/code&gt; in the search box and press Enter).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fw0mp7pdt27myv97o3bd6.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%2Fw0mp7pdt27myv97o3bd6.png" alt="Disk" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Initialize the New Disk&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;When Disk Management opens, you should see your new disk listed as &lt;strong&gt;"Disk 1"&lt;/strong&gt; or &lt;strong&gt;"Disk 2"&lt;/strong&gt; (depending on how many disks you already have attached). It will be marked as &lt;strong&gt;Unallocated&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fw0whykqwh8o4m0x5s6go.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%2Fw0whykqwh8o4m0x5s6go.png" alt="Unallocate" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Right-click on the unallocated space and select &lt;strong&gt;Initialize Disk&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;GPT (GUID Partition Table)&lt;/strong&gt; if your disk is large (greater than 2TB) or &lt;strong&gt;MBR (Master Boot Record)&lt;/strong&gt; for smaller disks. Click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&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%2Fmrmpp4tvszl4zy74tysa.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%2Fmrmpp4tvszl4zy74tysa.png" alt="Allocate" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a New Volume&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Right-click on the unallocated space and select &lt;strong&gt;New Simple Volume&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fp4vij6a0ow8s2o6c73ff.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%2Fp4vij6a0ow8s2o6c73ff.png" alt="Volume" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The New Simple Volume Wizard will appear. Follow the wizard to set up the volume:&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%2Fow1vzavxofcck6e2j0oo.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%2Fow1vzavxofcck6e2j0oo.png" alt="Med" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the size of the partition (the default is the entire disk).&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%2Frssfzmnrjvb2o7lwvdxl.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%2Frssfzmnrjvb2o7lwvdxl.png" alt="Med 3" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Assign a drive &lt;strong&gt;letter&lt;/strong&gt; (e.g., E:).&lt;/p&gt;

&lt;p&gt;Choose the &lt;strong&gt;NTFS&lt;/strong&gt; file system (recommended for Windows).&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%2Fn0u3cr9tzevqrrjhwo7w.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%2Fn0u3cr9tzevqrrjhwo7w.png" alt="nfts 4" width="800" height="420"&gt;&lt;/a&gt;&lt;br&gt;
You can name the volume (e.g., "Data Disk").&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Complete the Wizard&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Click &lt;strong&gt;Next&lt;/strong&gt; and then &lt;strong&gt;Finish&lt;/strong&gt;. The disk will now be formatted and mounted as a new volume.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&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%2Fe0q9afw20gzlluer6nkd.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%2Fe0q9afw20gzlluer6nkd.png" alt="first class" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done, you can access the new disk from &lt;strong&gt;This PC&lt;/strong&gt; as a new drive (e.g., E:).&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%2Fzj95ie12nc422kejj8no.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%2Fzj95ie12nc422kejj8no.png" alt="allocated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 4: Make the Data Disk Usable&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Now that the data disk is initialized and formatted, it is ready for use.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;For Windows VMs&lt;/strong&gt;: The new data disk should now be available as a new drive in &lt;strong&gt;This PC&lt;/strong&gt; (e.g., E:).

&lt;ul&gt;
&lt;li&gt;You can now start using the disk to store files, install applications, or perform other tasks.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&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%2Fcyufgq9c1xan0t6g1mdz.png" alt="NEW" width="800" height="420"&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Now you've successfully set up a virtual machine on Azure, connected a data disk, formatted and initialized the disk, and enabled it for use.  Because it enables you to scale your storage capacity as needed, this is a crucial ability when working with cloud settings.  With Azure, you can easily expand your VM’s capacity by adding more data disks or resizing existing ones to meet the demands of your workloads.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>cloud</category>
      <category>azure</category>
      <category>writing</category>
    </item>
    <item>
      <title>How to Create a Resource Group in Microsoft Azure.</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Tue, 04 Mar 2025 00:17:45 +0000</pubDate>
      <link>https://dev.to/sammyug7/how-to-create-a-resource-group-in-microsoft-azure-7jo</link>
      <guid>https://dev.to/sammyug7/how-to-create-a-resource-group-in-microsoft-azure-7jo</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;br&gt;
Microsoft Azure is a cloud computing platform and service that allows developers and businesses to create, launch, and manage apps and services through data centers managed by Microsoft. It offers a variety of cloud-based services, such as databases, networking, storage, and processing power.&lt;/p&gt;

&lt;p&gt;In Azure, a &lt;strong&gt;Resource Group&lt;/strong&gt; is a container that houses connected Azure solution resources.  Virtual computers, databases, storage accounts, and networking elements are a few examples of these resources.  It is simpler to deploy, monitor, and remove resources that share a lifespan when they are arranged and managed as a resource group.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it's beneficial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simplifies management:&lt;/strong&gt; Administration is made simpler by grouping related resources together, which makes monitoring and administration simpler.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Access control:&lt;/strong&gt; The entire resource group is subject to security and access regulations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resource lifecycle:&lt;/strong&gt; As part of a single project, you can deploy, update, and remove resources together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost management:&lt;/strong&gt; It assists in monitoring and controlling expenses for a certain set of project resources.&lt;/p&gt;

&lt;p&gt;This tutorial will guide you through the process of creating a new resource group in Azure, helping you get started with organizing and managing your cloud resources effectively.&lt;/p&gt;

&lt;p&gt;Step 1: Navigate to the Azure Portal&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your web browser and go to the Azure Portal.&lt;/li&gt;
&lt;/ol&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%2Fsjd06z8dxxodt0c8i33m.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%2Fsjd06z8dxxodt0c8i33m.png" alt="Got it" width="800" height="174"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If you're not logged in already, enter your credentials (email and password) associated with your Microsoft Azure account.&lt;/li&gt;
&lt;/ol&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%2Feommb6d7lnd94hs66hn7.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%2Feommb6d7lnd94hs66hn7.png" alt="New" width="800" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Log In&lt;br&gt;
After you land on the Azure Portal page, enter your login credentials. If you don’t have an account, click on “Create one!” and follow the instructions.&lt;/p&gt;

&lt;p&gt;Note: Ensure you have the proper access level to create resources within the Azure portal.&lt;/p&gt;

&lt;p&gt;Step 3: Search for Resource Groups&lt;br&gt;
Once logged in, you'll be on the Azure Dashboard.&lt;br&gt;
On the top search bar, type “Resource Groups” and click on it from the dropdown menu. This will take you to the "Resource Groups" 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%2Fdnqzmr22hbc2ssctx7xn.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%2Fdnqzmr22hbc2ssctx7xn.png" alt="Resource group" width="800" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Create a Resource Group&lt;br&gt;
On the "Resource Groups" page, click on the “+ Create” button at the top of the 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%2F0axtrdfii8h314zbi7fl.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%2F0axtrdfii8h314zbi7fl.png" alt="Create" width="800" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fill out the necessary information:&lt;br&gt;
Subscription: Choose your subscription. This refers to the Azure plan you're using.&lt;br&gt;
Resource Group Name: Enter a name for your resource group. Ensure it’s unique within your subscription.&lt;br&gt;
Region: Select a region where your resource group will reside (for example, East US, West Europe, etc.).&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%2Fkfo3dwr6hc87ycp4g1xe.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%2Fkfo3dwr6hc87ycp4g1xe.png" alt="Creation" width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After filling out the details, review everything.&lt;br&gt;
Click on “Review + Create” to validate your configurations.&lt;br&gt;
Once the validation is complete, click “Create” to finalize the creation of your new resource group.&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%2Fgj65yode0gswygvyjjad.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%2Fgj65yode0gswygvyjjad.png" alt="Creste" width="800" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 5: Confirm Resource Group Creation&lt;br&gt;
After the deployment process is completed, you’ll see a notification stating that your resource group has been successfully created.&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%2Fz9s3xeq47xf8fv4y76gl.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%2Fz9s3xeq47xf8fv4y76gl.png" alt="Notification" width="800" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can now go back to the “Resource Groups” page to view your newly created group listed there.&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%2Fvj74ly6su2esygcqnquh.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%2Fvj74ly6su2esygcqnquh.png" alt="Resorce" width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Azure resource groups are essential for effective cloud management, as they allow businesses to group resources for improved visibility, access control, cost tracking, and operational efficiency. By experimenting with different resource groups for various projects, you can gain hands-on experience in organizing and managing cloud environments, troubleshooting, scaling, and utilizing Azure's automation and monitoring tools to build reliable, scalable solutions.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>productivity</category>
      <category>cloud</category>
      <category>azure</category>
    </item>
    <item>
      <title>Mastering CloudOps: Key Concepts Every Business Should Know</title>
      <dc:creator>samuel</dc:creator>
      <pubDate>Fri, 28 Feb 2025 03:31:45 +0000</pubDate>
      <link>https://dev.to/sammyug7/mastering-cloudops-key-concepts-every-business-should-know-35oe</link>
      <guid>https://dev.to/sammyug7/mastering-cloudops-key-concepts-every-business-should-know-35oe</guid>
      <description>&lt;p&gt;In today's virtual-first world, businesses are rapidly turning to cloud operations (CloudOps) to amplify performance, optimize workflow, and deliver flawless user experiences. But with the rapid shift to the cloud, understanding key CloudOps theory has never been more important. Whether you're a tech enthusiast, entrepreneur, or just diving into cloud computing, mastering the basics plays avital role in informed decision-making. From virtualization and scalability to global reach and fault tolerance, these concepts are the building blocks of efficient, reliable, and agile cloud infrastructures. In this article, we'll break down these core principles in simple terms and explain how they shape the future of cloud computing. Let’s dive in!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Virtualization?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Virtualization is the process of creating virtual (rather than physical) versions of resources, such as servers, storage devices, or networks. It allows businesses to run multiple instances of operating systems or applications on a single physical machine. Think of it as creating “virtual” spaces inside a single machine, optimizing the hardware and improving efficiency. For example, by using virtualization, businesses can run several different operating systems on one server, each acting like a separate, independent machine. This leads to resource optimization, cost savings, and better scalability.&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%2Fxdhu3sy2neqf7bcj9c36.jpg" 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%2Fxdhu3sy2neqf7bcj9c36.jpg" alt="Definition of Virtualization" width="266" height="187"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scalability&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scalability refers to the ability of a system or network to grow and handle increased demand. In cloud environments, scalability is crucial, as it allows businesses to adjust resources (such as CPU, storage, or memory) based on the workload. There are two main types of scalability:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vertical Scaling (Scaling Up):&lt;/strong&gt; Adding more resources (e.g., CPU, memory) to an existing server.&lt;br&gt;
&lt;strong&gt;Horizontal Scaling (Scaling Out):&lt;/strong&gt; Adding more servers to distribute the workload. Scalability ensures that as business needs grow, the infrastructure can handle more traffic, data, or users without compromising performance.&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%2Fu0xn5o6tukapom1pkp7x.jpg" 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%2Fu0xn5o6tukapom1pkp7x.jpg" alt="Scalability Showing Scaling Up and Scaling Out" width="783" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agility&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agility in CloudOps refers to the ability to quickly adapt to changes and innovations. It means businesses can rapidly deploy, manage, and scale applications or services to meet evolving needs. In a cloud environment, agility is about being able to quickly provision resources, make changes to the infrastructure, and deploy new features. The faster a company can react to market changes or customer demands, the more competitive and successful they become. Cloud services enable agility through automation, on-demand resources, and DevOps practices, making businesses more flexible and responsive.&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%2Fqqy89m25fysto2h21g6m.jpg" 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%2Fqqy89m25fysto2h21g6m.jpg" alt="Four Facts of Agility" width="531" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;High Availability&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;High availability (HA) is a design approach that ensures a system or service is consistently operational, minimizing downtime. In CloudOps, high availability means your applications and services are designed to stay online even in the event of hardware failures, network issues, or other disruptions. Achieving high availability often involves redundant systems, load balancing, failover mechanisms, and geographically distributed servers to ensure continuous uptime and reliability. Cloud providers typically offer multiple availability zones across different regions to ensure that even if one region fails, the application remains accessible from another.&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%2Frnrhe2e3c4u0fjer9im4.jpg" 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%2Frnrhe2e3c4u0fjer9im4.jpg" alt="Availability description" width="688" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fault Tolerance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fault tolerance refers to the ability of a system to continue functioning correctly even if some of its components fail. In CloudOps, fault tolerance is achieved through the use of redundancy, where critical components have backups that can take over if something goes wrong. For example, if a server fails, a redundant server or system can automatically take over, ensuring the application remains operational without disruption. This minimizes downtime and prevents data loss, ensuring that services remain reliable and available at all times.&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%2Fkrenr27p0cpwxfxm1z50.jpg" 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%2Fkrenr27p0cpwxfxm1z50.jpg" alt="Fault tolerance" width="234" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Global Reach&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Global reach refers to the ability to deliver cloud services and applications across the globe, regardless of the user's location. By leveraging the infrastructure of cloud providers, businesses can deploy applications in multiple regions or countries, ensuring a faster and more reliable experience for users worldwide. This global distribution helps in reducing latency, improving performance, and meeting regional compliance requirements. It also allows businesses to expand into new markets without the need to invest in physical data centers in every 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%2Fmur4ktlww135v0h9qagn.jpg" 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%2Fmur4ktlww135v0h9qagn.jpg" alt="Global Reach" width="626" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Elasticity vs. Scalability:&lt;/strong&gt; &lt;br&gt;
     &lt;strong&gt;What’s the Difference?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While both elasticity and scalability are important concepts in CloudOps, they have distinct meanings:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scalability&lt;/strong&gt; refers to the ability to increase or decrease resources to meet growing or shrinking demands. It can happen either manually or automatically over time. If your business experiences an increase in traffic, scaling up or out ensures that you can handle the extra load.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Elasticity&lt;/strong&gt; is the ability to automatically adjust resources in real-time, based on demand. Elasticity allows cloud systems to expand or contract resources dynamically, providing flexibility to businesses. For example, during peak hours, your cloud service might automatically add more servers to handle the increased load, then reduce the resources when traffic decreases.&lt;/p&gt;

&lt;p&gt;In essence, while scalability is about the potential to grow, elasticity ensures that growth happens automatically and in real-time, optimizing costs and resources.&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%2Fthzreeuz5k5zlivbyfj3.jpg" 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%2Fthzreeuz5k5zlivbyfj3.jpg" alt="Elasticity vs scability" width="800" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Understanding these key CloudOps concepts—virtualization, scalability, agility, high availability, fault tolerance, global reach, and the difference between elasticity and scalability—is fundamental to leveraging cloud computing effectively. CloudOps is about creating an efficient, adaptable, and reliable infrastructure that can scale with business needs while maintaining availability and performance. With these concepts in mind, organizations can better harness the power of the cloud to support their operations and drive success.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>devops</category>
      <category>career</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
