Download presentation
Presentation is loading. Please wait.
Published byMaryann Hardy Modified over 8 years ago
2
SharePoint deployment automation with PowerShell Desired State Configuration Brian Farnhill M331
3
Senior Premier Field Engineer SharePoint Specialist PowerShell DSC Expert Conference Speaker Epic Xbox Gamer
4
Challenges with SharePoint deployment automation Introduction to PowerShell DSC Overview of the xSharePoint module DSC in Azure virtual machines
12
prevents drift
14
Configuration SimpleConfig { Node $AllNodes.Where{ $_.Role -eq "WebServer“}.NodeName { File CreateFolder { DestinationPath = 'c:\temp\' Ensure = 'Present' Type = 'Directory' }
15
@{ AllNodes = @( @{ Nodename = "*"; RetryCount = 30; RetryIntervalSec = 30; } @{ NodeName = "WEB01"; Role = "WebServer"; } @{ NodeName = "WEB02"; Role = "WebServer"; } ) }
17
/* @TargetNode=‘WEB01' */ instance of MSFT_FileDirectoryConfiguration as $MSFT_FileDirectoryConfiguration1ref { ResourceID = "[File]CreateFolder"; Type = "Directory"; Ensure = "Present"; DestinationPath = "c:\\temp\\"; ModuleName = "PSDesiredStateConfiguration"; SourceInfo = "::6::9::File"; ConfigurationName = "SimpleConfig"; };
25
xSPInstallPrereqs InstallPrerequisites { InstallerPath = "C:\SPInstall\Prerequisiteinstaller.exe" OnlineMode = $true } xSPInstall InstallBinaries { BinaryDir = "C:\SPInstall" ProductKey = $ProductKey DependsOn = "[xSPInstallPrereqs]InstallPrerequisites" }
26
xSPCreateFarm CreateSPFarm { DatabaseServer = $DatabaseServer FarmConfigDatabaseName = "SP_Config" Passphrase = $FarmPassPhrase FarmAccount = $FarmAccount InstallAccount = $InstallAccount AdminContentDatabaseName = "SP_AdminContent" DependsOn = "[xSPInstall]InstallBinaries“ }
39
Getting ready for SharePoint 2016 NZ2 Wed 9:00am DevOps - The Future of Deployments with DSC NZ1 Wed 11:55am Avoiding the on-premises SharePoint Train Wreck SKYCITY Theatre Fri 10:40am Find me later at… Hub Happy Hour Wed 5:30-6:30pm Hub Happy Hour Thu 5:30-6:30pm 1 2 3
40
Subscribe to our fortnightly newsletter http://aka.ms/technetnz http://aka.ms/msdnnz http://aka.ms/ch9nz Free Online Learning http://aka.ms/mva Sessions on Demand
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.