/// <summary> /// Configure Windows based on template /// </summary> /// <param name="ipAddress"></param> /// <param name="windowsTemplate"></param> /// <returns></returns> private static async Task ConfigureWindows(string ipAddress, WindowsTemplate windowsTemplate) { if (windowsTemplate.EnableIis) { // configure IIS } }
private static string CreateWindowsDeploymentScriptBlock(WindowsTemplate windowsTemplate, string hostname) { return(File.ReadAllText(@"DeploymentScripts\deploy_win.ps1").Replace("<name>", hostname)); }