Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created September 25, 2016 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/c1c24744d0789e4b095d2f74e87860c0 to your computer and use it in GitHub Desktop.
Save nivleshc/c1c24744d0789e4b095d2f74e87860c0 to your computer and use it in GitHub Desktop.
ConfigureADFS CSE Extention
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('ADFS01VMName'),'/ConfigureADFS')]",
"apiVersion": "2015-05-01-preview",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('ADFS01VMName'))]",
"[concat('Microsoft.Compute/virtualMachines/', parameters('ADFS01VMName'),'/extensions/InstallADFS')]"
],
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.4",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('ConfigureADFSScriptUrl')]"
],
"commandToExecute": "[concat('powershell.exe -file ConfigureADFS.ps1',' -DomainName ',parameters('domainName'),' -DomainAdminUsername ',parameters('adminUsername'),' -AdfsSvcUsername ',parameters('AdfsSvcUsername'))]"
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment