Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Last active September 25, 2016 11:34
Show Gist options
  • Save nivleshc/179b3a321dd20f9962cf766eedcdf0e6 to your computer and use it in GitHub Desktop.
Save nivleshc/179b3a321dd20f9962cf766eedcdf0e6 to your computer and use it in GitHub Desktop.
ARM DSC extension to install ADFS
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('ADFS01VMName'),'/InstallADFS')]",
"apiVersion": "2015-05-01-preview",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('ADFS01VMName'))]"
],
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.19",
"autoUpgradeMinorVersion": true,
"settings": {
"ModulesUrl": "[variables('InstallADFSPackageURL')]",
"ConfigurationFunction": "[variables('InstallADFSConfigurationFunction')]",
"Properties": {
"MachineName": "[parameters('ADFS01VMName')]",
"DomainName": "[parameters('domainName')]",
"AdminCreds": {
"UserName": "[parameters('adminUserName')]",
"Password": "PrivateSettingsRef:AdminPassword"
}
}
},
"protectedSettings": {
"Items": {
"AdminPassword": "[parameters('adminPassword')]"
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment