From SharePoint Saturday DC (Reston)
Saturday 25th October, 2014 1:00pm to 2:15pm (EST)
This session is targeted to the SharePoint .NET developer who has been clinging to sandbox/farm solutions and putting off jumping into the SharePoint App model. Get your head out of the clouds and head into the cloud! This introductory session will guide you through the steps to provision a scalable Provider-Hosted App in Azure.
The Influence and Evolution of Mogul Press in Contemporary Public Relations.docx
Heading to the Cloud : Introduction to deploying a Provider-Hosted App in Azure
1. HEADING TO THE CLOUD
Introduction to deploying a Provider-Hosted App in Azure
2. HOUSEKEEPING…
• Download EventBoard Mobile and remember to fill out
session evaluations…
• Phasers set to stun, mobile devices set to silent…
• You must be present to win at the wrap-up…
4. AGENDA
• SharePoint Development Overview
• What are SharePoint Apps?
• What do I need to get started?
• Scenarios
5. SHAREPOINT DEVELOPMENT
SharePoint
2003/2007
• Web Parts
• WSP (2007)
• Server Side Code (GAC or BIN)
• Client side code (Page
customizations)
• Web Services (Lists.asmx)
SharePoint 2010
• More of the same
• Farm Solutions
• Better integration with Visual
Studio
• List data Rest service
(listdata.svc)
• Sandbox Solutions
• Isolated Process
SharePoint 2013
• Farm Solutions
• Sandbox Solutions with code are
deprecated
• Apps!
6. WHAT ARE APPS?
Apps for SharePoint are easy-to-use,
lightweight web applications that integrate
popular web standards and technologies to
extend the capabilities of a SharePoint website
7. WHAT ARE APPS?
SharePoint Hosted
• Client side
• JavaScript
• CSS
• HTML
• Isolated to App Web
Provider Hosted
• Hosted outside of
SharePoint
• On - premises
• In Azure
• Any language
8. WHAT DO I NEED TO GET STARTED
• Development Environment
• On Premises
• Multi-VM
• Takes a lot of RAM (24GB?)
•Office 365
• Visual Studio
9. WHAT DO I NEED TO GET STARTED
Standalone
SharePoint 2013
• Easy/Quick to setup (5 min)
• Single Server
• No Active Directory built-in
• Better if added piecemeal as
part of a farm
10. AZURE PORTAL
• Announced at Worldwide Partner Conference
• 9 VM High Availability Farm (or 3 VMs)
• https://portal.azure.com
• Quickly provision a farm
11. AZURE PORTAL
• Entire Farm is built
• High Availability is
available
12. SHAREPOINT FARM
• Provisions multiple servers
• AD, SQL, SharePoint Front Ends
• Network
• Usually takes over an hour
• Some configuration needed to support
app development
http://msdn.microsoft.com/en-us/library/office/fp179923(v=office.15).aspx
14. CONFIGURE SHAREPOINT FARM
• Add a new Subnet to Azure Network
• Used for a development Visual Studio server
15. CONFIGURE SHAREPOINT FARM
• Create a new VM within the Farm Network
• Use Visual Studio 2013 Template
• Add to the SharePoint Farm Domain
• Install most recent Visual Studio Update
• http://www.visualstudio.com/news/vs2013-update4-rc-vs
17. CONFIGURE SHAREPOINT FARM
• Point App Zone (appdomain.com) to the Visual Studio Server
• Point *.appdomain.com to the SharePoint Server WFE
18. CONFIGURE SHAREPOINT FOR HIGH-TRUST
(SERVER TO SERVER) APPS
• http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx
• Need an x.509 Certificate
• Can be self-signed for development (use IIS or MakeCert.exe)
$publicCertPath = "C:CertsHighTrustSampleCert.cer"
$certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($publicCertPath)
20. VISUAL STUDIO PROJECT
• New Project
• Choose APP-Authentication settings.
• ACS (for SharePoint Online / O365)
• Client Certificate (for On Premises)
• Client ID auto set with F5 deployment
21. VISUAL STUDIO
• Create SP Hosted App
• Create Provider Hosted App (On Prem)
• Create Provider Hosted App (On O365)
22. REGISTERING YOUR APP IN THE CLOUD
• Note the App ID and Secret
• {SiteUrl}/_layouts/appregnew.aspx
• {SiteUrl}/_layouts/appinv.aspx
23. AMS (APP MODEL SAMPLES)
• http://officeams.codeplex.com
• Examples, Guidance, reference code
• Reusable Components
• People Picker
• Taxonomy Menu
• Taxonomy Picker
• Final July 2014 release -> Now in GitHUB
25. WEBJOBS IN AZURE
• Create Azure Website
• Add AZUREWEBJOBSTORAGE connection string to
storage account for logging (Required!)
26. WEBJOBS IN AZURE
• Get Client ID and Secret from a deployed SharePoint App
and place in Web.Config
• Use as credentials for Console Application
string accessToken = TokenHelper.GetAppOnlyAccessToken(
TokenHelper.SharePointPrincipal,
siteUri.Authority, realm).AccessToken;
27. WEBJOBS IN AZURE
• Publish Console App as Azure WebJob using Visual Studio
• OR ZIP it up (with DLL references) and deploy in Azure
29. Join us at #SharePint sponsored by K2 at World of Beer of
Reston in the Towncenter just across the bridge
Why? To network with fellow SharePoint professionals
What? SharePint!!!
When? 6:00 PM
Where?
World of Beer Reston
1888 Explorer Street
Reston, VA 20190
Thanks to?
K2!