You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Scroll down to **Key pair** (login), and click **Create new key pair**.
34
-
This displays the "Create key pair" window.
34
+
This displays the **Create key pair** window.
35
35
Now configure the following fields:
36
36
* Key pair name: **arm-key-pair**.
37
37
* Key pair type: **RSA**.
@@ -40,30 +40,32 @@ The configuration should look like the configuration fields that Figure 6 shows:
40
40
41
41

42
42
43
-
5. Scroll down to "Network Settings", and confgure the settings:
43
+
5. Scroll down to **Network Settings**, and configure the settings:
44
44
* VPC: select the default.
45
45
* Subnet: select **No preference**.
46
46
* Auto-assign public IP: **Enable**.
47
47
* Firewall: Check **Create security group**.
48
-
* Security group name: arm-security-group.
49
-
* Description: arm-security-group.
48
+
* Security group name: **arm-security-group**.
49
+
* Description: **arm-security-group**.
50
50
* Inbound security groups.
51
51
52
52

53
53
54
-
6. Configure "Inbound Security Group Rules" by selecting **Add Rule** and then setting the following details:
55
-
* Type: Custom TCP.
56
-
* Protocol: TCP.
57
-
* Port Range: 7133.
58
-
* Source: Select "Anywhere (0.0.0.0/0)" for public access or restrict access to your specific IP for better security.
54
+
6. Configure **Inbound Security Group Rules** by selecting **Add Rule** and then setting the following details:
55
+
* Type: **Custom TCP**.
56
+
* Protocol: **TCP**.
57
+
* Port Range: **7133**.
58
+
* Source: Select **Anywhere (0.0.0.0/0)** for public access or restrict access to your specific IP for better security.
59
59
60
60
Repeat this step for all three ports that the application is using. This example demonstrates setup using ports 7133, 7511, and 17222. These must match the values that you have when you run the app locally.
61
61
62
62
The configuration should look like:
63
63
64
64

65
65
66
-
7. Launch an instance by clicking the **Launch instance** button. You should see the green box with the Success label. This box also contains a link to the EC2 instance. Click it, and it takes you to the instance dashboard, which looks like Figure 10:
66
+
7. Launch an instance by clicking the **Launch instance** button. You should see the green box with the **Success** label.
67
+
68
+
This box also contains a link to the EC2 instance. Click on it, and it takes you to the instance dashboard, as Figure 10 shows:
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/net-aspire/gcp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,4 +121,4 @@ To make your application publicly-accessible, configure the firewall rules:
121
121
5. Click the **Save** button.
122
122
123
123
### Summary
124
-
You have successfully deployed the Aspire app onto an Arm-powered GCP virtual machine. This deployment demonstrates the compatibility of .NET applications with Arm architecture and GCP, offering high performance and cost-efficiency.
124
+
You have successfully deployed the Aspire app onto an Arm-powered GCP virtual machine. This deployment demonstrates the compatibility of .NET applications with Arm architecture and GCP, offering high performance and costefficiency.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/net-aspire/modify_project.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ weight: 5
6
6
layout: learningpathall
7
7
---
8
8
9
-
## Modify the Project
9
+
## Add additional computations
10
10
11
11
Now you can move on to add additional computations to mimic computationally-intensive work.
12
12
@@ -45,11 +45,11 @@ static class ComputationService
45
45
}
46
46
```
47
47
48
-
This code defines a static class, ComputationService, designed to perform computationally-intensive tasks; in particular, matrix multiplication. It contains a public method, PerformIntensiveCalculations, which generates two matrices of a specified size, multiplies them, and stores the resulting matrix.
48
+
This code defines a static class, **ComputationService**, designed to perform computationally-intensive tasks; in particular, matrix multiplication. It contains a public method, **PerformIntensiveCalculations**, which generates two matrices of a specified size, multiplies them, and stores the resulting matrix.
49
49
50
-
* The private method, GenerateMatrix, creates a one-dimensional array representing a matrix of the given size (matrixSize x matrixSize). Each element in the matrix is initialized with a random double-value generated using Random.Shared.NextDouble().
50
+
* The private method, **GenerateMatrix**, creates a one-dimensional array representing a matrix of the given size (matrixSize x matrixSize). Each element in the matrix is initialized with a random double-value generated using **Random.Shared.NextDouble()**.
51
51
52
-
* The public method, PerformIntensiveCalculations, multiplies two matrices (matrix1 and matrix2) element-by-element using nested loops and LINQ. It iterates through each row of the first matrix and each column of the second matrix, calculating the dot product for each element in the resulting matrix. The result of the multiplication is stored in a flattened one-dimensional array, called matrixResult.
52
+
* The public method, **PerformIntensiveCalculations**, multiplies two matrices (matrix1 and matrix2) element-by-element using nested loops and LINQ. It iterates through each row of the first matrix and each column of the second matrix, calculating the dot product for each element in the resulting matrix. The result of the multiplication is stored in a flattened one-dimensional array, called **matrixResult**.
53
53
54
54
This code is provided for demonstrating heavy computational operations, such as large matrix manipulations, and can simulate workloads in scenarios that mimic intensive data processing or scientific calculations.
Login to the dashboard at https://localhost:17222/login?t=81f99566c9ec462e66f5eab5aa9307b0
34
34
```
35
35
36
-
Click on the link generated for the dashboard. In this case it is: [https://localhost:17222/login?t=81f99566c9ec462e66f5eab5aa9307b0](https://localhost:17222/login?t=81f99566c9ec462e66f5eab5aa9307b0). This directs you to the application dashboard, as shown in Figure 1:
36
+
Click on the link generated for the dashboard.
37
+
38
+
In this case, it is: [https://localhost:17222/login?t=81f99566c9ec462e66f5eab5aa9307b0](https://localhost:17222/login?t=81f99566c9ec462e66f5eab5aa9307b0).
39
+
40
+
This directs you to the application dashboard, as Figure 1 shows:
On the dashboard, locate and click the endpoint link for `NetAspire.Arm.Web`. This takes you to the Blazor-based web application. In the Blazor app, navigate to the Weather section to access and display data retrieved from the WeatherForecast API:
44
+
On the dashboard, locate and click the endpoint link for `NetAspire.Arm.Web`.
45
+
46
+
This takes you to the Blazor-based web application. In the Blazor app, navigate to the Weather section to access and display data retrieved from the WeatherForecast API:
41
47
42
48

0 commit comments