-
Notifications
You must be signed in to change notification settings - Fork 0
/
AzureLocations.html
55 lines (53 loc) · 1.91 KB
/
AzureLocations.html
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
<html>
<script>
function getLocationShortCodeFromShortName() {
const azureLocations = {
"eastasia": "ae",
"southeastasia": "ase",
"australiacentral": "auc",
"australiacentral2": "auc2",
"australiaeast": "aue",
"australiasoutheast": "aus",
"brazilsouth": "brs",
"brazilsoutheast": "brse",
"canadacentral": "cac",
"canadaeast": "cae",
"northeurope": "eun",
"westeurope": "euw",
"francecentral": "frc",
"francesouth": "frs",
"germanynorth": "gno",
"germanywestcentral": "gwc",
"centralindia": "inc",
"southindia": "ins",
"westindia": "inw",
"japaneast": "jpe",
"japanwest": "jpw",
"koreacentral": "krc",
"koreasouth": "krs",
"norwayeast": "noe",
"norwaywest": "now",
"southafricanorth": "san",
"southafricawest": "saw",
"switzerlandnorth": "swn",
"switzerlandwest": "sww",
"uaecentral": "uaec",
"uaenorth": "uaen",
"uksouth": "uks",
"ukwest": "ukw",
"centralus": "uc",
"eastus": "ue",
"eastus2": "ue2",
"northcentralus": "unc",
"southcentralus": "usc",
"westus": "uw",
"westus2": "uw2",
"westcentralus": "uwc"
}
const params = new URLSearchParams(document.location.search);
const location = params.get("location");
document.write(azureLocations[location]);
}
getLocationShortCodeFromShortName();
</script>
</html>