-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomExtensionScriptWindows.json
More file actions
42 lines (42 loc) · 1.41 KB
/
CustomExtensionScriptWindows.json
File metadata and controls
42 lines (42 loc) · 1.41 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "String",
"defaultvalue": "westeurope"
},
"vmName": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2022-11-01",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "virtualMachineName/CreadteADDS",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'))]"
],
"tags": {
"displayName": "CreateADDS"
},
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.10",
"autoUpgradeMinorVersion": true,
"settings": {
"timestamp": 123456789
},
"protectedSettings": {
"commandToExecute": "powershell -ExecutionPolicy Unrestricted -File CreateADDS.ps1",
"fileUris": [
"https://raw.githubusercontent.com/Spiderkilla/Public/main/CreateADDS.ps1"
]
}
}
}
]
}