-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCreatingVDIServerGalleryExtension.json
136 lines (135 loc) · 3.94 KB
/
CreatingVDIServerGalleryExtension.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
130
131
132
133
134
135
136
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "[resourcegroup().location]",
"metadata": {
"description": "Specifies the Location for the deployment."
}
},
"artifactsLocationUri": {
"type": "string",
"metadata": {
"description": "Specifies the shared access signature token which provides access to the base artifacts location."
}
},
"artifactsLocationSasToken": {
"type": "string",
"metadata": {
"description": "Token allowing for access of asset location"
}
},
"configurationFileUrl": {
"type": "string",
"metadata": {
"description": "Specifies the URI of the DSC configuration script."
}
},
"configurationFunction": {
"type": "string",
"metadata": {
"description": "Specifies the function to be executed in the DSC configuration script."
}
},
"machineName": {
"type": "string",
"metadata": {
"description": "Specifies the name of this machine in Azure and on the network."
}
},
"domainName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the Active Directory domain."
}
},
"domainControllerFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the FQDN of a domain controller on the virtual network."
}
},
"domainControllerIp": {
"type": "string",
"metadata": {
"description": "Specifies the IP of a domain controller on the virtual network."
}
},
"adminUsername": {
"type": "string",
"metadata": {
"description": "The name of the administrator of the new VM and the domain. Exclusion list: 'admin','administrator"
}
},
"adminPassword": {
"type": "securestring",
"metadata": {
"description": "The password for the administrator account of the new VM and the domain"
}
},
"deliveryControllerFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the name of the XenApp delivery controller on the virtual network."
}
},
"InstallerPath": {
"type": "string",
"metadata": {
"description": "Specifies the name of the XenApp delivery controller on the virtual network."
}
},
"CreateMasterImage": {
"type": "string",
"metadata": {
"description": "Specify wether VDI should be provisioned or Not."
},
"defaultValue": "false",
"allowedValues": [
"true",
"false"
]
}
},
"variables": {
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('machineName'),'/configureController')]",
"apiVersion": "2015-06-15",
"tags": {
"displayName": "VdiServerConfiguration"
},
"location": "[parameters('location')]",
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.19",
"settings": {
"sasToken": "[parameters('artifactsLocationSasToken')]",
"modulesUrl": "[parameters('configurationFileUrl')]",
"configurationFunction": "[parameters('configurationFunction')]",
"Properties": {
"DomainName": "[parameters('domainName')]",
"Admincreds": {
"UserName": "[parameters('adminUsername')]",
"Password": "PrivateSettingsRef:adminPassword"
},
"DeliveryController": "[parameters('deliveryControllerFQDN')]",
"DomainControllerIp": "[parameters('domainControllerIp')]",
"setupLocation": "[parameters('InstallerPath')]",
"CreateMasterImage": "[parameters('CreateMasterImage')]"
}
},
"protectedSettings": {
"Items": {
"AdminPassword": "[parameters('adminPassword')]"
}
}
}
}
]
}