Skip to content

Commit

Permalink
Reviewed Azure .net LP
Browse files Browse the repository at this point in the history
  • Loading branch information
pareenaverma committed Oct 19, 2023
1 parent 95ac1a3 commit 06376c2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
title: 'Deploying applications to Arm64-powered Virtual Machine in Microsoft Azure'
title: 'Deploy .NET applications to Arm Virtual Machines in Microsoft Azure'

minutes_to_complete: 30

who_is_this_for: 'This learning path is for IoT developers interested in learning how to deploy applications to Microsoft Azure using Arm64-powered Virtual Machines.
This learning path is the first part of the series: From IoT to the Cloud.'
who_is_this_for: This learning path is for software developers interested in learning how to deploy .NET applications to Microsoft Azure using Arm64-powered Virtual Machines.

learning_objectives:
- Create a Virtual Machine (VM) in Microsoft Azure.
Expand All @@ -14,7 +12,7 @@ learning_objectives:
- Configure the network security group of the VM to expose the application over the Internet.

prerequisites:
- 'A subscription to Azure. Use this link to sign up for a free account: https://azure.microsoft.com/en-us/free/'
- 'A subscription to Azure. Use this link to sign up for a free account: https://azure.microsoft.com/en-us/free/'

author_primary: Dawid Borycki

Expand All @@ -28,6 +26,7 @@ armips:
tools_software_languages:
- .NET SDK
- C#
- Azure
operatingsystems:
- Linux

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ review:
- Microsoft Firewall
correct_answer: 1
explanation: >
[Network Security Group](https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview) is the Azure resource you can use to filter network traffic.
Network Security Group is the Azure resource you can use to filter network traffic.
- questions:
question: >
Expand All @@ -22,7 +22,7 @@ review:

correct_answer: 3
explanation: >
.NET CLI is the command-line tool you use to build and run applications. The tool is accessed by dotnet command. To run the application you use the run subcommand. See [this .NET CLI article](https://learn.microsoft.com/en-us/dotnet/core/tools) to learn more.
.NET CLI is the command-line tool you use to build and run applications. The tool is accessed by dotnet command. To run the application you use the run subcommand.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ As an IoT or Arm developer, you are already familiar with app development for yo

Cloud providers including Microsoft Azure are now adopting this technology. Specifically, Azure provides arm64-powered virtual machines which you can use to deploy your apps to utilize arm64 power and reduce the carbon trace.

This tutorial demonstrates how to create the arm64-powered virtual machine in Microsoft Azure and use it for hosting a .NET application. The idea is to show you how to leverage Microsoft Azure, .NET, and aarch64 to build and host a central unit for your IoT solutions.
This tutorial demonstrates how to create the arm64-powered virtual machine in Microsoft Azure and use it for running a .NET application. The idea is to show you how to leverage Microsoft Azure, .NET, and aarch64 to build and host a central unit for your IoT solutions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ This takes you to the **Create a Virtual Machine** wizard as shown below:
![Creating Virtual Machine#left](figures/04.png "Figure 4. Virtual machine wizard")

### Virtual machine configuration
Configure your VM with the following settings:

1. Subscription: select your subscription.
2. Resource group: click Create new link, then type **rg-arm64**, and click OK.
3. Virtual machine name: **vm-arm64**.
Expand All @@ -33,7 +35,9 @@ This takes you to the **Create a Virtual Machine** wizard as shown below:
9. Size:
* Click **See all sizes**.
* In the **Select a VM size** type **D2pds** in the search box
* Select **D2pds_v5**. *Note* that this size might not be available due to quota limits. If this happens, click **Request quota link** (which is located next to the **VM size** name). This will activate a New Quota Request. Type **2** under New limit and click Submit. Wait a few minutes for the quota limits to be updated.
* Select **D2pds_v5**.

{{% notice Note %}} This size might not be available due to quota limits. If this happens, click **Request quota link** (which is located next to the **VM size** name). This will activate a New Quota Request. Type **2** under New limit and click Submit. Wait a few minutes for the quota limits to be updated.{{% /notice %}}

At this point, your configuration should look like this example:
![Creating Virtual Machine#left](figures/05.png "Figure 5. Virtual machine wizard (configured)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ layout: learningpathall
---

## Objective
You will now connect to the VM using the SSH protocol and the public IP address of the virtual machine. *Note* that in this tutorial we will be using the public IP **52.149.156.228**. Please make sure to use the public IP of your virtual machine instead.
You will now connect to the VM using the SSH protocol and the public IP address of the virtual machine.
{{% notice Note %}} In this tutorial we will use the public IP **52.149.156.228**. Please make sure to use the public IP of your virtual machine instead. {{% /notice %}}

You can use a local terminal or the Azure Cloud Shell to connect to the VM. The latter is available directly from the Azure Portal and to avoid installing additional tools, we will use the Cloud Shell.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export PATH="/home/arm/.dotnet/:$PATH"
dotnet --list-sdsk
```

*Note* that, in this tutorial, we installed .NET 7 because the application we will deploy was built using .NET 7. If you need to install another .NET version, modify the channel parameter of the installation script.
{{% notice Note %}} In this tutorial, we installed .NET 7 because the application we will deploy was built using .NET 7. If you need to install another .NET version, modify the channel parameter of the installation script.{{% /notice %}}

To install git, use the terminal of the virtual machine and type:
```console
Expand Down Expand Up @@ -90,3 +90,6 @@ Then, click **Add** and wait for the security rule to be applied.

Once this is done, open your web browser and type the public IP address of your VM followed by 8080 port: **52.149.156.228:8080**. You'll see that the application is up and running:
![Application#left](figures/17.png "Figure 17. An application deployed to Azure virtual machine")

## Summary
This tutorial has shown you how to create an arm64-powered Virtual Machine in Microsoft Azure, how to connect to that VM using SSH, and how to install the tools required to build and run the .NET web application. Finally, you have learned how to configure a network security group to enable inbound traffic on port 8080.

This file was deleted.

0 comments on commit 06376c2

Please sign in to comment.