-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
126 lines (126 loc) · 3.84 KB
/
template.json
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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"Name": {
"type": "string",
"metadata": {
"description": "Input the virtual machine name"
}
},
"Size": {
"type": "string",
"defaultValue": "Standard_DS1_v2",
"allowedValues": ["Standard_DS1_v2", "Standard_DS2_v2", "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2",
"Standard_DS11_v2", "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2", "Standard_DS15_v2",
"Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4",
"Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14",
"Standard_GS1", "Standard_GS2", "Standard_GS3", "Standard_GS4", "Standard_GS5",
"Standard_F1s", "Standard_F2s", "Standard_F4s", "Standard_F8s", "Standard_F16s",
]
},
"User name": {
"type": "string",
"metadata": {
"description": "Username for the Virtual Machine."
}
},
"Password": {
"type": "securestring",
"metadata": {
"description": "Password for the Virtual Machine."
}
},
"windowsOSVersion": {
"type": "string",
"defaultValue": "2016-Datacenter",
"allowedValues": [
"2008-R2-SP1",
"2012-Datacenter",
"2012-R2-Datacenter",
"2016-Datacenter-with-Containers",
"2016-Datacenter"
],
"metadata": {
"description": "The Windows version for the VM. This will pick a fully patched image of this given Windows version."
}
},
"dnsLabelPrefix": {
"type": "string",
"metadata": {
"description": "Unique DNS Name for the Public IP used to access the Virtual Machine."
}
},
"gatewayKey": {
"type": "securestring",
"metadata":{
"description": "gateway key"
}
},
"open gateway port": {
"type": "string",
"allowedValues": ["Yes", "No"],
"defaultValue": "Yes",
"metadata":{
"description": "Do you want open gateway port (8050)?"
}
},
"Create new VNET or use Existing":{
"type": "string",
"defaultValue": "existing",
"allowedValues": ["new", "existing"]
},
"virtualNetworkName/subnetName":{
"type": "string",
"metadata": {
"description": "VNET name and its subnet name"
}
}
},
"variables": {
"templatelink": "[concat('https://raw.githubusercontent.com/xiaoyingLJ/CreateGWVM/master/',parameters('Create new VNET or use Existing'),'vnet-azuredeploy-vm.json')]"
},
"resources": [
{
"apiVersion": "2015-01-01",
"name": "[concat(parameters('Name'), 'Template')]",
"type": "Microsoft.Resources/deployments",
"properties": {
"mode": "incremental",
"templateLink": {
"uri": "[variables('templatelink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"Name": {
"value": "[parameters('Name')]"
},
"Size": {
"value": "[parameters('Size')]"
},
"User name": {
"value": "[parameters('User name')]"
},
"Password": {
"value": "[parameters('Password')]"
},
"windowsOSVersion": {
"value": "[parameters('windowsOSVersion')]"
},
"dnsLabelPrefix": {
"value": "[parameters('dnsLabelPrefix')]"
},
"gatewayKey": {
"value": "[parameters('gatewayKey')]"
},
"open gateway port": {
"value": "[parameters('open gateway port')]"
},
"virtualNetworkName/subnetName":{
"value": "[parameters('virtualNetworkName/subnetName')]"
}
}
}
}
]
}