-
Notifications
You must be signed in to change notification settings - Fork 0
/
mulitartifacts.json
129 lines (129 loc) · 4.32 KB
/
mulitartifacts.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
127
128
129
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"newVMName": {
"type": "string",
"defaultValue": "sdds"
},
"labName": {
"type": "string",
"defaultValue": "test"
},
"size": {
"type": "string",
"defaultValue": "Standard_DS1"
},
"userName": {
"type": "string",
"defaultValue": "sdds"
},
"password": {
"type": "securestring",
"defaultValue": "[[[LadmPwd]]"
},
"Active_Directory_Domain_Join.domainName": {
"type": "string",
"defaultValue": "wewe"
},
"Active_Directory_Domain_Join.domainOU": {
"type": "string",
"defaultValue": "ewwe"
},
"Active_Directory_Domain_Join.domainJoinUser": {
"type": "string",
"defaultValue": "weew"
},
"Active_Directory_Domain_Join.domainJoinUserPassword": {
"type": "securestring",
"defaultValue": "[[[LadmPwd]]"
},
"Active_Directory_Domain_Join.domainJoinOptions": {
"type": "string",
"defaultValue": "3"
}
},
"variables": {
"labSubnetName": "[concat(variables('labVirtualNetworkName'), 'Subnet')]",
"labVirtualNetworkId": "[resourceId('Microsoft.DevTestLab/labs/virtualnetworks', parameters('labName'), variables('labVirtualNetworkName'))]",
"labVirtualNetworkName": "[concat('Dtl', parameters('labName'))]",
"vmId": "[resourceId ('Microsoft.DevTestLab/labs/virtualmachines', parameters('labName'), parameters('newVMName'))]",
"vmName": "[concat(parameters('labName'), '/', parameters('newVMName'))]"
},
"resources": [
{
"apiVersion": "2017-04-26-preview",
"type": "Microsoft.DevTestLab/labs/virtualmachines",
"name": "[variables('vmName')]",
"location": "[resourceGroup().location]",
"properties": {
"labVirtualNetworkId": "[variables('labVirtualNetworkId')]",
"notes": "[smalldisk] Windows Server 2012 R2 Datacenter",
"galleryImageReference": {
"offer": "WindowsServer",
"publisher": "MicrosoftWindowsServer",
"sku": "2012-R2-Datacenter-smalldisk",
"osType": "Windows",
"version": "latest"
},
"size": "[parameters('size')]",
"userName": "[parameters('userName')]",
"password": "[parameters('password')]",
"isAuthenticationWithSshKey": false,
"artifacts": [
{
"artifactId": "[resourceId('Microsoft.DevTestLab/labs/artifactSources/artifacts', parameters('labName'), 'public repo', 'windows-domain-join')]",
"parameters": [
{
"name": "domainName",
"value": "[parameters('Active_Directory_Domain_Join.domainName')]"
},
{
"name": "domainOU",
"value": "[parameters('Active_Directory_Domain_Join.domainOU')]"
},
{
"name": "domainJoinUser",
"value": "[parameters('Active_Directory_Domain_Join.domainJoinUser')]"
},
{
"name": "domainJoinUserPassword",
"value": "[parameters('Active_Directory_Domain_Join.domainJoinUserPassword')]"
},
{
"name": "domainJoinOptions",
"value": "[parameters('Active_Directory_Domain_Join.domainJoinOptions')]"
}
]
},
{
"artifactId": "[resourceId('Microsoft.DevTestLab/labs/artifactSources/artifacts', parameters('labName'), 'public repo', 'windows-7zip')]"
},
{
"artifactId": "[resourceId('Microsoft.DevTestLab/labs/artifactSources/artifacts', parameters('labName'), 'public repo', 'windows-azurepowershell')]"
}
],
"labSubnetName": "[variables('labSubnetName')]",
"disallowPublicIpAddress": true,
"storageType": "Premium",
"allowClaim": false,
"networkInterface": {
"sharedPublicIpAddressConfiguration": {
"inboundNatRules": [
{
"transportProtocol": "tcp",
"backendPort": 3389
}
]
}
}
}
}
],
"outputs": {
"labVMId": {
"type": "string",
"value": "[variables('vmId')]"
}
}
}