Configure your SharePoint Development Environment in the Cloud

Post on 26-Jun-2015

262 views 2 download

Tags:

description

Slides for session presented at SharePoint and Project Conference Adriatics 2014, 15.10.2014. With SharePoint 2013, hardware and software requirements for functional virtual machines are significantly increased compared to previous SharePoint version, and creation of dev environments brings new challenges to development teams. On the other hand, Microsoft Azure offers several Visual Studio based Virtual machines that can be configured for SharePoint development. In this session we will walk through configuration of single-server development environment for SharePoint development hosted on Microsoft Azure cloud, including configuration for apps and workflow development.

Transcript of Configure your SharePoint Development Environment in the Cloud

Configure your SharePoint Development Environment in the Cloud

DRAGAN PANJKOV, PLANB.

dragan panjkov• learning sharepoint since 2007

www.dragan-panjkov.comwww.twitter.com/panjkov

• planb. d.o.o.www.planb.ba

• new office user group bihwww.1sug.com www.mscommunity.ba

• mcsd – sharepoint applications• MVP for Office365 (april 2014)

questions asked• why should we use azure vm for sharepoint?• what instance should I use?• how should I configure virtual machine?• can I really use that for sharepoint development?

introduction• why sharepoint on azure• suitable virtual machines for sharepoint • software and configuration requirements

sharepoint deployment options

CONTROL

CO

ST-E

FF

ICIE

NC

Y

SharePoint(On-premises)

SharePoint

Value PropFull h/w control – size/scaleRoll-your-own HA/DR/scale

Value Prop100% of API surface areaEasy migration of existing appsRoll-your-own HA/DR/scale

SharePoint (IaaS)

Hosted SharePoint

Value PropAuto HA, Fault-ToleranceFriction-free scaleSelf-provisioning, mgmt. @ scale

Office 365 (SaaS)

SharePoint Service

sharepoint as azure vmWhy Host in Microsoft Azure Virtual Machines? Control - hosting in Microsoft Azure gives you a similar level of control to hosting on premises minus managing the hardware. Agility – quickly spin up or copy development and test environments.Smaller Laptops for consultants

SharePoint Server 2010 and 2013 supportedPlatform base image available for 2013KB2728976 for SP 2010 (Using Sysprep to create SharePoint 2010 images for use in Microsoft Azure Virtual Machines) https://support.microsoft.com/kb/2728976Fast Search Server 2010 is NOT supported in Microsoft AzurePure single-vm scenarioDev, Test or Demo environments

suitable vm sizesSize Name CPU Cores Memory Max. data disks Max. IOPS

ExtraSmall Shared 768 MB 1 1x500

Small 1 1.75 GB 2 2x500

Medium 2 3.5 GB 4 4x500

Large 4 7 GB 8 8x500

ExtraLarge 8 14 GB 16 16x500

A5 2 14 GB 4 4X500

A6 4 28 GB 8 8x500

A7 8 56 GB 16 16x500

A8 8 56 GB 16 16x500

A9 16 112 GB 16 16x500

Each data disk can hold up to 1 TB of storage.

SharePoint Virtual Machines

service apps required for dev vmThe following are the minimum SharePoint 2013 services and service applications that are recommended for development environments:• App Management service application• Central Administration web site• Claims to Windows Token service (C2WTS)• Distributed cache service• Microsoft SharePoint Foundation 2013 Site and

Subscription Settings service• Secure Store Service• User Profile service application (SharePoint Server 2013

only)http://technet.microsoft.com/en-us/library/cc262485(v=office.15)#section4

WORKING DEV VM HOSTED ON AZURE

provisioning• Azure Portal• Available options (described)• MSDN Visual Studio VM Template

configuring sharepoint• scripts already pre-deployed on the vm• in domain• standalone

• auto sp installer• azure scripts on github

https://github.com/Azure/azure-sdk-tools-samples http://autospinstaller.codeplex.com/ https://autospinstallergui.codeplex.com/

script on msdn virtual machine template• can be configured in a domain or as standalone vm (our

case)• Saved in C:\ConfigureDeveloperDesktop\Scripts• .\ConfigureSharePointFarm.ps1 -

localSPFarmAccountName SP_Farm -localSPFarmAccountPassword mypass -verbose

configuring apps (without domain)• required for all apps• sharepoint apps always live in separate domain• two service applications are taking care of the apps• Application Management Service App• Subscription Settings Service App

• app url’s need to be configured in Central Admin

http://msdn.microsoft.com/en-us/library/fp179923(v=office.15)

configuring apps - steps1. create an app domain

1. add domain name to hosts file (as we don’t have dns)2. add registry keys DisableStrictNameChecking and

DisableLoopbackCheck3. create web application and configure aam to app domain4. map host header in iis to app domain

2. start services in central admin1. App Management Service2. Subscription Settings Service

3. configure service applications1. use central admin or powershell configure app management service

app and proxy2. use powershell to configure subscription settings service app and proxy

4. configure app urls in central adminhttp://www.ashokraja.me/post/Develop-SharePoint-2013-Napa-App-In-Local-Dev-Environment-Configuring-On-Premises-without-DNS.aspx

configuring service application for apps• powershell script from msdn$account = Get-SPManagedAccount "domain\user" $appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account $appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account $appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc $appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc

http://msdn.microsoft.com/en-us/library/fp179923(v=office.15)

configuration for high-trust apps • for development of provider-hosted apps without acs• steps

1. create Self-signed certificate in iis2. export twice (with and without private key)3. create issuer id4. create security token issuer5. create trusted root authority

http://blog.karstein-consulting.com/2013/01/08/create-provider-hosted-high-trust-app-for-sharepoint-2013-short-guide/

CONFIGURING APPS AND HIGH TRUST

configuring workflow• web platform installer• installing workflow manager• configuring workflow manager• register workflow service with sharepoint

http://blog.fpweb.net/sharepoint-2013-workflow-installing-and-configuring/

USING WEB PI TO CONFIGURE WORKFLOWS

questions answered?• why should we use azure vm for sharepoint?• what instance should I use?• how should I configure virtual machine?• can I really use that for sharepoint development?

questions?

WWW.DRAGAN-PANJKOV.COM

@PANJKOV

thank you.

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 10/15/2014 - 10/16/2014