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
Enhance documentation for Golang baseline testing and deployment on Azure Cobalt 100. Update titles, add descriptions, and improve clarity in installation and configuration instructions.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/golang-on-azure/baseline-testing.md
+22-12Lines changed: 22 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Golang baseline testing
2
+
title: Golang baseline testing and web server deployment on Azure Cobalt 100
3
3
weight: 5
4
4
5
5
### FIXED, DO NOT MODIFY
@@ -8,11 +8,12 @@ layout: learningpathall
8
8
9
9
## Baseline testing: run a Go web server on Azure Arm64
10
10
11
-
To validate your Go toolchain and runtime environment, build and run a lightweight web server. This confirms that compilation, networking, and runtime execution work correctly on your Ubuntu Pro 24.04 LTS Arm64 virtual machine on Azure Cobalt 100.
11
+
Validate your Go development environment by building and deploying a complete web application. This baseline test confirms that compilation, networking, and runtime execution work correctly on your Ubuntu Pro 24.04 LTS Arm64 virtual machine powered by Azure Cobalt 100 processors.
12
12
13
-
## Create the project directory
13
+
## Initialize Go Web Project
14
+
15
+
Create a dedicated project directory for your Go web application:
14
16
15
-
Create a folder for your Go web project and navigate to it:
16
17
```console
17
18
mkdir goweb && cd goweb
18
19
```
@@ -24,7 +25,7 @@ Next, create a simple web page that your Go server will serve. Open an editor an
24
25
nano index.html
25
26
```
26
27
27
-
Paste the following HTML code into the `index.html` file. This page uses Bootstrap for styling and includes a header, a welcome message, and a button that links to a Go-powered API endpoint.
28
+
Add the following HTML code with Bootstrap styling and Azure Cobalt 100 branding:
28
29
29
30
```html
30
31
<!DOCTYPE html>
@@ -104,21 +105,22 @@ func main() {
104
105
```
105
106
{{% notice Note %}}Running on port 80 requires root privileges. Use sudo with the full Go path if needed.{{% /notice %}}
106
107
107
-
## Run the web server
108
+
## Deploy and Start the Web Server
109
+
110
+
Compile and launch your Go web server on Azure Cobalt 100:
108
111
109
-
Compile and start the server:
110
112
```console
111
113
sudo /usr/local/go/bin/go run main.go
112
114
```
113
115
114
-
Expected output:
116
+
Expected output confirming successful startup:
115
117
```output
116
118
2025/08/19 04:35:06 Server running on http://0.0.0.0:80
117
119
```
118
120
119
-
On Ubuntu Pro 24.04 LTS virtual machines, UFW (Uncomplicated Firewall) is used to manage firewall rules. By default, it allows only SSH (port 22), while other inbound connections are blocked.
121
+
### Configure Ubuntu Firewall for HTTP Access
120
122
121
-
Even if you have already configured Azure Network Security Group (NSG) rules to allow inbound traffic on port 80, the VMlevel firewall might still block HTTP requests until explicitly opened.
123
+
Ubuntu Pro 24.04 LTS uses UFW (Uncomplicated Firewall) to manage network access. Even with Azure Network Security Group (NSG) rules configured, the VM-level firewall requires explicit HTTP access configuration.
122
124
123
125
Run the following commands to allow HTTP traffic on port 80:
Open this URL in your browser. You should see the styled HTML landing page served by your Go application.
156
158
157
-

159
+

160
+
161
+
## Baseline Testing Complete
162
+
163
+
Successfully reaching this page confirms:
164
+
-**Go toolchain** is properly installed and configured
165
+
-**Development environment** is ready for Arm64 compilation
166
+
-**Network connectivity** and firewall configuration are correct
167
+
-**Runtime performance** is functioning on Azure Cobalt 100 processors
158
168
159
-
Reaching this page confirms that Go is installed, the environment is configured, and your Go web server works end-to-end on Azure Cobalt 100 (Arm64). You can now proceed to benchmarking tests.
169
+
Your Azure Cobalt 100 virtual machine is now ready for advanced Go application development and performance benchmarking.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/golang-on-azure/deploy.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,14 @@ weight: 4
6
6
layout: learningpathall
7
7
---
8
8
9
-
## Install Golang on Ubuntu Pro 24.04 LTS (Arm64)
9
+
## Install Golang on Azure Cobalt 100 (Ubuntu Pro 24.04 LTS Arm64)
10
10
11
-
This section shows how to install the Go toolchain on Ubuntu Pro 24.04 LTS (Arm64), configure your environment, and verify the setup for benchmarking on Azure Cobalt 100 VMs.
11
+
This section demonstrates how to install the Go programming language toolchain on Ubuntu Pro 24.04 LTS (Arm64), configure your development environment, and verify the setup for optimal performance on Azure Cobalt 100 virtual machines.
12
12
13
-
## Download the Go archive
13
+
## Download the Official Go Distribution
14
+
15
+
Download the latest Arm64-optimized Go distribution directly from the official Go website. This ensures you get the best performance on Azure Cobalt 100 processors:
14
16
15
-
Use the following command to download the Arm64 build from the official Go distribution (update the version as needed):
0 commit comments