自从拿到教育邮箱,我就在想怎么样才能够用尽其用,拿到更多的教育优惠资源,然后今天我就盘了盘Azure,据说Azure对学生有每年100$的免费额度,这我不得赶紧下个手

注册教育用户

首先,你得先去Azure登录一个微软账号(可以是个人的)

Azure Portal: https://portal.azure.com/

登陆以后会进入Azure的主页,我们不需要在这个页面操作,先把它关掉,只需要有登录态就可以了

接着我们打开AZ100的注册页面

AZ100: https://signup.azure.com/studentverification?offerType=1&srcurl=https%3A%2F%2Fazure.microsoft.com%2Ffree%2Fstudents&correlationId=bbc11038-628a-4b5a-abf5-e141999f96d9

在这个页面中,填写自己的个人信息,注意有些信息的真实性(例如你明明用的是@*.edu.cn你的国家还选其他的那肯定不对)

填好了以后提交(验证码留空就行,除非你有),然后打开你的教育邮箱,会收到一封来自微(巨)软(硬)的邮件(查不到的话看看垃圾邮件列表)

直接点击链接打开,会进入验证页面

这个页面可能会弹一个验证码(我这边是弹了),过了验证码点Verify就进入下一步了,这个时候会转个圈圈,微软在验证你的学生资格

转个大概半分钟就可以了,页面会弹出Congratulation的提示

这个时候就可以使用教育优惠了

[踩坑] 弹了Congratulation后仍然无法使用教育优惠

不知道巨硬怎么回事,反正就是订阅没有生效,我翻了翻求助帖,看到有这么个解决方式

我们再回到学生优惠的注册页面,不过是下面这个

Azure for Students: https://azure.microsoft.com/en-us/free/students?wt.mc_id=studentamb_203301

点击Start free,此时因为我们登录态还在,所以会进入验证环节,这里会弹出下图这样的页面

根据自己的需要勾选,然后点击注册就好了

使用教育优惠

我们访问Azure的教育页面(需要使用带有教育资格的Azure账户访问,否则提示无权)

Azure Education: https://portal.azure.com/#view/Microsoft_Azure_Education/EducationMenuBlade/~/overview

这里会显示你剩下的免费额度和到期天数(注:到期后还可以用教育邮箱续期)

点击右边免费服务的浏览所有按钮,就可以看到能够使用的所有教育优惠,我个人觉得最主要的还是虚拟机,下面也是我创建虚拟机的过程

创建Linux虚拟机

Azure free account includes:

  • 750 hours of Standard B1, B2ATS, and B2PTS Linux Virtual Machine
  • 750 hours of Standard B1, B2ATS Windows Virtual Machine
  • 2 P6 (64GiB) managed disks

你可以通过免费服务那个页面来开始创建Linux虚拟机,也可以通过下面这个链接快速来到创建的页面

Create Linux VM: https://portal.azure.com/#create/microsoft.freeaccountvirtualmachine-linux

在这个页面创建虚拟机直接按照自己需求选就行了,我弄的时候只有B1s,B2ats_v2没货,不过都能用

这里的区域需要说明的是,我这里选择的是East Asia,其实是指的就是香港地区的服务器,在这个页面新建虚拟机不用担心硬盘费用的问题,因为它会自动选择P6磁盘的

创建以后直接SSH连接就行了,我个人也不是拿这个来弄梯子的,所以也不担心被墙的问题

调整swap分区

因为刚刚创建的虚拟机默认是没有给你分swap分区的,但是这个机子的RAM太低了,所以得设置一下swap分区

我是用下面这个脚本设置的swap分区,直接copy去用就行,记得加sudo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#!/bin/bash

GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Check if the script is run with sudo
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root (using sudo)."
exit 1
fi

SWAP_FILE="/swapfile"

create_swap() {
read -p "Enter the desired size of the swap file in MB: " SWAP_SIZE_MB

echo "Creating a swap file of ${SWAP_SIZE_MB}MB. This may take a while..."
fallocate -l ${SWAP_SIZE_MB}M ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error creating swap file. Ensure you have enough free disk space and fallocate is installed."
return 1
fi

chmod 600 ${SWAP_FILE}
mkswap ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error setting up swap area."
rm -f ${SWAP_FILE}
return 1
fi

swapon ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error enabling swap."
rm -f ${SWAP_FILE}
return 1
fi

# Add to /etc/fstab to make it permanent
echo "${SWAP_FILE} swap swap defaults 0 0" | sudo tee -a /etc/fstab > /dev/null
echo "Swap file created and enabled successfully."
}

adjust_swap() {
if ! swapon --show | grep -q "${SWAP_FILE}"; then
echo "No swap file (${SWAP_FILE}) is currently active to adjust. Please create one first or check if SWAP_FILE variable is correctly set."
return 1
fi

swapoff ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error disabling swap."
return 1
fi

read -p "Enter the new desired size of the swap file in MB: " NEW_SWAP_SIZE_MB

echo "Resizing swap file to ${NEW_SWAP_SIZE_MB}MB. This may take a while..."
rm -f ${SWAP_FILE} # Remove the old swap file
fallocate -l ${NEW_SWAP_SIZE_MB}M ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error creating new swap file."
return 1
fi
chmod 600 ${SWAP_FILE}
mkswap ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error setting up new swap area."
rm -f ${SWAP_FILE}
return 1
fi
swapon ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error enabling new swap."
rm -f ${SWAP_FILE}
return 1
fi

echo "Swap file resized and enabled successfully."
}

delete_swap() {
if ! swapon --show | grep -q "${SWAP_FILE}"; then
echo "No swap file (${SWAP_FILE}) is currently active to delete. Please create one first or check if SWAP_FILE variable is correctly set."
return 1
fi

swapoff ${SWAP_FILE}
if [ $? -ne 0 ]; then
echo "Error disabling swap."
return 1
fi

# Remove from /etc/fstab
sudo sed -i "/${SWAP_FILE} swap swap/d" /etc/fstab
rm -f ${SWAP_FILE}
echo "Swap file deleted successfully."
}

show_menu() {
echo -e "${GREEN}"
cat << "EOF"
>>==============================================<<
|| ||
|| _ ||
|| _____ ____ _ _ __ ___| |__ ||
|| / __\ \ /\ / / _` | '_ \ / __| '_ \ ||
|| \__ \\ V V / (_| | |_) |\__ \ | | | ||
|| |___/ \_/\_/ \__,_| .__(_)___/_| |_| ||
|| |_| ||
|| ||
|| -- GamerNoTitle ||
|| https://bili33.top ||
>>==============================================<<
EOF
echo -e "${NC}"

echo -e "${YELLOW}Swap Management Script${NC}"
echo -e "${YELLOW}-----------------------${NC}"
echo -e "${YELLOW}1. Create Swap File${NC}"
echo -e "${YELLOW}2. Adjust Swap File Size${NC}"
echo -e "${YELLOW}3. Delete Swap File${NC}"
echo -e "${YELLOW}4. Exit${NC}"
echo -e "${YELLOW}-----------------------${NC}"

echo -ne "${YELLOW}Enter your choice (1-4): ${NC}"
}

while true; do
show_menu
read choice
case $choice in
1)
create_swap
;;
2)
adjust_swap
;;
3)
delete_swap
;;
4)
echo "Exiting."
exit 0
;;
*)
echo "Invalid choice. Please enter a number between 1 and 4."
;;
esac
echo ""
done

性能测试结果

性能测试脚本:curl -sL yabs.sh | bash

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Basic System Information:
---------------------------------
Uptime : 0 days, 1 hours, 3 minutes
Processor : Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
CPU cores : 1 @ 2095.079 MHz
AES-NI : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM : 892.9 MiB
Swap : 4.0 GiB
Disk : 65.8 GiB
Distro : Ubuntu 22.04.5 LTS
Kernel : 6.8.0-1021-azure
VM Type : MICROSOFT
IPv4/IPv6 : ✔ Online / ❌ Offline

IPv4 Network Information:
---------------------------------
ISP : Microsoft Corporation
ASN : AS8075 Microsoft Corporation
Host : Microsoft Azure Cloud (eastasia)
Location : Hong Kong, Central and Western District (HCW)
Country : Hong Kong

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/root):
---------------------------------
Block Size | 4k (IOPS) | 64k (IOPS)
------ | --- ---- | ---- ----
Read | 2.45 MB/s (614) | 27.34 MB/s (427)
Write | 2.47 MB/s (618) | 27.75 MB/s (433)
Total | 4.92 MB/s (1.2k) | 55.10 MB/s (860)
| |
Block Size | 512k (IOPS) | 1m (IOPS)
------ | --- ---- | ---- ----
Read | 26.62 MB/s (51) | 26.14 MB/s (25)
Write | 28.57 MB/s (55) | 29.04 MB/s (28)
Total | 55.19 MB/s (106) | 55.18 MB/s (53)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider | Location (Link) | Send Speed | Recv Speed | Ping
----- | ----- | ---- | ---- | ----
Clouvider | London, UK (10G) | 792 Mbits/sec | 1.06 Gbits/sec | 187 ms
Eranium | Amsterdam, NL (100G) | 809 Mbits/sec | 1.24 Gbits/sec | 203 ms
Uztelecom | Tashkent, UZ (10G) | 623 Mbits/sec | 847 Mbits/sec | 263 ms
Leaseweb | Singapore, SG (10G) | 863 Mbits/sec | 5.34 Gbits/sec | 36.1 ms
Clouvider | Los Angeles, CA, US (10G) | 829 Mbits/sec | 1.16 Gbits/sec | 154 ms
Leaseweb | NYC, NY, US (10G) | 756 Mbits/sec | 1.08 Gbits/sec | 225 ms
Edgoo | Sao Paulo, BR (1G) | 469 Mbits/sec | 688 Mbits/sec | 306 ms

Geekbench 6 Benchmark Test:
---------------------------------
Test | Value
|
Single Core | 572
Multi Core | 315
Full Test | https://browser.geekbench.com/v6/cpu/10660333

YABS completed in 42 min 58 sec

网络IO测试结果

测试脚本:wget -qO- bench.sh | bash

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-------------------- A Bench.sh Script By Teddysun -------------------
Version : v2024-11-11
Usage : wget -qO- bench.sh | bash
----------------------------------------------------------------------
CPU Model : Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
CPU Cores : 1 @ 2095.079 MHz
CPU Cache : 36608 KB
AES-NI : ✓ Enabled
VM-x/AMD-V : ✗ Disabled
Total Disk : 69.8 GB (8.2 GB Used)
Total Mem : 892.9 MB (196.3 MB Used)
Total Swap : 4.0 GB (74.5 MB Used)
System uptime : 0 days, 23 hour 54 min
Load average : 0.00, 0.00, 0.00
OS : Ubuntu 22.04.5 LTS
Arch : x86_64 (64 Bit)
Kernel : 6.8.0-1021-azure
TCP CC : cubic
Virtualization : Dedicated
IPv4/IPv6 : ✓ Online / ✗ Offline
Organization : AS8075 Microsoft Corporation
Location : Hong Kong / HK
Region : Hong Kong
----------------------------------------------------------------------
I/O Speed(1st run) : 56.7 MB/s
I/O Speed(2nd run) : 56.0 MB/s
I/O Speed(3rd run) : 56.2 MB/s
I/O Speed(average) : 56.3 MB/s
----------------------------------------------------------------------
Node Name Upload Speed Download Speed Latency
Speedtest.net 184.06 Mbps 7849.74 Mbps 2.59 ms
Paris, FR 594.87 Mbps 5925.80 Mbps 179.03 ms
Amsterdam, NL 361.25 Mbps 3164.91 Mbps 201.52 ms
Shanghai, CN 927.35 Mbps 5390.46 Mbps 96.52 ms
Hong Kong, CN 953.24 Mbps 8126.24 Mbps 3.42 ms
Singapore, SG 812.82 Mbps 4375.76 Mbps 31.41 ms
Tokyo, JP 960.93 Mbps 6922.47 Mbps 51.67 ms
----------------------------------------------------------------------
Finished in : 4 min 19 sec
Timestamp : 2025-02-22 07:06:04 UTC
----------------------------------------------------------------------

路由测试

去程路由绕行SG

回程路由部分绕行SG

上海电信 (101.95.120.109)

路径:
香港(hkg20 → hkg31) → 新加坡(sg2) → 中国电信骨干网(202.97.93.145,上海/广州) → 上海

  • 第7跳:香港微软网络节点(hkg20)
  • 第13跳:中国电信骨干网上海/广州节点(202.97.93.145)
  • 第17跳:上海电信目标IP(101.95.120.109)

厦门电信CN2 (117.28.254.129)

路径:
香港(hkg30 → hkg15) → 中国电信CN2骨干网(59.43.248.197,广州) → 厦门

  • 第7跳:香港微软网络节点(hkg30)
  • 第10跳:中国电信CN2广州节点(59.43.248.197)
  • 第18跳:厦门电信CN2目标IP(117.28.254.129)

北京联通 (123.125.81.6)

路径:
香港(hkg31) → 新加坡(sg2 → sin30) → 中国联通骨干网(219.158.38.213,广州) → 北京

  • 第11跳:中国联通广州国际出口(219.158.38.213)
  • 第14跳:中国联通北京节点(219.158.24.125)
  • 第22跳:北京联通目标IP(123.125.81.6)

北京移动 (221.130.33.52)

路径:
香港(hkg31) → 新加坡(sg2 → sin30) → 中国移动骨干网(223.119.81.113,广州) → 北京

  • 第11跳:中国移动广州国际出口(223.119.81.113)
  • 第19跳:中国移动北京节点(221.179.155.234)
  • 第20跳:北京移动目标IP(221.130.33.52)

成都教育网 (202.112.14.151)

路径:
香港(hkg20 → hkb) → 中国教育网骨干网(101.4.114.221,北京) → 成都

  • 第13跳:教育网北京核心节点(101.4.114.221)
  • 第19跳:教育网成都中转节点(101.4.112.194)
  • 第24跳:成都教育网目标IP(202.112.14.151)

使用Windows虚拟机

创建方法跟Linux的没什么区别,唯二区别是系统和账户

Create Windows VM: https://portal.azure.com/#create/microsoft.freeaccountvirtualmachine-windows

需要注意的是,如果你想有原生的Windows桌面体验,你就需要选择不带Core标识的版本

此外,因为这个服务器的低内存体验(就1G还能咋样),Windows服务器用起来特别憋屈,很卡,我就不过多评测了

其他厂商教育优惠