SharePoint deployment automation with PowerShell Desired State Configuration Brian Farnhill M331 Senior Premier Field Engineer SharePoint Specialist PowerShell DSC Expert Conference Speaker Epic Xbox Gamer.

Download Report

Transcript SharePoint deployment automation with PowerShell Desired State Configuration Brian Farnhill M331 Senior Premier Field Engineer SharePoint Specialist PowerShell DSC Expert Conference Speaker Epic Xbox Gamer.

SharePoint deployment automation with
PowerShell Desired State Configuration
Brian Farnhill
M331
Senior
Premier Field
Engineer
SharePoint
Specialist
PowerShell
DSC Expert
Conference
Speaker
Epic Xbox
Gamer
•
•
•
•
Challenges with SharePoint deployment automation
Introduction to PowerShell DSC
Overview of the xSharePoint module
DSC in Azure virtual machines
•
•
•
•
•
•
•
•
•
prevents drift
Configuration SimpleConfig
{
Node $AllNodes.Where{
$_.Role -eq "WebServer“}.NodeName
{
File CreateFolder
{
DestinationPath = 'c:\temp\'
Ensure = 'Present'
Type = 'Directory'
}
}
}
@{
AllNodes = @(
@{
Nodename = "*";
RetryCount = 30;
RetryIntervalSec = 30;
}
@{
NodeName = "WEB01";
Role = "WebServer";
}
@{
NodeName = "WEB02";
Role = "WebServer";
}
)
}
•
•
•
/*
@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";
};
•
•
•
•
•
xSPBCSServiceApp
xSPInstallPrereqs
xSPServiceInstance
xSPCacheAccounts
xSPJoinFarm
xSPSite
xSPCreateFarm
xSPManagedAccount
xSPStateServiceApp
xSPDiagnosticLoggingSettings
xSPManagedMetadataServiceApp
xSPUsageApplication
xSPDistributedCacheService
xSPManagedPath
xSPUserProfileServiceApp
xSPFeature
xSPSearchServiceApp
xSPUserProfileSyncService
xSPInstall
xSPSecureStoreServiceApp
xSPWebApplication
xSPServiceAppPool
•
•
•
•
•
xSPInstallPrereqs InstallPrerequisites
{
InstallerPath =
"C:\SPInstall\Prerequisiteinstaller.exe"
OnlineMode = $true
}
xSPInstall InstallBinaries
{
BinaryDir = "C:\SPInstall"
ProductKey = $ProductKey
DependsOn =
"[xSPInstallPrereqs]InstallPrerequisites"
}
xSPCreateFarm CreateSPFarm
{
DatabaseServer = $DatabaseServer
FarmConfigDatabaseName = "SP_Config"
Passphrase = $FarmPassPhrase
FarmAccount = $FarmAccount
InstallAccount = $InstallAccount
AdminContentDatabaseName = "SP_AdminContent"
DependsOn = "[xSPInstall]InstallBinaries“
}
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
1
DevOps - The Future of
Deployments with DSC
NZ1 Wed 11:55am
2
Getting ready for SharePoint 2016
3
Avoiding the on-premises SharePoint Train
Wreck
NZ2 Wed 9:00am
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
Free Online Learning
http://aka.ms/mva
Subscribe to our fortnightly newsletter
http://aka.ms/technetnz
http://aka.ms/msdnnz
Sessions on Demand
http://aka.ms/ch9nz
© 2015 Microsoft Corporation. All rights reserved.
Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.