0
Automating your Enterprise ApplicationDeployments with PowerShell
 Geoff Varosky   Jornata    Managing Consultant, Senior Architect, Senior Developer, Director of     Evangelism    Pre...
   Why Automation?   PowerShell   Environment Deployment   Application Deployment   Further Refinement   Resources &...
   Who is using SharePoint?   SharePoint Developers?   SharePoint Administrators?   Familiar with Scripting Languages?...
 Pros   “Almost” human-less deployments   Re-Deployment   Restoration   Documented and actionable deployment   Saves...
 Cons   Possible significant up-front time   Knowledge of PowerShell needed   Not managed code   Requires constant up...
 What is it?   More flexible, faster, extensible, and POWERful than STSADM   Scripting Language   Based on C#   Integ...
 Cmdlets   PowerShell Commands   Can create your own   Standardized using a verb-noun convention    Eat-Cake    Drin...
 The Basics   Get-Command   Get-Help   Piping   Select-Object
 Aliases  Cmdlet         DOS         Alias   Description  Get-Location   pwd         gl      Current directory  Set-Locat...
 SharePoint Management Shell   Loaded with SharePoint 2010/2013   Automatically Loads Microsoft.SharePoint.PowerShell S...
 SharePoint Management Shell   Requires PowerShell 2.0   Backwards compatible, installs into 1.0 folder    <%SystemRoo...
 AutoSPInstaller   Deploy single or multi-server farms from one script   XML-based configuration   Re-launches with El...
 AutoSPInstaller   Remote installation into other servers into the farm   Forefront installation and configuration   L...
 Configure Service Applications    User Profile Service Application    User Profile Synchronization Service    Metadat...
 Configure Service Applications    PerformancePoint Service Application    Visio Graphics Service Application    Word ...
 Creates databases based on YOUR naming conventions
 Maintenance   Any configurable change needs to be updated   If versioned, provides an evolution of your farm   Ensures
 Why deploy applications in PowerShell?   Developers can pass installations to administrators   Replicable through envi...
 What can be automated?   Farm Configuration   Service application configuration    Search scopes    Managed Metadata...
 Anatomy   Deployment Master Script      Variables      Initiates Logging      Step-By-Step Deployment      Directio...
 Documentation   Provide overall Guidelines      Basic usage, functionality      Naming of scripts      How scripts a...
 Documentation   Function Reference   Copy of Functions script
 Documentation   Script Samples    Helps with buy-in    Gives examples    Re-usable snippets
 Handle all configuration via XML file variables Export steps to their own scripts Manage entirely through SharePoint L...
 What is COM?  http://en.wikipedia.org/wiki/Component_Object_Model What is WMI?  http://en.wikipedia.org/wiki/Windows_...
 Windows PowerShell for SharePoint Command Builder  http://go.gvaro.net/WS4s3u Gary Lapointe’s PowerShell cmdlets  htt...
   Meets 2nd Wednesday/month   6-8PM   Microsoft N.E.R.D. (Cambridge)   BostonSharePointUG.org   Twitter: @BASPUG / #...
 Geoff Varosky   Jornata    Managing Consultant, Senior Architect, Senior Developer, Director of     Evangelism    Pre...
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Upcoming SlideShare
Loading in...5
×

Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon

1,000

Published on

Technical Class:
Tuesday, March 5
4:00 PM - 5:15 PM

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,000
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
48
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Wonderful family, wife, 2 kids, love camping, hiking, backpacking, snowshoeing, and I’m also a stand-up comedian, and I love a good 80’s themed party.
  • Upkeep – all code requires this.
  • Component Object ModelWindows Management InstrumentationUnlike VBScript, it is a way for interacting with .NET objects
  • Get-command -Verb GetGet-command –Noun AddGet-command SP*Set-Location Alias: &gt; Get-ChildItemGet-PSProvider
  • Why AutoSPInstaller? The work has all been done for you, you can modify the code as needed.
  • No more GUID gobbeldygook
  • You name it!
  • Transcript of "Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon"

    1. 1. Automating your Enterprise ApplicationDeployments with PowerShell
    2. 2.  Geoff Varosky  Jornata  Managing Consultant, Senior Architect, Senior Developer, Director of Evangelism  President & Co-Founder Boston Area SharePoint Users Group  Co-Organizer SharePoint Saturday Boston  Recent Awards  Top 25 2012 Harmon.ie Online Community Influencer  Top 50 2012 KnowledgeLake Community Influencer  Blog – www.SharePointYankee.com  Email – geoff@varosky.com  Twitter – @gvaro
    3. 3.  Why Automation? PowerShell Environment Deployment Application Deployment Further Refinement Resources & Tools Q&A
    4. 4.  Who is using SharePoint? SharePoint Developers? SharePoint Administrators? Familiar with Scripting Languages? (bash, batch files, perl, vbscript) Using PowerShell?
    5. 5.  Pros  “Almost” human-less deployments  Re-Deployment  Restoration  Documented and actionable deployment  Saves on knowledge transfer  Reduces the risks of human error  Repeatable process
    6. 6.  Cons  Possible significant up-front time  Knowledge of PowerShell needed  Not managed code  Requires constant upkeep
    7. 7.  What is it?  More flexible, faster, extensible, and POWERful than STSADM  Scripting Language  Based on C#  Integrated with the .NET Framework  Load in DLLs  Provides full access to COM amd WMI  Not limited to JUST PowerShell  DOS commands (with UNIX-like aliases)
    8. 8.  Cmdlets  PowerShell Commands  Can create your own  Standardized using a verb-noun convention  Eat-Cake  Drink-Beer  Live-Life
    9. 9.  The Basics  Get-Command  Get-Help  Piping  Select-Object
    10. 10.  Aliases Cmdlet DOS Alias Description Get-Location pwd gl Current directory Set-Location cd, chdir sl Change current directory Copy-Item copy cpi Copy file/directory Remove-Item del ri Remove file/directory Move-Item move mi Move a file/directory New-Item - ni New a file/directory/object Clear-Item - cli Clear contents of file Get-Content type gc Read file contents to output Set-Content - sc Set file contents Format-Table - ft Formats output
    11. 11.  SharePoint Management Shell  Loaded with SharePoint 2010/2013  Automatically Loads Microsoft.SharePoint.PowerShell Snap In  531 cmdlets
    12. 12.  SharePoint Management Shell  Requires PowerShell 2.0  Backwards compatible, installs into 1.0 folder  <%SystemRoot%>System32WindowsPowerShellv1.0PowerShell.exe
    13. 13.  AutoSPInstaller  Deploy single or multi-server farms from one script  XML-based configuration  Re-launches with Elevated Privs to deal with User Access Control  Automatically download and install platform pre-requisites  Can be done in offline mode  Install both SharePoint and Office Web Apps using config files  ULS Logging path  IIS Configuration  PDF iFilter Installation
    14. 14.  AutoSPInstaller  Remote installation into other servers into the farm  Forefront installation and configuration  Logging of all installation  Easily re-start if a failure occurs  Easily slipstream installations (service pack 1, CUs, etc.)  Create web applications, site collections  New WFE or App Server? Wash, Rinse, Repeat.  New web application or service application? Wash, Rinse, Repeat.
    15. 15.  Configure Service Applications  User Profile Service Application  User Profile Synchronization Service  Metadata Service Application  SharePoint Foundation User Code Service  State Service Application  Usage and Health Service Application  Secure Store Service  Enterprise Search Service Application  Web Analytics Service Application  Business Data Connectivity Service Application  Excel Service Application  Access Service Application
    16. 16.  Configure Service Applications  PerformancePoint Service Application  Visio Graphics Service Application  Word Automation (Conversion) Service Application  Word Viewing Service Application  Excel Service Application (if not already provisioned by virtue of having an Enterprise license) Not PowerPivot  Overly complex install
    17. 17.  Creates databases based on YOUR naming conventions
    18. 18.  Maintenance  Any configurable change needs to be updated  If versioned, provides an evolution of your farm  Ensures
    19. 19.  Why deploy applications in PowerShell?  Developers can pass installations to administrators  Replicable through environment deployments DEV TEST PROD
    20. 20.  What can be automated?  Farm Configuration  Service application configuration  Search scopes  Managed Metadata  Web application configuration  Upload limits  Permission policies  Solution Deployment  EXE and MSI deployments
    21. 21.  Anatomy  Deployment Master Script  Variables  Initiates Logging  Step-By-Step Deployment  Directions and Documentation  Shared Functions File  Updates not to be done across scripts  Managed by platform team  Steps
    22. 22.  Documentation  Provide overall Guidelines  Basic usage, functionality  Naming of scripts  How scripts are used  How to use basic functions  How to run steps
    23. 23.  Documentation  Function Reference  Copy of Functions script
    24. 24.  Documentation  Script Samples  Helps with buy-in  Gives examples  Re-usable snippets
    25. 25.  Handle all configuration via XML file variables Export steps to their own scripts Manage entirely through SharePoint Lists  Additional steps can be scripted/approved through workflow? Host documentation and example scripts in SharePoint, allow alerts for file changes
    26. 26.  What is COM?  http://en.wikipedia.org/wiki/Component_Object_Model What is WMI?  http://en.wikipedia.org/wiki/Windows_Management_Instrumentation PowerShell for SharePoint References  2010: http://go.gvaro.net/XgmYCk  2013: http://go.gvaro.net/YBLtGW Cmdlet Index  2010: http://go.gvaro.net/WHh5wD  2013: http://go.gvaro.net/151DGaX
    27. 27.  Windows PowerShell for SharePoint Command Builder  http://go.gvaro.net/WS4s3u Gary Lapointe’s PowerShell cmdlets  http://go.gvaro.net/YirJau AutoSPInstaller  http://autospinstaller.codeplex.com
    28. 28.  Meets 2nd Wednesday/month 6-8PM Microsoft N.E.R.D. (Cambridge) BostonSharePointUG.org Twitter: @BASPUG / #BASPUG SPTechCon Hosted Meeting in August!
    29. 29.  Geoff Varosky  Jornata  Managing Consultant, Senior Architect, Senior Developer, Director of Evangelism  President & Co-Founder Boston Area SharePoint Users Group  Co-Organizer SharePoint Saturday Boston  Recent Awards  Top 25 2012 Harmon.ie Online Community Influencer  Top 50 2012 KnowledgeLake Community Influencer  Blog – www.SharePointYankee.com  Email – geoff@varosky.com  Twitter – @gvaro
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×