<?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: Amadi Chimeremma </title>
    <description>The latest articles on DEV Community by Amadi Chimeremma  (@chymee).</description>
    <link>https://dev.to/chymee</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%2F1059588%2F0e75c979-425c-4d69-8904-911dcc50a7b0.jpeg</url>
      <title>DEV Community: Amadi Chimeremma </title>
      <link>https://dev.to/chymee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chymee"/>
    <language>en</language>
    <item>
      <title>A Step-by-Step Guide to Linking and Deploying a Node.js Web App to Azure App Services and Connecting it to an SQL Database</title>
      <dc:creator>Amadi Chimeremma </dc:creator>
      <pubDate>Sun, 21 May 2023 22:31:49 +0000</pubDate>
      <link>https://dev.to/chymee/a-step-by-step-guide-to-linking-and-deploying-a-nodejs-web-app-to-azure-app-services-and-connecting-it-to-an-sql-database-49j8</link>
      <guid>https://dev.to/chymee/a-step-by-step-guide-to-linking-and-deploying-a-nodejs-web-app-to-azure-app-services-and-connecting-it-to-an-sql-database-49j8</guid>
      <description>&lt;p&gt;Introduction:&lt;br&gt;
In today's digital era, deploying web applications to the cloud has become increasingly popular due to its scalability and ease of management. Azure App Services, coupled with Node.js and an SQL database, offers a powerful combination for hosting and running your web applications. In this blog, I will walk you through the process of linking and deploying a Node.js web app to Azure App Services and connecting it to an SQL database.&lt;/p&gt;

&lt;p&gt;Prerequisites:&lt;br&gt;
Before we begin, make sure you have the following prerequisites in place:&lt;/p&gt;

&lt;p&gt;An Azure account: Sign up for an Azure account at &lt;a href="https://azure.microsoft.com"&gt;click&lt;/a&gt;.&lt;br&gt;
Node.js and npm: Install Node.js and npm on your local machine. You can download them from &lt;a href="https://nodejs.org"&gt;click here&lt;/a&gt;.&lt;br&gt;
Azure CLI: Install Azure CLI on your machine. You can find installation instructions at &lt;a href="https://docs.microsoft.com/cli/azure/install-azure-cli"&gt;https://docs.microsoft.com/cli/azure/install-azure-cli&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Create an Azure App Service&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Log in to the Azure portal &lt;a href="https://portal.azure.com"&gt;click here&lt;/a&gt; using your Azure account credentials.&lt;br&gt;
Click on "Create a resource" and search for "App Service."&lt;br&gt;
Select "Web App" from the search results and click "Create."&lt;br&gt;
Provide a unique name for your app, choose your preferred subscription, resource group, and operating system.&lt;br&gt;
Configure the runtime stack to Node.js and choose the desired version.&lt;br&gt;
Click "Review + Create" and then "Create" to provision the App Service.&lt;/p&gt;

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

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

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

&lt;p&gt;Step 2: Set up your Node.js Web App&lt;/p&gt;

&lt;p&gt;Open a terminal or command prompt and navigate to your project's directory.&lt;br&gt;
Initialize a new Node.js project by running the command: npm start.&lt;br&gt;
Install the necessary dependencies for your web app using npm run build.&lt;br&gt;
Test your application locally using the command: npm run start. I am using windows, so this will open on local host 3000.&lt;/p&gt;

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

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

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

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

&lt;p&gt;Step 3: Connect to an SQL Database&lt;/p&gt;

&lt;p&gt;In the Azure portal, go to your App Service's "Overview" page.&lt;br&gt;
Under "Settings," click on "Configuration."&lt;br&gt;
Add a new connection string by clicking on the "New connection string" button.&lt;br&gt;
Enter a name for the connection string and select the SQL database provider.&lt;br&gt;
Provide the necessary details, including the server name, database name, username, and password.&lt;br&gt;
Click "OK" to save the connection string.&lt;/p&gt;

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

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

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

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

&lt;p&gt;Step 4: Deploy the Node.js Web App to Azure&lt;/p&gt;

&lt;p&gt;In the Azure portal, navigate to your App Service's "Overview" page.&lt;br&gt;
Under "Deployment," select "Deployment Center."&lt;br&gt;
Choose the deployment method that suits your project (e.g., Local Git, GitHub, Bitbucket, etc.).&lt;br&gt;
Follow the instructions to link your repository and configure the deployment settings.&lt;br&gt;
Once configured, trigger a deployment to deploy your Node.js web app to Azure.&lt;/p&gt;

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

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

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

&lt;p&gt;Once the deployment is complete, navigate to your Azure App Service's URL.&lt;br&gt;
Test your web app's functionality and ensure that it connects to the SQL database successfully.&lt;br&gt;
Monitor the application's logs and Azure portal's metrics to ensure everything is running smoothly.&lt;/p&gt;

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

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

&lt;p&gt;Conclusion:&lt;br&gt;
In Summary, we have explored the process of linking and deploying a Node.js web app to Azure App Services and connecting it to an SQL database. By following these steps, you can take advantage of Azure's robust infrastructure and scalability, allowing you to focus on building and maintaining your application without worrying about the underlying infrastructure.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Microsoft Azure: Building My First Azure Static Web App.</title>
      <dc:creator>Amadi Chimeremma </dc:creator>
      <pubDate>Fri, 14 Apr 2023 14:09:24 +0000</pubDate>
      <link>https://dev.to/chymee/microsoft-azure-building-my-first-azure-static-web-app-1bjm</link>
      <guid>https://dev.to/chymee/microsoft-azure-building-my-first-azure-static-web-app-1bjm</guid>
      <description>&lt;p&gt;&lt;a href="https://media.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%2Fscgs1fpql2q7kilcxjdd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fscgs1fpql2q7kilcxjdd.png" alt="Web App"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Creating and deploying a static web app on Azure using GitHub involves several steps, which are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Create a GitHub repository: Create a new GitHub repository or use an existing one to host the code for your static web app.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fkhww0bqs1iwsdrwlrlc3.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fkhww0bqs1iwsdrwlrlc3.PNG" alt="Github"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Create an Azure account: If you don't have an Azure account, create one at portal.azure.com&lt;/li&gt;
&lt;li&gt; Create a new static web app in Azure: In the Azure portal, navigate to "Static Web Apps" and click on the "Add" button to create a new static web app.
&lt;img src="https://media.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%2F2rak68guqc0w978e3m2z.PNG" alt="Azure1"&gt;
&lt;/li&gt;
&lt;li&gt; Configure your static web app: Configure your static web app by providing details such as the name of the app, the source code repository URL, build settings, etc.
&lt;img src="https://media.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%2Frjxw9jzzymcq1h0y1zmt.PNG" alt="Azure2"&gt;
&lt;/li&gt;
&lt;li&gt; Connect your GitHub repository to your Azure account: In the "Deployment Center" tab of your Azure static web app, connect your GitHub repository by providing the required access and authentication details.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fur8vdwbv4iis07c77sxw.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fur8vdwbv4iis07c77sxw.PNG" alt="Azure3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Enable continuous deployment: Enable continuous deployment by selecting the option to deploy changes automatically whenever new changes are pushed to the GitHub repository.&lt;/li&gt;
&lt;li&gt; Deploy your static web app: Deploy your static web app by pushing the code changes to your GitHub repository. Azure will automatically build and deploy the changes to your static web app.
&lt;img src="https://media.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%2Fj6xams1eatbbxvrhokuf.PNG" alt="Azure4"&gt;
&lt;/li&gt;
&lt;li&gt; Verify the deployment: Verify that your static web app is deployed and running correctly by navigating to the URL of the app provided in the Azure portal.
&lt;img src="https://media.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%2F424z1n6b7hjsr9tfyciu.PNG" alt="Azure5"&gt;
&lt;/li&gt;
&lt;li&gt; Update your static web app: Whenever you need to make changes to your static web app, simply make the changes in your code and push them to your GitHub repository. Azure will automatically build and deploy the changes to your static web app.
&lt;img src="https://media.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%2Fx4ampiv8wqyq0l16zyrv.PNG" alt="Azure6"&gt;
Following these steps will allow you to create and deploy a static web app on Azure using GitHub.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>How to create an elastic compute cloud 2 (EC2)(Microsoft Windows Server 2022 base) and connect with open SSH on PEM.</title>
      <dc:creator>Amadi Chimeremma </dc:creator>
      <pubDate>Thu, 06 Apr 2023 13:02:37 +0000</pubDate>
      <link>https://dev.to/chymee/how-to-create-an-elastic-compute-cloud-2-ec2microsoft-windows-server-2022-base-and-connect-with-open-ssh-on-pem-23fh</link>
      <guid>https://dev.to/chymee/how-to-create-an-elastic-compute-cloud-2-ec2microsoft-windows-server-2022-base-and-connect-with-open-ssh-on-pem-23fh</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GrXJe6qc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jsm34jibmfel4ietxn2a.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GrXJe6qc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jsm34jibmfel4ietxn2a.gif" alt="Happy Cloud Girl" width="500" height="250"&gt;&lt;/a&gt;&lt;br&gt;
Yaay!! Welcome you to my very first article. I am super excited to do this. &lt;br&gt;
So, I will be showing us simple steps to create, connect and terminate your own EC2 instance on an AWS cloud.&lt;br&gt;
Leggooo!!!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Log in to your AWS Management Console and navigate to the EC2 dashboard.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--prc2_yrp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e5brxdpxqw7m9pthd6z8.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--prc2_yrp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e5brxdpxqw7m9pthd6z8.PNG" alt="EC2 Dashboard" width="800" height="392"&gt;&lt;/a&gt;&lt;br&gt;
By this, I'm sure you have already created your AWS account and are now logged into your account. Please click on the link below to signup if you haven't already.&lt;a href="https://aws.amazon.com/console/"&gt;click here to sign up&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Click on the "Launch Instance" button to start the instance creation process.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q_d0Je7Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cn9d159w0whz1qib0gvn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q_d0Je7Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cn9d159w0whz1qib0gvn.PNG" alt="Launch instance" width="800" height="355"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 3: Begin your instance configuration and choose an Amazon Machine Image (AMI) for your instance.&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--A59XPX_4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9266icqbz6kxkaii0jcb.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A59XPX_4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9266icqbz6kxkaii0jcb.PNG" alt="instance config" width="800" height="385"&gt;&lt;/a&gt;Enter the name you want to give your VM, then choose the appropriate operating system for your machine. The AMI is essentially the operating system that your instance will run on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Choose an instance type.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ooRsZTKm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dp6271sfmlzu9281ttt6.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ooRsZTKm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dp6271sfmlzu9281ttt6.PNG" alt="Type" width="800" height="388"&gt;&lt;/a&gt; This determines the hardware specifications of your instance, such as CPU, RAM, and storage. Usually, you just want to go for the free tier if you are just starting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Configure the instance details, such as the number of instances, network settings, and storage options.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xz0TRlnB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybr62ctfpjvugg5r2qge.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xz0TRlnB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybr62ctfpjvugg5r2qge.PNG" alt="Image description" width="800" height="356"&gt;&lt;/a&gt;&lt;br&gt;
I usually leave things the way they are here by applying the default settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Select an existing key pair or create a new one to securely connect to your instance.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jw4HenUr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ij38ahkpmg44wm42bhak.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jw4HenUr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ij38ahkpmg44wm42bhak.PNG" alt="Keypair creation" width="800" height="399"&gt;&lt;/a&gt;&lt;br&gt;
At the Keypair section, click on the right icon which reads, create new keypair- you can create your keypair by typing a name for it and selecting the .PEM option. This will come in handy later on so don't forget.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7: Review your instance details and launch the instance.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wnHaWW_n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d1lgovu6sdtjbywl8e8r.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wnHaWW_n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d1lgovu6sdtjbywl8e8r.PNG" alt="Final Launch" width="800" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8: Wait for your instance to launch, and then connect to it securely using the key pair you selected.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WRg0JL80--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4mld1t47voqm6urbtb6.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WRg0JL80--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4mld1t47voqm6urbtb6.PNG" alt="connection" width="800" height="312"&gt;&lt;/a&gt;&lt;br&gt;
Now, your instance is up and running smoothly, make sure its selected or checked, then you click on connect on the upper tab to connect to your virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 9: connect to instance using RDP Client.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_J8sDrkl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcwooil1k15odkuwug7b.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_J8sDrkl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcwooil1k15odkuwug7b.PNG" alt="RDP Server" width="800" height="493"&gt;&lt;/a&gt;&lt;br&gt;
Once the connection tab opens, select the RDP client, click on get password and enter your .PEM keypair in the box shown.&lt;br&gt;
&lt;strong&gt;Step 10: Connection.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eNLBhGsL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xda00xx1e4pendvk7ul.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eNLBhGsL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xda00xx1e4pendvk7ul.PNG" alt="copy password" width="800" height="493"&gt;&lt;/a&gt;&lt;br&gt;
Copy your password as generated in the public DNS, click on download remote desktop file, Open it, attach copied password on  the space for administrator password , connect.&lt;br&gt;
&lt;strong&gt;Step 11: Connection successful.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BK05D65B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhqe6jta0gihboq168u9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BK05D65B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhqe6jta0gihboq168u9.PNG" alt="Image description" width="711" height="508"&gt;&lt;/a&gt;&lt;br&gt;
connect and load open your VM instance on your computer, VOILA!!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TERMINATION OF INSTANCE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--phYCucuQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgu9ifpncmx340dbfc5d.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--phYCucuQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgu9ifpncmx340dbfc5d.PNG" alt="Image description" width="800" height="352"&gt;&lt;/a&gt;&lt;br&gt;
Essentially, there is need to terminate your instance when not in use to avoid accruing unnecessary charges. To do this go back to the launch instance terminal and terminate. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;That's it! You now know how to create a fully functional EC2 instance running in the AWS cloud, connect successfully as well as terminate it.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
ciao!&lt;/p&gt;

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