<?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: Barbra Mududa</title>
    <description>The latest articles on DEV Community by Barbra Mududa (@b_mududa).</description>
    <link>https://dev.to/b_mududa</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%2F1057426%2F45c36fef-0711-483b-be0d-64b670aee3e6.jpeg</url>
      <title>DEV Community: Barbra Mududa</title>
      <link>https://dev.to/b_mududa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/b_mududa"/>
    <language>en</language>
    <item>
      <title>Creating an Azure App Service with a SQL Database using Node.js</title>
      <dc:creator>Barbra Mududa</dc:creator>
      <pubDate>Sun, 21 May 2023 22:20:39 +0000</pubDate>
      <link>https://dev.to/b_mududa/creating-an-azure-app-service-with-a-sql-database-using-nodejs-lj3</link>
      <guid>https://dev.to/b_mududa/creating-an-azure-app-service-with-a-sql-database-using-nodejs-lj3</guid>
      <description>&lt;p&gt;To create an app service with a SQL database in Azure, follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Sign in to the Azure portal at &lt;a href="https://portal.azure.com"&gt;https://portal.azure.com&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on the "Create a resource" button (+) in the Azure portal's left-hand menu.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the search box, type "App Service" and select "App Services" from the suggested results.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on the "Create" button to begin creating a new app service.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the "Basics" tab, configure the following settings:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Subscription: Select the Azure subscription you want to use.&lt;/li&gt;
&lt;li&gt;Resource Group: Choose an existing resource group or create a new one to logically group related resources.&lt;/li&gt;
&lt;li&gt;Name: Enter a unique name for your app service.&lt;/li&gt;
&lt;li&gt;Publish: Choose the appropriate publishing method based on your application requirements (e.g., Code, Docker Container, etc.).&lt;/li&gt;
&lt;li&gt;Runtime stack: Select the runtime stack that matches your application (e.g., .NET, Node.js, Python, etc.). I chose Node.js because that is what I was using for my app service&lt;/li&gt;
&lt;li&gt;Operating System: Choose the operating system (Windows or Linux) for your app service.&lt;/li&gt;
&lt;li&gt;Region: Select the Azure region where you want to host your app service.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ol&gt;
&lt;li&gt;Click on the "Next" button to proceed to the "Deployment" tab. Here, you give your Github repository and organisation name&lt;/li&gt;
&lt;/ol&gt;

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

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click on the "Next" button to proceed to the "Networking" tab. Select "Enable public access" on so that others may access your website.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on the "Review + create" button to review your app service configuration..&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After reviewing the settings, click on the "Create" button to create the app service. Azure will start provisioning the necessary resources for your app service.&lt;br&gt;
Once the app service is created, navigate to the app service's Overview page.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Creating a SQL Database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;In the Overview page, click on the "Add" button under the "Settings" section and select "Azure SQL" from the dropdown menu.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the "Add SQL connection" page, click on the "Create new database" option.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configure the SQL database settings:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Database name: Enter a name for your SQL database.&lt;/li&gt;
&lt;li&gt;Server: Choose an existing SQL server or create a new one.&lt;/li&gt;
&lt;li&gt;Pricing tier: Select the appropriate pricing tier based on your performance and cost requirements.&lt;/li&gt;
&lt;li&gt;Server admin login and password: Provide the login credentials for the SQL server.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click on the "OK" button to create the SQL database.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once the database is created, you can access its connection string and other details from the app service's Overview page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Update your application code or configuration to use the SQL database connection string obtained in the previous step.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

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

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

&lt;ul&gt;
&lt;li&gt;On your Web App Service overview, select the domain link to view your website&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Below is my domain link:&lt;br&gt;
&lt;a href="https://barbra.azurewebsites.net/"&gt;https://barbra.azurewebsites.net/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's all! You have now created an app service in Azure using a SQL database. You can deploy your application code or content to the app service, which will connect to the corresponding SQL database for data storage and retrieval.&lt;/p&gt;

</description>
      <category>react</category>
      <category>azure</category>
      <category>serverless</category>
      <category>sql</category>
    </item>
    <item>
      <title>My First Azure Web App with Azure SQL Database</title>
      <dc:creator>Barbra Mududa</dc:creator>
      <pubDate>Sat, 20 May 2023 20:00:19 +0000</pubDate>
      <link>https://dev.to/b_mududa/my-first-azure-web-app-with-azure-sql-database-4ggg</link>
      <guid>https://dev.to/b_mududa/my-first-azure-web-app-with-azure-sql-database-4ggg</guid>
      <description>&lt;p&gt;Title: Safiri Kenya: Your Gateway to Unforgettable Adventures&lt;/p&gt;

&lt;p&gt;Introduction:&lt;br&gt;
Are you a nature enthusiast seeking thrilling experiences in the heart of Kenya? Look no further than Safiri Kenya! This remarkable website caters to both local and international tourists, providing a platform to embark on exciting journeys such as hiking, camping, and safaris. Safiri Kenya is not just a website; it's a gateway to discovering the breathtaking beauty and diverse wildlife of Kenya. Let's delve into the key features and technologies behind this incredible platform.&lt;/p&gt;

&lt;p&gt;Unparalleled Experiences:&lt;br&gt;
Safiri Kenya is dedicated to curating unforgettable experiences for adventure seekers. Whether you're an avid hiker, a camping enthusiast, or someone longing to witness the majestic wildlife on a safari, this website has got you covered. With a wide range of meticulously crafted itineraries, you can choose from various destinations and activities that suit your preferences.&lt;/p&gt;

&lt;p&gt;Cutting-Edge Technologies:&lt;br&gt;
Safiri Kenya leverages modern technologies to provide users with a seamless and immersive browsing experience. The website is built using ReactJS, a powerful JavaScript library known for its efficiency and flexibility. This ensures fast-loading pages and smooth navigation, enhancing user satisfaction. Additionally, the website's design is enhanced by Bootstrap CSS, making it visually appealing and user-friendly.&lt;/p&gt;

&lt;p&gt;Reliable Data Management:&lt;br&gt;
To ensure a robust and secure data management system, Safiri Kenya utilizes a MySQL database. MySQL is a widely recognized and reliable relational database management system that allows efficient storage and retrieval of information. By leveraging the power of MySQL, the website ensures the seamless organization and retrieval of data, enabling quick and accurate bookings for users.&lt;/p&gt;

&lt;p&gt;Azure Hosting for Maximum Reliability:&lt;br&gt;
Safiri Kenya takes advantage of the robust hosting capabilities of Microsoft Azure. The website is hosted on Azure Web Apps, providing a reliable and scalable platform for seamless deployment and management. This ensures that users can access the website at any time, with minimal downtime or performance issues. Moreover, Azure's built-in security features ensure the protection of user data, maintaining privacy and peace of mind.&lt;/p&gt;

&lt;p&gt;Azure SQL Database for Data Integrity:&lt;br&gt;
Safiri Kenya also benefits from Azure SQL Database, a fully managed relational database service offered by Microsoft Azure. This cloud-based database solution ensures the integrity and availability of critical data, offering high performance and scalability. With Azure SQL Database, Safiri Kenya can handle a large volume of user requests while maintaining optimal response times, ensuring a smooth booking experience.&lt;/p&gt;

&lt;p&gt;Conclusion:&lt;br&gt;
Safiri Kenya is more than just a website; it's a doorway to thrilling adventures in the beautiful landscapes of Kenya. Through its user-friendly interface, cutting-edge technologies like ReactJS and Bootstrap CSS, and reliable data management using MySQL, Safiri Kenya delivers a seamless browsing and booking experience to its users. Hosted on Azure Web Apps and powered by Azure SQL Database, this website guarantees reliability, scalability, and data security. Embark on your dream journey today with Safiri Kenya and create memories that will last a lifetime.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>SQL Commands Guide(Cheat-sheet)</title>
      <dc:creator>Barbra Mududa</dc:creator>
      <pubDate>Sat, 06 May 2023 16:30:22 +0000</pubDate>
      <link>https://dev.to/b_mududa/sql-statements-guidecheat-sheet-4em4</link>
      <guid>https://dev.to/b_mududa/sql-statements-guidecheat-sheet-4em4</guid>
      <description>&lt;p&gt;SQL, or Structured Query Language, is a programming language used to manage data stored in relational databases. A relational database is a database that organizes information into one or more tables, which are collections of data organized into rows and columns. SQL statements are used to manage and manipulate data in these tables.&lt;/p&gt;

&lt;h2&gt;
  
  
  1.  CREATE TABLE
&lt;/h2&gt;

&lt;p&gt;One of the most basic SQL statements is the CREATE TABLE statement, which is used to create a new table. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE users (
   id INTEGER PRIMARY KEY,
   name TEXT,
   age INTEGER
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. INSERT
&lt;/h2&gt;

&lt;p&gt;The INSERT statement is used to insert a new row into a table. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INSERT INTO users (name, age)
VALUES 
     ('John', 30),
     ('Jane', 25);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. ALTER TABLE
&lt;/h2&gt;

&lt;p&gt;The ALTER TABLE statement is used to add a new column to a table. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER TABLE users 
ADD COLUMN email TEXT;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. UPDATE
&lt;/h2&gt;

&lt;p&gt;The UPDATE statement is used to edit a row in a table. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;UPDATE users 
SET age = 31 
WHERE name = 'John';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. DELETE FROM
&lt;/h2&gt;

&lt;p&gt;The DELETE FROM statement is used to delete one or more rows from a table. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DELETE FROM users 
WHERE age &amp;lt; 25;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. AS
&lt;/h2&gt;

&lt;p&gt;The AS keyword allows you to rename a column or table using an alias. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name AS 'Full Name', age AS 'Age'
FROM users;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Constraints
&lt;/h2&gt;

&lt;p&gt;Constraints are used to add information about how a column can be used, such as UNIQUE, NOT NULL, and DEFAULT. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE employees (
   id INTEGER PRIMARY KEY,
   name TEXT UNIQUE,
   age INTEGER NOT NULL,
   salary INTEGER DEFAULT 50000
);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. DISTINCT
&lt;/h2&gt;

&lt;p&gt;The DISTINCT keyword is used to return unique values in the output. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT DISTINCT age
FROM employees;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  9. WHERE
&lt;/h2&gt;

&lt;p&gt;The WHERE clause is used to restrict query results to only the information we want. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM employees
WHERE age &amp;gt; 30;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10.LIKE
&lt;/h2&gt;

&lt;p&gt;The LIKE operator is used to search for a specific pattern in a column. The percentage sign (%) is a wildcard character that matches zero or more missing letters in the pattern. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM employees
WHERE name LIKE 'J%';

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  11. 'IS NULL' AND 'IS NOT NULL'
&lt;/h2&gt;

&lt;p&gt;The IS NULL and IS NOT NULL operators are used to filter the result set to only include rows with null or non-null values in a column, respectively. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name
FROM employees 
WHERE salary IS NOT NULL;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  12. BETWEEN
&lt;/h2&gt;

&lt;p&gt;The BETWEEN operator is used to filter the result set within a certain range. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM employees
WHERE age BETWEEN 25 AND 35;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  13. AND and OR
&lt;/h2&gt;

&lt;p&gt;The AND and OR operators are used to combine multiple conditions in a WHERE clause to make the result set more specific and useful. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM employees
WHERE age BETWEEN 25 AND 35
   AND salary &amp;gt; 60000
   OR name LIKE '%Smith%';

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  14. ORDER BY
&lt;/h2&gt;

&lt;p&gt;The ORDER BY statement is used to sort the result set in ascending or descending order. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM employees
ORDER BY age DESC;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  15. LIMIT
&lt;/h2&gt;

&lt;p&gt;The LIMIT statement is used to specify the maximum number of rows the result set will have. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM employees
LIMIT 10;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  16. CASE
&lt;/h2&gt;

&lt;p&gt;The CASE statement is used to create different outputs based on a condition. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name,
 CASE
  WHEN age &amp;gt; 30 THEN 'Senior Employee'
  WHEN age &amp;gt; 25 THEN 'Mid-Level Employee'
  ELSE 'Junior Employee'
 END
FROM employees;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In conclusion,SQL is an extremely powerful tool for managing and manipulating data stored in relational databases.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Guide to adding storage disks to Linux Virtual Machine on Azure.</title>
      <dc:creator>Barbra Mududa</dc:creator>
      <pubDate>Mon, 17 Apr 2023 22:10:13 +0000</pubDate>
      <link>https://dev.to/b_mududa/guide-to-adding-storage-disks-to-linux-virtual-machine-on-azure-225f</link>
      <guid>https://dev.to/b_mududa/guide-to-adding-storage-disks-to-linux-virtual-machine-on-azure-225f</guid>
      <description>&lt;p&gt;Are you new to Linux virtual machines on Azure? Need more storage or flexibility? This step-by-step guide will show you how to create, connect, and format a data disk for your Linux VM in Azure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a Linux VM:
&lt;/h2&gt;

&lt;p&gt;Navigate to the Virtual Machines section of the Azure interface and build a new VM. Choose a Linux distribution, such as Ubuntu or Windows, and the suitable VM size for your needs. To create the VM, simply follow the steps.&lt;/p&gt;

&lt;p&gt;Once the VM has been developed, you must connect to it. To connect to the VM, use the SSH client of your choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a data disk
&lt;/h2&gt;

&lt;p&gt;Consider adding a data drive to your Linux virtual machine (VM) if you're utilizing Azure. You can store data on a data disk, which is a different virtual hard drive, store data, install applications, or run scripts on it. Here is a step-by-step tutorial on creating a disk:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Creating a data disk
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;- Log in to your account using the Azure portal (portal.azure.com).&lt;/li&gt;
&lt;li&gt;- Click on "Disks" in the "Storage" section of the left-hand menu.&lt;/li&gt;
&lt;li&gt;- To create a new disk, click the "+ Add" button.&lt;/li&gt;
&lt;li&gt;- Click the "Create" button to create the new data disk&lt;/li&gt;
&lt;/ol&gt;

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

&lt;h3&gt;
  
  
  Step 2: Attach the data disk to your VM
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;- Select the Linux VM you want to attach the data disk to.&lt;/li&gt;
&lt;li&gt;- Under the "Settings" menu, select the "Disks" option.&lt;/li&gt;
&lt;li&gt;- To add a new data disk, click the "+ Add data disk" button.&lt;/li&gt;
&lt;li&gt;- From the drop-down option, choose the data drive you created in Step 1.&lt;/li&gt;
&lt;li&gt;- Click "OK" to attach the data disk after making the necessary selections, such as the cache type and size.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 3: Format and mount the data disk
&lt;/h3&gt;

&lt;p&gt;Log in to your Linux VM using SSH&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click on the VM you want to connect to&lt;/li&gt;
&lt;li&gt;Go to the "Connect" tab&lt;/li&gt;
&lt;li&gt;Locate the SSH command to connect to your VM&lt;/li&gt;
&lt;li&gt;Store the connection command and SSH key in the same folder, such as your Home or Desktop&lt;/li&gt;
&lt;li&gt;This will ensure easy access and connection to your Linux virtual machine using the SSH command.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To identify the new data drive, use the "lsblk" command to list the available block devices. It will most likely be named "/dev/sdc".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To create a new partition on the data disk, use the "fdisk" command. For a simple partition, you can utilize the default settings.&lt;/p&gt;

&lt;p&gt;To format the new partition, use the "mkfs" command. For example, if you created a new partition at "/dev/sdc1", you can format it as an ext4 file system using the command "sudo mkfs -t ext4 /dev/sdc1".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo parted /dev/sdc --script mklabel gpt mkpart xfspart xfs 0% 100%
sudo mkfs.xfs /dev/sdc1
sudo partprobe /dev/sdc1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make a mount point for the new hard drive. For example, you can use the following command to create a directory called "/mnt/data":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mkdir /mnt/data.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mount the new data disk to the mount point. For example, if you formatted the new partition at "/dev/sdc1" and created a mount point at "/mnt/data", you can mount the data disk with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mount /dev/sdc1 /mnt/data

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After you have successfully mounted the new data disk to your Linux virtual machine, you can verify that it has been mounted correctly using the "df -h" command.&lt;/p&gt;

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

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

&lt;p&gt;Attaching a data disk to your Azure Linux VM is a simple step that can provide more storage and flexibility. You may quickly build a new data disk, attach it to your VM, format it, and mount it for usage by following the instructions indicated in this blog post.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>azure</category>
      <category>linux</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Creating a Static Web App on Azure Using a Linux VM: Deploy Your React App with "Create Static Web App"</title>
      <dc:creator>Barbra Mududa</dc:creator>
      <pubDate>Sat, 15 Apr 2023 00:27:43 +0000</pubDate>
      <link>https://dev.to/b_mududa/creating-a-static-web-app-on-azure-using-a-linux-vm-deploy-your-react-app-with-create-static-web-app-m7l</link>
      <guid>https://dev.to/b_mududa/creating-a-static-web-app-on-azure-using-a-linux-vm-deploy-your-react-app-with-create-static-web-app-m7l</guid>
      <description>&lt;p&gt;Static web apps have grown in popularity for a wide range of applications, from basic marketing websites to large online applications. You can quickly deploy your React project as a static web app on Microsoft Azure by using a Linux virtual machine (VM) and the "Create Static Web App" option.&lt;/p&gt;

&lt;p&gt;I'll walk you through the steps to construct a static web app on Azure utilizing a Linux VM and deploy your React app with "Create Static Web App" in this blog article.&lt;/p&gt;

&lt;p&gt;Prerequisites&lt;br&gt;
Before getting started, you'll need the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An Azure account with a subscription that has permissions to create a Linux VM.&lt;/li&gt;
&lt;li&gt;A local copy of your React app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Creating a Static Web App on Azure using react framework
&lt;/h2&gt;

&lt;p&gt;A online presence is crucial for any organization or person in the modern digital world. While there are various ways to host a website, Azure provides a safe and dependable way to develop static web applications. Making a static web app is a simple procedure that can be finished in just a few steps thanks to Azure's user-friendly UI and comprehensive capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Resource Group
&lt;/h2&gt;

&lt;p&gt;You must first create a resource group before you can construct a static web app in Azure. This is a container that houses all of the components of your web app, such as the app itself, the database, and the storage. Log into your Azure account and go to the Azure portal to create a resource group. On the left side of the screen, select the "Resource groups" tab, and then click the "Add" button.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create a Static Web App
&lt;/h2&gt;

&lt;p&gt;After you've created a resource group, you'll need to construct a static web app.  To achieve this, go to the Azure portal and click the "Create a resource" button. Then, look for "Static Web App." Choose the choice, then click "Create."&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Configure the Static Web App
&lt;/h2&gt;

&lt;p&gt;To create a static web app in the Azure portal and connect it to GitHub, follow these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Navigate to the App Services tab after signing in to your Azure portal account. To build a new web application, select the "+ Add" button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Give your web app a name, choose your subscription, resource group, and app service plan, and then click "Create."&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dRvXH1CQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nhm05qapqandpmorj2pr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dRvXH1CQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nhm05qapqandpmorj2pr.png" alt="web creation" width="800" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;After you've finished building your web project, navigate to the Deployment Center and pick GitHub as your source control provider.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose your GitHub repository and provide Azure permission to access it.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KEGd6uBn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k1zuez7x3x0sh8pmsf4i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KEGd6uBn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k1zuez7x3x0sh8pmsf4i.png" alt="github authentication" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the React framework and indicate the location of your web app in the Build Details section.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T7t8yc58--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1pu3x5g1yttqquifv8gu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T7t8yc58--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1pu3x5g1yttqquifv8gu.png" alt="build section" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In the "App location" section, paste the "react-scripts build" command from your package.json file under the "scripts" section. This command will create your React app.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select "build" as the output location for your app in the "Output" section.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Save" then "Create + Review" to complete the setup.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Deploy the Static Web App
&lt;/h2&gt;

&lt;p&gt;Deploying the static web application is the last step. By doing this, Azure will automatically build and deploy the app after you send your code to the Azure repository. Your static web app will be up and available to the public once the deployment is finished.After you've used Create Static Web App to publish your app to Azure, follow these steps to find where it is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navigate to your Static Web App resource in the Azure portal.&lt;/li&gt;
&lt;li&gt;Select the "Overview" tab.&lt;/li&gt;
&lt;li&gt;The "App location" field can be found in the "Deployment details" section. This will display the URL where your program is installed.&lt;/li&gt;
&lt;li&gt;To access your app in a new browser tab, click on the URL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Below is an example of a deployed website:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pUGOAlaY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mc0kkfup2xm6qco0km4y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pUGOAlaY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mc0kkfup2xm6qco0km4y.png" alt="deployed static web" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Note:
&lt;/h2&gt;

&lt;p&gt;Creating a static web app on Azure is a quick and easy procedure that can be finished in a few steps. You can develop a safe and trustworthy web presence with Azure's comprehensive features and simple interface, which will help you stand out in today's digital marketplace. So, why delay? Begin today and use Azure to take your digital presence to the next level.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>github</category>
    </item>
    <item>
      <title>Mastering the Art of Instance Management: A Comprehensive Guide to Creating and Terminating Instances Like a Pro!</title>
      <dc:creator>Barbra Mududa</dc:creator>
      <pubDate>Thu, 06 Apr 2023 10:22:52 +0000</pubDate>
      <link>https://dev.to/b_mududa/mastering-the-art-of-instance-management-a-comprehensive-guide-to-creating-and-terminating-instances-like-a-pro-2kio</link>
      <guid>https://dev.to/b_mududa/mastering-the-art-of-instance-management-a-comprehensive-guide-to-creating-and-terminating-instances-like-a-pro-2kio</guid>
      <description>&lt;p&gt;Amazon Elastic Compute Cloud (EC2) is a cloud computing service that provides scalable computing capacity in the Amazon Web Services (AWS) cloud. It is designed to make web-scale cloud computing easier for developers. With EC2, you can launch instances of virtual machines, also known as instances, on Amazon's infrastructure. This allows you to quickly and easily spin up virtual servers to run your applications, store your data, or even host your website. In this blog post, we'll walk you through the steps to create and terminate an EC2 instance using the EC2 dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  CREATING AN INSTANCE
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Sign in to the AWS Management Console
&lt;/h3&gt;

&lt;p&gt;To create an EC2 instance, you first need to sign in to the AWS Management Console. If you don't have an AWS account, you can create one by following the instructions provided on the AWS website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Open the EC2 Dashboard
&lt;/h3&gt;

&lt;p&gt;After you have logged in to the AWS Management Console, you can go to the EC2 dashboard by selecting the "EC2" service located in the "Compute" category of the console. This will direct you to the EC2 dashboard, where you can oversee your EC2 instances.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Launch Instance
&lt;/h3&gt;

&lt;p&gt;On the EC2 dashboard, click the "Launch Instance" button to start the process of generating a new instance. This will direct you to the "Launch Instance Wizard", which will guide you through the process of selecting the instance type, configuring the instance particulars, and launching the instance.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Choose an Amazon Machine Image (AMI)
&lt;/h3&gt;

&lt;p&gt;The initial stage in the "Launch Instance Wizard" is to select an Amazon Machine Image (AMI), which is a pre-configured virtual machine image that encompasses an operating system and any supplementary software you need to execute your application. You can choose from a broad range of AMIs, including Linux, Windows, and other operating systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Choose an Instance Type
&lt;/h3&gt;

&lt;p&gt;The next step is to select an instance type, which determines the amount of Central Processing Unit (CPU), Random Access Memory (RAM), data storage,and networking capacity that your instance will possess. You can choose from a wide range of instance categories, including general-purpose, compute-optimized, memory-optimized, and storage-optimized instances.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Configure Instance Details
&lt;/h3&gt;

&lt;p&gt;After selecting an Amazon Machine Image(AMI) and an instance type, you can configure the instance details, including the number of instances you want to launch, the network settings, and any additional storage you need.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Add Storage
&lt;/h3&gt;

&lt;p&gt;If you require an additional storage for your instance, you can add it in this step. You can choose from a variety of storage alternatives, including Amazon Elastic Block Store (EBS) volumes and instance store volumes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8: Configure Security Group
&lt;/h3&gt;

&lt;p&gt;The next step is to configure the security group for your instance, which determines the network access to your instance. You can either create a new security group or use an existing one. It is advisable to utilize the default or an existing security group.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 9: Review Instance Launch
&lt;/h3&gt;

&lt;p&gt;Before launching your instance, you can review all the configurations to ensure that everything is correct. Once you are satisfied, click the "Launch" button to start the instance.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 10: Connect to Your Instance
&lt;/h3&gt;

&lt;p&gt;After you launch your instance, you can connect to it using a remote desktop client or SSH client. You can also use the AWS Management Console to connect to your instance. This is what a functioning instance appears like:&lt;/p&gt;

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

&lt;h2&gt;
  
  
  TERMINATING AN INSTANCE
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to the EC2 dashboard.&lt;/li&gt;
&lt;li&gt;Select the instance that you want to terminate.&lt;/li&gt;
&lt;li&gt;Click the "Actions" button and choose "Instance State" &amp;gt; "Terminate".&lt;/li&gt;
&lt;li&gt;Confirm that you want to terminate the instance by clicking "Yes, Terminate".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AWS will request for your confirmation to terminate the instance before proceeding. Once you give the confirmation, AWS will initiate the termination process, which may take a few minutes to finish. Throughout this period, you will be unable to access the instance, and any active tasks or information on the instance will be lost forever.&lt;/p&gt;

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

&lt;p&gt;After the termination process is finished, the instance will be erased permanently from your account, and you won't be billed for its usage beyond the present billing cycle. Nevertheless, you will need to manually delete or clean up associated resources, like Elastic Block Storage(EBS) volumes or security groups, to avoid incurring unwanted charges.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
