Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Jun 16, 2023
1 parent 7a37552 commit c819b06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 77 deletions.
77 changes: 0 additions & 77 deletions azure/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ def create_or_update_vm(subscription_id, credential, tag, location, username, pa
DELETE = ""
MAXPRICE = ""
images_list = {
"Debian_9": {
"display": "Debian 9",
"sku": "9",
"publisher": "credativ",
"version": "latest",
"offer": "Debian",
},
"Debian_10": {
"display": "Debian 10 (gen2)",
"sku": "10-gen2",
Expand All @@ -75,27 +68,6 @@ def create_or_update_vm(subscription_id, credential, tag, location, username, pa
"version": "latest",
"offer": "debian-11",
},
"Debian_10_gen1": {
"display": "Debian 10",
"sku": "10",
"publisher": "Debian",
"version": "latest",
"offer": "debian-10",
},
"Debian_11_gen1": {
"display": "Debian 11",
"sku": "11",
"publisher": "Debian",
"version": "latest",
"offer": "debian-11",
},
"Ubuntu_16_04": {
"display": "Ubuntu 16.04 (gen2)",
"sku": "16_04-lts-gen2",
"publisher": "Canonical",
"version": "latest",
"offer": "UbuntuServer",
},
"Ubuntu_18_04": {
"display": "Ubuntu 18.04 (gen2)",
"sku": "18_04-lts-gen2",
Expand All @@ -110,55 +82,20 @@ def create_or_update_vm(subscription_id, credential, tag, location, username, pa
"version": "latest",
"offer": "0001-com-ubuntu-server-focal",
},
"Ubuntu_16_04_gen1": {
"display": "Ubuntu 16.04",
"sku": "16.04.0-LTS",
"publisher": "Canonical",
"version": "latest",
"offer": "UbuntuServer",
},
"Ubuntu_18_04_gen1": {
"display": "Ubuntu 18.04",
"sku": "18.04-LTS",
"publisher": "Canonical",
"version": "latest",
"offer": "UbuntuServer",
},
"Ubuntu_20_04_gen1": {
"display": "Ubuntu 20.04",
"sku": "20_04-lts",
"publisher": "Canonical",
"version": "latest",
"offer": "0001-com-ubuntu-server-focal",
},
"Centos_79": {
"display": "Centos 7.9 (gen2)",
"sku": "7_9-gen2",
"publisher": "OpenLogic",
"version": "latest",
"offer": "CentOS",
},
"Centos_79_gen1": {
"display": "Centos 7.9",
"sku": "7_9",
"publisher": "OpenLogic",
"version": "latest",
"offer": "CentOS",
},
"Centos_85": {
"display": "Centos 8.5 (gen2)",
"sku": "8_5-gen2",
"publisher": "OpenLogic",
"version": "latest",
"offer": "CentOS",
},
"Centos_85_gen1": {
"display": "Centos 8.5",
"sku": "8_5",
"publisher": "OpenLogic",
"version": "latest",
"offer": "CentOS",
},
"WinData_2022": {
"display": "Windows Datacenter 2022",
"sku": "2022-Datacenter-smalldisk",
Expand Down Expand Up @@ -186,20 +123,6 @@ def create_or_update_vm(subscription_id, credential, tag, location, username, pa
"publisher": "MicrosoftWindowsServer",
"version": "latest",
"offer": "WindowsServer",
},
"WinDesk_10": {
"display": "Windows 10 21H2 (gen2)",
"sku": "win10-21h2-pro-zh-cn-g2",
"publisher": "MicrosoftWindowsDesktop",
"version": "latest",
"offer": "Windows-10",
},
"WinDesk_11": {
"display": "Windows 11 21H2",
"sku": "win11-21h2-pro-zh-cn",
"publisher": "MicrosoftWindowsDesktop",
"version": "latest",
"offer": "Windows-11",
}
}

Expand Down
2 changes: 2 additions & 0 deletions azure/templates/createvm.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
<p><label>系统 <select name="os" required>
<option value="Debian_11">Debian 11</option>
<option value="Debian_10">Debian 10</option>
<option value="Centos_85">Centos 8.5</option>
<option value="Centos_79">Centos 7.9</option>
<option value="Ubuntu_20_04">Ubuntu 20.04</option>
<option value="Ubuntu_18_04">Ubuntu 18.04</option>
<option value="WinData_2022">WinData_2022</option>
Expand Down

0 comments on commit c819b06

Please sign in to comment.