Presentation is loading. Please wait.

Presentation is loading. Please wait.

SharePoint deployment automation with PowerShell Desired State Configuration Brian Farnhill M331.

Similar presentations


Presentation on theme: "SharePoint deployment automation with PowerShell Desired State Configuration Brian Farnhill M331."— Presentation transcript:

1

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

5

6

7

8

9

10

11

12 prevents drift

13

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"; } ) }

16

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"; };

18

19

20

21

22

23

24

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“ }

27

28

29

30

31

32

33

34

35

36

37

38

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

41

42


Download ppt "SharePoint deployment automation with PowerShell Desired State Configuration Brian Farnhill M331."

Similar presentations


Ads by Google