138
SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant Experts Inside GmbH

SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

  • Upload
    others

  • View
    65

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

SharePoint 2013, WebApps, Workflows and Apps

Samuel Zürcher, Senior Consultant

Experts Inside GmbH

Page 2: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Speaker

Samuel Zürcher

Senior Consultant / Evangelist

SharePoint und SQL Server

MCTS, MCITP, MCT, MVP

Kontakt und Webauftritte

[email protected]

[email protected]

Blog: http://sharepointszu.com

Community: http://www.sharepointcommunity.ch

Konferenz: http://www.collaborationdays.ch

XING: https://www.xing.com/profile/Samuel_Zuercher3

Facebook: http://www.facebook.com/sharepointszu

Twitter: @sharepointszu

Samuel Zürcher [MVP] hat Langjährige Erfahrung mit SharePoint seit der Version 2.0, breites Technologie Know-how und ist seit 15 Jahren in der IT tätig. Er ist im Projektmanagement in verschiedenen Projektgrössen und Komplexitätsstufen daheim, kennt sich aber auch mit dem innersten Kern von SharePoint aus. Verschiedene Zertifizierungen für SharePoint und der Microsoft Certified Trainer runden sein Profil ab (MCT, MCTS, MCIPT). Er ist der Initiant und zusammen mit Stefan Heinz Begründer der www.sharepointcommunity.ch und Co-Organisator der Collaboration Days.

Page 3: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Architecture and toppologyPreparation for SharePoint 2013

Page 4: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Topology differences with 2013

Streamlined

• New Topology Model

• Maximise performance for Users

• Distributed Cache

• Frontend Servers

• Batch Processing Servers

• Specialized workloads

• Database Servers

Classic

• Traditional three-tier Model

• Frontend Servers

• Application Servers

• Database Servers

Reference: http://technet.microsoft.com/en-us/library/jj219591.aspx

Page 5: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Classical Topology

Page 6: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Streamlined Topology

Page 7: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Goals of Streamlined tiersRole Goal

Distributed Cache Consistent latency:

• Latency — very low (<5 millisecond)

• Throughput — very high

• Resource utilization — medium

Frontend Fast response to user requests with consistent latency:

• Latency — low (<500 millisecond)

• Throughput — medium

• Resource utilization — low-medium

Batch-processing Maximize resources with high throughput:

• Latency — high (>1 minute)

• Throughput — high

• Resource utilization — high to very high

Specialized Fairly consistent latency:

• Latency — low (<500 milliseconds)

• Throughput — medium

• Resource utilization — low-high

Databases Fast response and consistent latency:

• Latency — very low (<5 milliseconds)

• Throughput — very high

• Resource utilization — low-medium

Page 8: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Services levels

Tier Components and services

Distributed Cache • Distributed Cache

• Request Management

• Web Application

Frontend • Access Services

• Data Connectivity

• Central Administration

• Managed Metadata

• Web Application

• Secure Store Service

• State

• Subscription Settings

• User Code

• User Profile

• Visio Graphics

Batch-processing • Crawl Target

• Machine Translation

• Web Application

• PowerPoint Conversion

• User Profile Sync

• Word Automation

• Work Management

• Workflow timer service

Specialized • Excel Calculation

• PerformancePoint

• Project

• Web Application

• Search

Page 9: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

From Classical to Streamlined

Page 10: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Microsofts Farmbuild

Page 11: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Scaling single and small

< 100 Users

< 1'000 Users

Page 12: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Scaling middle

< 10'000 Users

Page 13: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Scaling big

> 10'000 Users

Page 14: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Sql serverSQL Server is the Engine of SharePoint

Page 15: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

First things first

• SQL Server is the Heart of SharePoint, don’t forget!

• 8 Cores and 16GB RAM min.

• Be aware of Disk I/O, you mostly find there the Bottleneck

• Access Services generally go into a 2nd Instance, we will not follow this guideline in the following Demo because of time

Page 16: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

New High Availlability Model

• AlwaysOn as new High Availability Model for SharePoint 2013

• Based on availability groups

• Main benefit: • Be able to have one big muscled SQL Server to failover to n availability groups with lower cost

Hardware

• Delegate heavy read databases to be used from secondary replica

Reference: http://technet.microsoft.com/en-us/library/jj715261.aspx

Page 17: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Example for SharePoint 2013

Page 18: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Create Accounts we will need

Account Description

Sp-Setup Account to Set Up SharePoint (Needs Local Admin on SharePoint server

and Sysadmin in SQL Server)

Sp-CacheAdmin For Publishing sites, to admin the Cache

Sp-CacheReader For Publishing sites, to read from Cache

Sp-Farm To run SharePoint Farm

Sp-My To run My Site Portal

Sp-Portal To run Intranet Portal

Sp-Services To run Service Applications

Sp-Sql To run SQL Server

Sp-upi To do User Profile Import (Replicate Directory Changes)

Sp-Access To run Access Services

Sp-Workflow To run Workflow Manager

Page 19: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Feature Selection

Für AccessFor Access

Services 2013

Standard

Path

Page 20: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Service Account

Domain

Account

Attention!

Collation

Page 21: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Collation Selection

Page 22: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Customize Collation

Page 23: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Latin1_General_CI_AS_KS_WS

Is the closest to an

NTFS Filesystem

Page 24: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Authentication Mode

Domain

Group

Be aware

of Tabs!

For Access

Services only

Page 25: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Data Directories

Separate

Data, Log

and TempDB

Page 26: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

This is what you want to see

Page 27: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Post Configuration

• Min / Max Memory (be aware of other Instances and give 3GB to OS)

• Fill Factor 70%

• Backup Compression

• Max Degree of Parallelism to 1 (std.)

• Local Sec. Pol «Perform Volume Maintenance Tasks» and «Lock Pages in Memory»

Page 28: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Fill Factor / Backup Compression

Page 29: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Min / Max Memory

Page 30: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

For Access Services

• Enable Contained Databases = True

• Allow Triggers to Fire Others = True (std.)

• Default Language = English (std.)

• TCP/IP Protocol = Enabled (std.)

• Named Pipes Protocol= Enabled

• Windows Firewall Inbound Ports TCP 1433, TCP 1434, and UDP 1434

Page 31: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Mixed Mode

Page 32: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Contained Databases

Page 33: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Named Pipes

Page 34: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Firewall Settings Inbound Rules

Page 35: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Sharepoint 2013The basic Installation of SharePoint 2013 with Powershell

Page 36: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

First thins first

• The Frontends are more RAM intense thant in SharePoint 2010

• 4-8 CPU Cores and min. 12 GB RAM

• For Standallone SharePoint 24 GB RAM

• Streched Farmen are supportet agein, but only rarely make sense

• Be aware of SharePoint roles (Toppology) expecially with Search and Distributed Cache

Page 37: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

First thins first

• Still the following Versions• SharePoint Foundation

• SharePoint Server Standard

• SharePoint Server Enterprise

• No more Fast for SharePoint, no more SharePoint for Internet, it’s in the Product

• Allways install in English and then use Language Packs!!!

Page 38: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 1 – Prerequisites

Page 39: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 1 - Prerequisites done

Page 40: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 2 – SharePoint bits

Page 41: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Key

Page 42: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Alwayse «Complete»

Page 43: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Don’t touch File Location

Page 44: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Install Updates

• Public Updates:• Required to install

• Always to be installed

• Cumulative Updates:• Free to choose

• Only install if needed

Page 45: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 2 – SharePoint bits done

Deselect!!

Page 46: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 3 – Farm initial

Start

Powershell ISE

Page 47: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

ISE has many advantages

Write

Scripts

Input

directly

List of

Commands

Page 48: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Preparation - Variables

# Application Pool for Services and Access

$SaAppPoolName = "SharePoint Web Services Default"

$AppPoolUser = "demo\sp-services"

$AccessAppPoolName = "Access Services App Pool"

$AccessAppPoolUser = "demo\sp-access"

# SQL Alias

$SQLAliasName = "SharePointDB_Prod"

$SQLServerName = "SQL1\SHAREPOINT"

#Include Instance Name

$x86 = "HKLM:\Software\Microsoft\MSSQLServer\Client\ConnectTo"

$x64 = "HKLM:\Software\Wow6432Node\Microsoft\MSSQLServer\Client\ConnectTo"

$ConfigPassphrase = "MySharePointIs2013"

# Giving the Names for Databases

$dbConfig = "TBD_DEMO_SharePoint_Config"

$dbCentralAdmin = "TBD_DEMO_SharePoint_CentralAdmin"

# Central Admin Port and Authentication Method

$CaPort = 11111

$CaAuthProvider = "NTLM"

Page 49: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Preparation - System

# Check if Registry Key Paths for SQL-Alias already exist, create them if not

if ((test-path -path $x86) -ne $True) {

write-host "$x86 doesn't exist"

New-Item $x86

}

if ((test-path -path $x64) -ne $True) {

write-host "$x64 doesn't exist"

New-Item $x64

}

# Creating String to add TCP/IP Alias

$TCPAlias = ("DBMSSOCN," + $SQLServerName)

#Creating our TCP/IP Aliases

New-ItemProperty -Path $x86 -Name $SQLAliasName -PropertyType String -Value $TCPAlias

New-ItemProperty -Path $x64 -Name $SQLAliasName -PropertyType String -Value $TCPAlias

# Open cliconfig to verify the aliases

Start-Process C:\Windows\System32\cliconfg.exe

Start-Process C:\Windows\SysWOW64\cliconfg.exe

# Farm Passphrase

$s_configPassphrase = (ConvertTo-SecureString -String $ConfigPassphrase -AsPlainText -force)

Page 50: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Check if Alias was created

Alias is a must, you will get in

trouble, if you want to change

SQL Server and have no Alias

Page 51: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Simulate Config Wizzard# Make SharePoint PowerShell Availlable

Add-PSSnapin Microsoft.SharePoint.PowerShell

# Creating SharePoint Configuration Database

Write-Output "Creating the configuration database $dbConfig"

Write-Host "Bitte Farm Credentials eingeben" -ForegroundColor Green

$farmAccount = Get-Credential

New-SPConfigurationDatabase -DatabaseName $dbConfig -DatabaseServer $SQLAliasName -

AdministrationContentDatabaseName $dbCentralAdmin -Passphrase $s_configPassphrase -FarmCredentials

$farmAccount

# Check to make sure the farm exists and is running. if not, end the script

$Farm = Get-SPFarm

if (!$Farm -or $Farm.Status -ne "Online") {

Write-Output "Farm was not created or is not running"

exit

}

Write-Output "Create the Central Administration site on port $CaPort"

New-SPCentralAdministration -Port $CaPort -WindowsAuthProvider $CaAuthProvider

# Perform the config wizard tasks

Write-Output "Install Help Collections"

Install-SPHelpCollection -All

Write-Output "Initialize security"

Initialize-SPResourceSecurity

Write-Output "Install services"

Install-SPService

Write-Output "Register features"

Install-SPFeature -AllExistingFeatures

Write-Output "Install Application Content"

Install-SPApplicationContent

Write-Host "Farm build complete." -ForegroundColor Green

Page 52: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Managed Account and App Pool

# Add managed accounts

Write-Host "Creating managed accounts ... "

Write-Host "Bitte Services Account Credentials eingeben" -ForegroundColor Green

$servicesAccount = Get-Credential

New-SPManagedAccount -credential $servicesAccount

Write-Host "Bitte Access Services Account Credentials eingeben" -ForegroundColor Green

$AccessservicesAccount = Get-Credential

New-SPManagedAccount -credential $AccessservicesAccount

Write-Host "Bitte Portal Account Credentials eingeben" -ForegroundColor Green

$portalAccount = Get-Credential

New-SPManagedAccount -credential $portalAccount

Write-Host "Bitte MySite Account Credentials eingeben" -ForegroundColor Green

$MySiteAccount = Get-Credential

New-SPManagedAccount -credential $MySiteAccount

# Creating App Pool for Service Applications

New-SPServiceApplicationPool -Name $SaAppPoolName -Account (Get-SPManagedAccount –Identity $AppPoolUser)

New-SPServiceApplicationPool -Name $AccessAppPoolName -Account (Get-SPManagedAccount –Identity $AccessAppPoolUser)

Page 53: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 3 – Farm Initial done

Page 54: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.1 – Usage and Health

# Usage and Health Data Collection

# Parameters

$UsageSAName = "Usage and Health Data Collection"

$dbUsageService = "TBD_DEMO_Usage_and_Health_Data"

$UsageLogLocation = "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS"

$MaxUsageLogSpace = 5 #in GB

# Create Service Application

Write-Host "Creating Usage and Health Data Collection..."

Set-SPUsageService -LoggingEnabled 1 -UsageLogLocation $UsageLogLocation -UsageLogMaxSpaceGB$MaxUsageLogSpace

$UsageService = Get-SPUsageService

New-SPUsageApplication -Name $UsageSAName -DatabaseServer $SQLAliasName -DatabaseName $dbUsageService -UsageService $UsageService

# As Proxy ist stopped after this, provision in

$UsageSAProxy = Get-SPServiceApplicationProxy | where-object {$_.TypeName -eq “Usage and Health Data Collection Proxy”}

$UsageSAProxy.Provision()

Page 55: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.2 – State Service

# State Service

# Parameters

$StateSAName = "State Service"

$dbStateService = "TBD_DEMO_State"

# Create Service

Write-Host "Creating State Service..."

New-SPStateServiceDatabase -Name $dbStateService

$StateSAPipe = New-SPStateServiceApplication -Name $StateSAName-Database $dbStateService

New-SPStateServiceApplicationProxy -Name "$StateSAName Proxy" -ServiceApplication $StateSAPipe -DefaultProxyGroup

Page 56: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.3 – a: Managed Metadata

# Managed Metadata Service Application

# Parameters

$ManagedMetadataSAName = "Managed Metadata Service"

$dbManagedMetadata = "TBD_DEMO_Managed_Metadata"

# Create Service Application

Write-Host "Creating Managed Metadata Service..."

New-SPMetadataServiceApplication -Name $ManagedMetadataSAName –ApplicationPool $SaAppPoolName -DatabaseServer $SQLAliasName -DatabaseName $dbManagedMetadata

New-SPMetadataServiceApplicationProxy -Name "$ManagedMetadataSANameProxy" -ServiceApplication $ManagedMetadataSAName -DefaultProxyGroup

Get-SPServiceInstance | where-object {$_.TypeName -eq "Managed MetadataWeb Service"} | Start-SPServiceInstance

Page 57: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

b: Options for MMS Proxy

Page 58: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

c: MMS Proxy Settings

# Get Metadata service application proxy

$MMSProxy = Get-SPServiceApplicationProxy | Where-Object {$_.TypeName -eq "ManagedMetadata Service Connection"}

# This service application is the default storage location for Keywords.

$MMSProxy.Properties["IsDefaultKeywordTaxonomy"] = $true

# This service application is the default storage location for column specific term sets.

$MMSProxy.Properties["IsDefaultSiteCollectionTaxonomy"] = $true

# Consumes content types from the Content Type Gallery

$MMSProxy.Properties["IsNPContentTypeSyndicationEnabled"] = $false

# Push-down Content Type Publishing updates from the Content Type Gallery to sub-sites and lists using the content type.

$MMSProxy.Properties["IsContentTypePushdownEnabled"] = $true

$MMSProxy.Update()

Page 59: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.4 – a: Search Parameters

# Search Service Application and Topology

# Parameters

$SearchMachine = "WFE1"

$SearchSAName = "Search Service"

$dbSearchDatabase = "TBD_DEMO_Search"

$IndexLocation = "C:\SPIndex"

if (!(Test-Path -path $Indexlocation)) {New-Item $Indexlocation -Type

Directory}

Page 60: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

b: Create Search SA

# Create Service Application

Write-Host "Creating Search Service Application…"

Write-Host "Starting Service…"

Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $SearchMachine

Start-SPEnterpriseSearchServiceInstance $SearchMachine

Write-Host "Creating Search Service Application…"

$SearchSA = New-SPEnterpriseSearchServiceApplication -Name $SearchSAName -ApplicationPool $SaAppPoolName -DatabaseServer $SQLAliasName

-DatabaseName $dbSearchDatabase

$SearchInstance = Get-SPEnterpriseSearchServiceInstance -Local

Write-Host "Defining the Search Topology…"

$InitialSearchTopology = $SearchSA | Get-SPEnterpriseSearchTopology -Active

$NewSearchTopology = $SearchSA | New-SPEnterpriseSearchTopology

Write-Host "Creating Admin Component…"

New-SPEnterpriseSearchAdminComponent -SearchTopology $NewSearchTopology -SearchServiceInstance $SearchInstance

Write-Host "Creating Analytics Component…"

New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $NewSearchTopology -SearchServiceInstance $SearchInstance

Write-Host "Creating Content Processing Component…"

New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $NewSearchTopology -SearchServiceInstance $SearchInstance

Write-Host "Creating Query Processing Component…"

New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $NewSearchTopology -SearchServiceInstance $SearchInstance

Write-Host "Creating Crawl Component…"

New-SPEnterpriseSearchCrawlComponent -SearchTopology $NewSearchTopology -SearchServiceInstance $SearchInstance

Write-Host "Creating Index Component…"

New-SPEnterpriseSearchIndexComponent -SearchTopology $NewSearchTopology -SearchServiceInstance $SearchInstance -RootDirectory

$IndexLocation

Write-Host "Activating the new topology…"

$NewSearchTopology.Activate()

Write-Host "Creating Search Application Proxy…"

New-SPEnterpriseSearchServiceApplicationProxy -Name "$SearchSAName Proxy" -SearchApplication $SearchSA

Page 61: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

c: Simple Search Topology

82

Page 62: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.5 – Word Automation SA

# Word Conversion Service Application

$WordSAName = "Word Automation Service"

$dbWordAutomation = "TBD_DEMO_WordAutomation"

# Create Service Application

Write-Host "Creating Word Automation Service..."

New-SPWordConversionServiceApplication -Name $WordSAName -

ApplicationPool $SaAppPoolName -DatabaseName $dbWordAutomation -

DatabaseServer $SQLAliasName –Default

Get-SPServiceInstance | where-object {$_.TypeName -eq "Word

Automation Services"} | Start-SPServiceInstance

Page 63: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.6 – Business Connectivity

# Business Conectivity Services Service Application

$BcsSAName = "Business Connectivity Service"

$dbBcs = "TBD_DEMO_BusinessConnectivity"

# Create Service Application

Write-Host "Creating Business Connectivity Service..."

New-SPBusinessDataCatalogServiceApplication –ApplicationPool

$SaAppPoolName –DatabaseName $dbBcs –DatabaseServer

$SQLAliasName –Name $BcsSAName

Get-SPServiceInstance | where-object {$_.TypeName -eq "Business

Data Connectivity Service"} | Start-SPServiceInstance

Page 64: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.7 – Secure Store

# Secure store Service Application

$SecureStoreSAName = "Secure Store Service"

$dbSecureStore = "TBD_DEMO_Secure_Store"

# Create Service Application

Write-Host "Creating Secure Store Service..."

$SecureStoreSAPipe = New-SPSecureStoreServiceApplication –

ApplicationPool $SaAppPoolName –AuditingEnabled:$false –DatabaseServer

$SQLAliasName –DatabaseName $dbSecureStore –Name $SecureStoreSAName

New-SPSecureStoreServiceApplicationProxy –Name "$SecureStoreSAName

Proxy" –ServiceApplication $SecureStoreSAPipe -DefaultProxyGroup

Get-SPServiceInstance | where-object {$_.TypeName -eq "Secure Store

Service"} | Start-SPServiceInstance

Page 65: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.8 – Performance Point

# Performance Point Service Application

$PerformancePointSAName = "Performance Point Services"

$dbPerformancePoint = "TBD_DEMO_PerformancePoint"

# Create Service Application

Write-Host "Creating PerformancePoint Service..."

$PerformancePointSAPipe = New-SPPerformancePointServiceApplication -Name $PerformancePointSAName -ApplicationPool $SaAppPoolName -DatabaseName $dbPerformancePoint

New-SPPerformancePointServiceApplicationProxy -Name "$PerformancePointSAName Proxy" -ServiceApplication$PerformancePointSAPipe –Default

Get-SPServiceInstance | where-object {$_.TypeName -eq "PerformancePointService"} | Start-SPServiceInstance

Page 66: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.9 – Visio Services

# Visio Service Application

$VisioSAName = "Visio Services"

# Create Service Application

Write-Host "Creating Visio Service..."

New-SPVisioServiceApplication -Name $VisioSAName -

ApplicationPool $SaAppPoolName

New-SPVisioServiceApplicationProxy -Name "$VisioSAName Proxy" -

ServiceApplication $VisioSAName

Get-SPServiceInstance | where-object {$_.TypeName -eq "Visio

Graphics Service"} | Start-SPServiceInstance

Page 67: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.10 – User Profile SA

# User Profile Service Application

$UserProfileSAName = "User Profile Service"

$dbUserProfile = "TBD_DEMO_UserProfile_Profiles"

$dbUserSocial ="TBD_DEMO_UserProfile_Social"

$dbUserSync ="TBD_DEMO_UserProfile_Sync"

# Create Service Application

Write-Host "Creating User Profile Service..."

$UserProfileSAPipe = New-SPProfileServiceApplication -Name $UserProfileSAName -ApplicationPool $SaAppPoolName -ProfileDBServer $SQLAliasName -ProfileDBName$dbUserProfile -SocialDBServer $SQLAliasName -SocialDBName $dbUserSocial -ProfileSyncDBServer $SQLAliasName -ProfileSyncDBName $dbUserSync

New-SPProfileServiceApplicationProxy -Name "$UserProfileSAName Proxy" -ServiceApplication $UserProfileSAPipe -DefaultProxyGroup

Get-SPServiceInstance | where-object {$_.TypeName -eq "User Profile Service"} |Start-SPServiceInstance

Page 68: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.11 – App Management

# App management Service Application

$AppManagementSAName = "App Management Service"

$dbAppManagement = "TBD_DEMO_App_Management"

# Create Service Application

Write-Host "Creating App Management Service…"

$AppManagementSAPipe = New-SPAppManagementServiceApplication -Name

$AppManagementSAName -DatabaseServer $SQLAliasName -DatabaseName

$dbAppManagement –ApplicationPool $SaAppPoolName

New-SPAppManagementServiceApplicationProxy -Name "$AppManagementSAName

Proxy" -ServiceApplication $AppManagementSAPipe

Get-SPServiceInstance | where-object {$_.TypeName -eq "App Management

Service"} | Start-SPServiceInstance

Page 69: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.12 – Translation Service

# Machine Translation Service Application

$TranslationSAName = "Machine Translation Service"

$dbTranslation = "TBD_DEMO_Machine_Translation"

# Create Service Application

Write-Host "Creating Machine Translation Service..."

New-SPTranslationServiceApplication -Name $TranslationSAName -

ApplicationPool $SaAppPoolName -DatabaseName $dbTranslation -

Default

Get-SPServiceInstance | where-object {$_.TypeName –eq "Machine

Translation Service"} | Start-SPServiceInstance

Page 70: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.13 – Work Management

# Work Management Service Application

$WorkMgmtSAName = "Work Management Service"

# Create Service Application

Write-Host "Creating Work Management Service..."

$WorkManagementSAPipe = New-SPWorkManagementServiceApplication –

Name $WorkMgmtSAName –ApplicationPool $SaAppPoolName

New-SPWorkManagementServiceApplicationProxy -name

"$WorkMgmtSAName Proxy" -ServiceApplication

$WorkManagementSAPipe -DefaultProxyGroup

Get-SPServiceInstance | where-object {$_.TypeName –eq "Work

Management Service"} | Start-SPServiceInstance

Page 71: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

4.13.1 – Give rights to AppPool

Give the Services App Pool

Account full Rights to User

Profile Service Application

Page 72: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.14 – Excel Services

# Excel Services

$ExcelSAName = "Excel Services"

# Create Service Application

Write-Host "Creating Excel Service..."

New-SPExcelServiceApplication -Name $ExcelSAName -

ApplicationPool $SaAppPoolName -Default

Get-SPServiceInstance | where-object {$_.TypeName –eq "Excel

Calculation Services"} | Start-SPServiceInstance

Page 73: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.15 – Subscription Settings

• Subscription Settings Service is for Multi Tenancy Scenarios

• Also needed for Access Services 2013

# Subscription Settings Service Application

$SubscriptionSAName = "Subscription Settings Service"

$dbSubscription = "TBD_DEMO_Subscription_Settings"

# Create Service Application

Write-Host "Creating Subscription Settings Service…"

$SubscriptionSAPipe = New-SPSubscriptionSettingsServiceApplication –ApplicationPool$SaAppPoolName –Name $SubscriptionSAName –DatabaseName $dbSubscription

New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $SubscriptionSAPipe

Get-SPServiceInstance | where-object {$_.TypeName -eq "Microsoft SharePoint FoundationSubscription Settings Service"} | Start-SPServiceInstance

Page 74: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.16 – a: Access Services

• Will only work after App Configuration (follows next)

• Concider using an Extra App Pool (special configuration)

# Access Services

$AccessSAName = "Access Services"

# Create Service Application

Write-Host "Creating Access Service…"

New-SPAccessServicesApplication -Name $AccessSAName -ApplicationPool $AccessAppPoolName -Default

Get-SPServiceInstance | where-object {$_.TypeName -eq "Access Services"} | Start-SPServiceInstance

White Paper: http://www.microsoft.com/en-us/download/details.aspx?id=30445

Page 75: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

b: SQL Feature Pack

• Microsoft SQL Server 2012 Local DB (SQLLocalDB.msi)

• Microsoft SQL Server 2012 Data-Tier Application Framework (DACFramework.msi)

• Microsoft SQL Server 2012 Native Client (sqlncli.msi)

• Microsoft SQL Server 2012 Transact-SQL ScriptDom (sqldom.msi)

• Microsoft System CLR Types for Microsoft SQL Server 2012 (SQLSysClrTypes.msi)

Feature Pack: http://www.microsoft.com/en-us/download/details.aspx?id=29065

Page 76: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

c: App Pool Config

1. Advanced Settings 2. Load User Profile > True

3. Restart Server

Page 77: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

d: Secure StoreGo to Secure

Store Service

and generate

a new Key

Enter any

secure

String

Page 78: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

e: Target DB Server

Navigate to Access

Services Service App,

expand «New

Application

Database»

In Our Case we use

std. SQL Server,

normally use

dedicated

Page 79: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

f: Setting SQL Rights for App Pool

• Give demo\sp-access following Rights:• Configuration Database: DBO

• Content Databases: DBO

• App Management Database: SPDataAccess

Page 80: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

g: Office Deployments

• If you have Office deployed in different Languages, you must deploy all theseLanguages as SharePoint Language Pack

• User will get an error if not

Page 81: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.17 – Other Services

• Claims to windows Token: If you have Scenarios with external Data Access

• Document Conversion: If you want to convert Documents to HTML

• Lotus Notes Connector: Self explaining

• Sandboxed Code: To run Sandboxed Solutions (recomended)

• PowerPoint Conversion: If you want to implement ppt > pptx Conversion

• Request Management: If you want to load balance SharePoint 2013

• User Profile Synchronization: If you are using FIM to synchronise User Profiles

Page 82: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.18 – Create WebApps

• Create an Intranet Portal with the Team Site Template

• Create a My Site Portal with the My Site Host Template

Page 83: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.19 – Configure My Site

• Go to User Profile Service Application

• Click to «Steup My Sites»

• Add http://my.demo.local to My Site Host

• Hit OK

• Go to Webapplications, on My Site Web App configure Self Service to yes

• Add Managed Path «Personal»

Page 84: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.20 – Import Users from AD

• There are two Methods to do this:• Forefront Identity Manager (like in 2010)

• AD Direct Import

• Depends on your Scenario

• Done in User Profile Service Application

• Import Account needs «Replicate Directory Changes» Right on AD

Page 85: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 4.21 – Cache Users

$wa = Get-SPWebApplication -Identity

"http://intranet.demo.local"

$wa.Properties["portalsuperuseraccount"] = "i:0#.w|demo\sp-

cacheadmin"

$wa.Properties["portalsuperreaderaccount"] = "i:0#.w|demo\sp-

cachereader"

$wa.Update()

Page 86: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 5 – SharePoint Apps

• Apps is the new Model for Development in SharePoint 2013

• Access Services is used like Apps

• An App can be• SharePoint hosted

• Auto hosted

• Provider hosted

• We need to configure it specially

Page 87: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Preparing for Apps

• We need to configure a new Domain Name

• Nothign to do with Active Directory!!

• We call it Appdomain

• In our case demoapps.local

• Done in DNS Manager

• Used to forward to SharePoint

Page 88: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Add new Zone

Page 89: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Next

Page 90: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Next

Page 91: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Next

Page 92: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Enter Domain Name

Page 93: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Next

Page 94: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Finish

Page 95: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Add New Host to Appdomain

Right click

and select

«New Host»

Page 96: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Point * to Frontend or NLBThis will point

all Apps to

SharePoint

Page 97: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Create Server Webapplication

• Needed for Host Header Web Apps and Host named Site Collections

• No Host Header

• Inf not created, redirect to App will not take place

• Be aware of DB Name and App Pool Account

Page 98: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Create Top Level SC

• Make sure you have selected the Frontend Web App

• Don’t forgett to set Primary SC Admin

Page 99: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

«Standard Website» offMake sure,

Default Web

Site is stopped

Page 100: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Configure App Urls

Page 101: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Create App Catalog

• App Catalog is managed per Web Application

• Create a App Catalog under each Web Application you have in your Company

• It’s a normal Site Collection

Page 102: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

New App Catalog Dialog

Page 103: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

The WebappsInstallation and Integration of Office WebApps in SharePoint 2013

Page 104: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

First things first

• Web Apps are no longer a Service Application

• Web Apps are a standallone Server and cannot be installed on SharePoint WFE

• Web Apps can be used from Fileshares, Outlook Web Access and so on

• Licensing is still a user based License (Office Package)

Page 105: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 1 – Preparation

# Add needed Roles to Server

Import-Module ServerManager

Add-WindowsFeature Web-Server,Web-Mgmt-Tools,Web-Mgmt-

Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-

Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-

Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-

Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-

Filter,Web-Includes,InkandHandwritingServices

• Server need Restart after this

Page 106: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Step 2 – Installation

Page 107: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Install Now

Page 108: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Wait for Install to finish

Page 109: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Close

Page 110: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Apply Update KB2810007

Update Link: http://www.microsoft.com/en-us/download/details.aspx?id=38378

Page 111: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Wait for Update to finish

Page 112: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Update done

Page 113: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Create Web Apps Farm

# Create Office Web Apps Farm (Single Farm)

New-OfficeWebAppsFarm –InternalURL "http://WebApps.demo.local" –

AllowHttp -EditingEnabled

• Check if Discovery Service answers (with an XML) http://webapps.demo.local/hosting/discovery

Page 114: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Bind Web Apps to SharePoint

• Run on SharePoint Server!

# Create new WOPI Binding for SharePoint to Web Apps Server

New-SPWOPIBinding -ServerName webapps -AllowHTTP

Get-SPWOPIZone

Set-SPWOPIZone –zone "internal-http"

Get-SPWOPIZone

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

$config = (Get-SPSecurityTokenServiceConfig)

$config.AllowOAuthOverHttp = $true

$config.Update()

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

Page 115: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Workflows 2013Integration of Workflow Manager in SharePoint 2013

Page 116: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

First things first

• Workflows changed in SharePoint 2013

• Needs it’s own Installation (Workflow Manager)

• Can run on SharePoint Frontend or Standallone Server

Page 117: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Launch Workflow Manager

Page 118: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Install

Page 119: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Accept Terms

Page 120: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Use Ms Updates

Page 121: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Wait for Install

Page 122: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Continue

Page 123: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Configuration Wizzard

Page 124: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Add DB Server, User, Passphrase

Page 125: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Wait for Config to finish

Page 126: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Config ready to install

Page 127: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Wait for Install

Page 128: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Workflow Farm created

Page 129: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Finish

Page 130: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Exit

Page 131: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Add WF Manager to SharePoint

# Register Workflow Service

Register-SPWorkflowService –SPSite "http://intranet.demo.local"

–WorkflowHostUri "http://wfe1.demo.local:12291" –AllowOAuthHttp

Page 132: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Ports for Workflows

• 12290 – Management Port

• 9355 – Secure Deployment

• 12291 – Unsecured Management Port

• 9354 – TCP Deployment

• 9356 – Message Broker

• 9000-9003 – Internal Communication

Page 133: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Now you can use 2013 WF

Page 134: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Performance TestingUsing Visual Studio and SQLIO to do Performance Testing

Page 135: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

SQLIO

Parameter Description

Sqlio Program Call

-kR / -kW Measure Read oder Write Performance

-t32 No. of Threads

-s60 Duration in Seconds

-dF What drive is tested (Driveletter)

-o64 No. of outstanding Requests

-frandom Random Operations (Sequential ismostly not used)

-b64 Blocksize in bytes

Download: http://www.microsoft.com/en-us/download/details.aspx?id=20163

Page 136: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

SQLIO Test Batch

sqlio -kW -t16 -s60 -dF -o4 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t16 -s60 -dF -o8 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t16 -s60 -dF -o16 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t16 -s60 -dF -o32 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t16 -s60 -dF -o64 -frandom -b64 -BH -LS Testfile.dat

sqlio -kR -t16 -s60 -dF -o4 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t16 -s60 -dF -o8 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t16 -s60 -dF -o16 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t16 -s60 -dF -o32 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t16 -s60 -dF -o64 -frandom -b64 -BH -LS Testfile.dat

sqlio -kW -t32 -s60 -dF -o4 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t32 -s60 -dF -o8 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t32 -s60 -dF -o16 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t32 -s60 -dF -o32 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t32 -s60 -dF -o64 -frandom -b64 -BH -LS Testfile.dat

sqlio -kR -t32 -s60 -dF -o4 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t32 -s60 -dF -o8 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t32 -s60 -dF -o16 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t32 -s60 -dF -o32 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t32 -s60 -dF -o64 -frandom -b64 -BH -LS Testfile.dat

sqlio -kW -t64 -s60 -dF -o4 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t64 -s60 -dF -o8 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t64 -s60 -dF -o16 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t64 -s60 -dF -o32 -frandom -b64 -BH -LS Testfile.datsqlio -kW -t64 -s60 -dF -o64 -frandom -b64 -BH -LS Testfile.dat

sqlio -kR -t64 -s60 -dF -o4 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t64 -s60 -dF -o8 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t64 -s60 -dF -o16 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t64 -s60 -dF -o32 -frandom -b64 -BH -LS Testfile.datsqlio -kR -t64 -s60 -dF -o64 -frandom -b64 -BH -LS Testfile.dat

Page 137: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Visual Studio Ultimate

Page 138: SharePoint 2013, WebApps, Workflows and Appsdownload.microsoft.com/download/4/0/B/40B72252-30D... · SharePoint 2013, WebApps, Workflows and Apps Samuel Zürcher, Senior Consultant

Questions & Answers

….noch Fragen?!

Kontakt:

[email protected]

Mehr zum Thema:

http://sharepointszu.com/category/die-serie-best-practice/