Created
November 29, 2016 11:16
-
-
Save nivleshc/4875f463ebddeda525130052489d270c to your computer and use it in GitHub Desktop.
Azure Resource Manager template to use the scripts to install and configure WAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "Microsoft.Compute/virtualMachines/extensions", | |
"name": "[concat(parameters('WAP01VMName'),'/InstallWAP')]", | |
"apiVersion": "2015-05-01-preview", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[concat('Microsoft.Compute/virtualMachines/', parameters('WAP01VMName'))]", | |
"[concat('Microsoft.Compute/virtualMachines/',parameters('ADFS01VMName'),'/extensions/ConfigureADFS')]", | |
"[concat('Microsoft.Compute/virtualMachines/',parameters('ADFS02VMName'),'/extensions/AddToADFSFarm')]" | |
], | |
"properties": { | |
"publisher": "Microsoft.Powershell", | |
"type": "DSC", | |
"typeHandlerVersion": "2.19", | |
"autoUpgradeMinorVersion": true, | |
"settings": { | |
"ModulesUrl": "[variables('InstallWAPPackageURL')]", | |
"ConfigurationFunction": "[variables('InstallWAPConfigurationFunction')]" | |
} | |
} | |
}, | |
{ | |
"type": "Microsoft.Compute/virtualMachines/extensions", | |
"name": "[concat(parameters('WAP01VMName'),'/ConfigureWAP')]", | |
"apiVersion": "2015-05-01-preview", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[concat('Microsoft.Compute/virtualMachines/', parameters('WAP01VMName'))]", | |
"[concat('Microsoft.Compute/virtualMachines/', parameters('WAP01VMName'),'/extensions/InstallWAP')]" | |
], | |
"properties": { | |
"publisher": "Microsoft.Compute", | |
"type": "CustomScriptExtension", | |
"typeHandlerVersion": "1.4", | |
"autoUpgradeMinorVersion": true, | |
"settings": { | |
"fileUris": [ | |
"[variables('ConfigureWAPScriptUrl')]" | |
], | |
"commandToExecute": "[concat('powershell.exe -file ConfigureWAP.ps1',' -AdminUsername ',parameters('adminUsername'))]" | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment