SlideShare une entreprise Scribd logo
1  sur  29
HEADING TO THE CLOUD 
Introduction to deploying a Provider-Hosted App in Azure
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…
XENOX GARAVITO 
SharePoint Developer 
Planet Technologies 
MCPD, MCITP, MCT
AGENDA 
• SharePoint Development Overview 
• What are SharePoint Apps? 
• What do I need to get started? 
• Scenarios
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!
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
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
WHAT DO I NEED TO GET STARTED 
• Development Environment 
• On Premises 
• Multi-VM 
• Takes a lot of RAM (24GB?) 
•Office 365 
• Visual Studio
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
AZURE PORTAL 
• Announced at Worldwide Partner Conference 
• 9 VM High Availability Farm (or 3 VMs) 
• https://portal.azure.com 
• Quickly provision a farm
AZURE PORTAL 
• Entire Farm is built 
• High Availability is 
available
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
CONFIGURE SHAREPOINT FARM 
• Login to Domain Controller 
• Install AD DS Tools and DNS Server Tools
CONFIGURE SHAREPOINT FARM 
• Add a new Subnet to Azure Network 
• Used for a development Visual Studio server
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
CONFIGURE SHAREPOINT FARM 
• Add App Domain in DNS
CONFIGURE SHAREPOINT FARM 
• Point App Zone (appdomain.com) to the Visual Studio Server 
• Point *.appdomain.com to the SharePoint Server WFE
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)
CONFIGURE SHAREPOINT FOR HIGH-TRUST 
(SERVER TO SERVER) APPS 
New-SPTrustedRootAuthority -Name "HighTrustSampleCert" -Certificate $certificate 
$realm = Get-SPAuthenticationRealm 
$specificIssuerId = "11111111-1111-1111-1111-111111111111“ 
$fullIssuerIdentifier = $specificIssuerId + '@' + $realm 
New-SPTrustedSecurityTokenIssuer -Name "High Trust Sample Cert" -Certificate $certificate -RegisteredIssuerName 
$fullIssuerIdentifier –IsTrustBroker 
iisreset 
$serviceConfig = Get-SPSecurityTokenServiceConfig 
$serviceConfig.AllowOAuthOverHttp = $true 
$serviceConfig.Update()
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
VISUAL STUDIO 
• Create SP Hosted App 
• Create Provider Hosted App (On Prem) 
• Create Provider Hosted App (On O365)
REGISTERING YOUR APP IN THE CLOUD 
• Note the App ID and Secret 
• {SiteUrl}/_layouts/appregnew.aspx 
• {SiteUrl}/_layouts/appinv.aspx
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
OFFICE 365 -> PATTERNS & PRACTICES 
• https://github.com/OfficeDev/PnP 
• http://azure.microsoft.com/blog/2014/10/22/webjobs-goes-into- 
full-production/ 
• http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/04/07/sharepoint-timer-jobs-running- 
as-windows-azure-web-jobs.aspx
WEBJOBS IN AZURE 
• Create Azure Website 
• Add AZUREWEBJOBSTORAGE connection string to 
storage account for logging (Required!)
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;
WEBJOBS IN AZURE 
• Publish Console App as Azure WebJob using Visual Studio 
• OR ZIP it up (with DLL references) and deploy in Azure
Thanks to our Sponsors!!!
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!

Contenu connexe

Tendances

The art of .net deployment automation
The art of .net deployment automationThe art of .net deployment automation
The art of .net deployment automation
MidVision
 

Tendances (20)

SPS Dakar 2018 - I developed a SharePoint framework solution, what to do next...
SPS Dakar 2018 - I developed a SharePoint framework solution, what to do next...SPS Dakar 2018 - I developed a SharePoint framework solution, what to do next...
SPS Dakar 2018 - I developed a SharePoint framework solution, what to do next...
 
I5 - Bring yourself up to speed with power shell
I5 -  Bring yourself up to speed with power shellI5 -  Bring yourself up to speed with power shell
I5 - Bring yourself up to speed with power shell
 
I2 - SharePoint Hybrid Search Start to Finish - Thomas Vochten
I2 - SharePoint Hybrid Search Start to Finish - Thomas VochtenI2 - SharePoint Hybrid Search Start to Finish - Thomas Vochten
I2 - SharePoint Hybrid Search Start to Finish - Thomas Vochten
 
Loading native plugins using PhoneGap content-sync
Loading native plugins using PhoneGap content-syncLoading native plugins using PhoneGap content-sync
Loading native plugins using PhoneGap content-sync
 
PhoneGap Day EU 2016 - Closing Remarks
PhoneGap Day EU 2016 -  Closing RemarksPhoneGap Day EU 2016 -  Closing Remarks
PhoneGap Day EU 2016 - Closing Remarks
 
DEVELOPING SHAREPOINT FRAMEWORK SOLUTIONS FOR THE ENTERPRISE
DEVELOPING SHAREPOINT FRAMEWORK SOLUTIONS FOR THE ENTERPRISEDEVELOPING SHAREPOINT FRAMEWORK SOLUTIONS FOR THE ENTERPRISE
DEVELOPING SHAREPOINT FRAMEWORK SOLUTIONS FOR THE ENTERPRISE
 
Azure functions
Azure functionsAzure functions
Azure functions
 
The art of .net deployment automation
The art of .net deployment automationThe art of .net deployment automation
The art of .net deployment automation
 
Azure Web Apps
Azure Web AppsAzure Web Apps
Azure Web Apps
 
Implementing Office Online Server
Implementing Office Online ServerImplementing Office Online Server
Implementing Office Online Server
 
Sitecore 8 Azure PaaS Module Blueprint
Sitecore 8 Azure PaaS Module BlueprintSitecore 8 Azure PaaS Module Blueprint
Sitecore 8 Azure PaaS Module Blueprint
 
Getting started with the PnP Provisioning Engine
Getting started with the PnP Provisioning EngineGetting started with the PnP Provisioning Engine
Getting started with the PnP Provisioning Engine
 
aOS Monaco 2019 - B7 - I Developed a SPFx solution, what to do next and how t...
aOS Monaco 2019 - B7 - I Developed a SPFx solution, what to do next and how t...aOS Monaco 2019 - B7 - I Developed a SPFx solution, what to do next and how t...
aOS Monaco 2019 - B7 - I Developed a SPFx solution, what to do next and how t...
 
Custom dev o365
Custom dev   o365Custom dev   o365
Custom dev o365
 
SPO Migration - New API
SPO Migration - New APISPO Migration - New API
SPO Migration - New API
 
Sitecore hosted on azure
Sitecore hosted on azureSitecore hosted on azure
Sitecore hosted on azure
 
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
 
Era of server less computing
Era of server less computingEra of server less computing
Era of server less computing
 
How the Cloud Changes Business Solution Design and Delivery
How the Cloud Changes Business Solution Design and DeliveryHow the Cloud Changes Business Solution Design and Delivery
How the Cloud Changes Business Solution Design and Delivery
 
SharePoint Apps model overview
SharePoint Apps model overviewSharePoint Apps model overview
SharePoint Apps model overview
 

Similaire à Heading to the Cloud : Introduction to deploying a Provider-Hosted App in Azure

Similaire à Heading to the Cloud : Introduction to deploying a Provider-Hosted App in Azure (20)

Chef Automate - Azure Sydney User Group
Chef Automate - Azure Sydney User GroupChef Automate - Azure Sydney User Group
Chef Automate - Azure Sydney User Group
 
The new Azure App Service Architecture
The new Azure App Service ArchitectureThe new Azure App Service Architecture
The new Azure App Service Architecture
 
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
 
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
 
New SharePoint Features in Visual Studio 2012!
New SharePoint Features in Visual Studio 2012!New SharePoint Features in Visual Studio 2012!
New SharePoint Features in Visual Studio 2012!
 
Azure Functions 101
Azure Functions 101Azure Functions 101
Azure Functions 101
 
D2 - Automate Custom Solutions Deployment on Office 365 and Azure - Paolo Pia...
D2 - Automate Custom Solutions Deployment on Office 365 and Azure - Paolo Pia...D2 - Automate Custom Solutions Deployment on Office 365 and Azure - Paolo Pia...
D2 - Automate Custom Solutions Deployment on Office 365 and Azure - Paolo Pia...
 
Developing a Provider Hosted SharePoint app
Developing a Provider Hosted SharePoint appDeveloping a Provider Hosted SharePoint app
Developing a Provider Hosted SharePoint app
 
Deep dive into share point framework webparts
Deep dive into share point framework webpartsDeep dive into share point framework webparts
Deep dive into share point framework webparts
 
SharePoint Saturday Calgary 2017 - From SharePoint to Office 365 Development
SharePoint Saturday Calgary 2017 - From SharePoint to Office 365 DevelopmentSharePoint Saturday Calgary 2017 - From SharePoint to Office 365 Development
SharePoint Saturday Calgary 2017 - From SharePoint to Office 365 Development
 
Developing a provider hosted share point app
Developing a provider hosted share point appDeveloping a provider hosted share point app
Developing a provider hosted share point app
 
SharePoint Fest DC 2018 - From SharePoint to Office 365 Development
SharePoint Fest DC 2018 - From SharePoint to Office 365 DevelopmentSharePoint Fest DC 2018 - From SharePoint to Office 365 Development
SharePoint Fest DC 2018 - From SharePoint to Office 365 Development
 
SPS Gulf : SharePoint 2013 Cloud Business App
SPS Gulf : SharePoint 2013 Cloud Business AppSPS Gulf : SharePoint 2013 Cloud Business App
SPS Gulf : SharePoint 2013 Cloud Business App
 
ESPC Webinar - From SharePoint to Office 365 Development
ESPC Webinar - From SharePoint to Office 365 DevelopmentESPC Webinar - From SharePoint to Office 365 Development
ESPC Webinar - From SharePoint to Office 365 Development
 
Custom Development in SharePoint – What are my options now?
Custom Development in SharePoint – What are my options now?Custom Development in SharePoint – What are my options now?
Custom Development in SharePoint – What are my options now?
 
Keynote speech
Keynote speechKeynote speech
Keynote speech
 
Getting started with development in azure
Getting started with development in azureGetting started with development in azure
Getting started with development in azure
 
Developing Apps for SharePoint 2013
Developing Apps for SharePoint 2013Developing Apps for SharePoint 2013
Developing Apps for SharePoint 2013
 
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
 
aOS Canadian Tour - Quebec - From SharePoint to Office 365 Development
aOS Canadian Tour  - Quebec - From SharePoint to Office 365 DevelopmentaOS Canadian Tour  - Quebec - From SharePoint to Office 365 Development
aOS Canadian Tour - Quebec - From SharePoint to Office 365 Development
 

Dernier

Dernier (10)

Databricks Machine Learning Associate Exam Dumps 2024.pdf
Databricks Machine Learning Associate Exam Dumps 2024.pdfDatabricks Machine Learning Associate Exam Dumps 2024.pdf
Databricks Machine Learning Associate Exam Dumps 2024.pdf
 
Understanding Poverty: A Community Questionnaire
Understanding Poverty: A Community QuestionnaireUnderstanding Poverty: A Community Questionnaire
Understanding Poverty: A Community Questionnaire
 
Breathing in New Life_ Part 3 05 22 2024.pptx
Breathing in New Life_ Part 3 05 22 2024.pptxBreathing in New Life_ Part 3 05 22 2024.pptx
Breathing in New Life_ Part 3 05 22 2024.pptx
 
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdfMicrosoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
Microsoft Fabric Analytics Engineer (DP-600) Exam Dumps 2024.pdf
 
ServiceNow CIS-Discovery Exam Dumps 2024
ServiceNow CIS-Discovery Exam Dumps 2024ServiceNow CIS-Discovery Exam Dumps 2024
ServiceNow CIS-Discovery Exam Dumps 2024
 
Deciding The Topic of our Magazine.pptx.
Deciding The Topic of our Magazine.pptx.Deciding The Topic of our Magazine.pptx.
Deciding The Topic of our Magazine.pptx.
 
DAY 0 8 A Revelation 05-19-2024 PPT.pptx
DAY 0 8 A Revelation 05-19-2024 PPT.pptxDAY 0 8 A Revelation 05-19-2024 PPT.pptx
DAY 0 8 A Revelation 05-19-2024 PPT.pptx
 
2024-05-15-Surat Meetup-Hyperautomation.pptx
2024-05-15-Surat Meetup-Hyperautomation.pptx2024-05-15-Surat Meetup-Hyperautomation.pptx
2024-05-15-Surat Meetup-Hyperautomation.pptx
 
ACM CHT Best Inspection Practices Kinben Innovation MIC Slideshare.pdf
ACM CHT Best Inspection Practices Kinben Innovation MIC Slideshare.pdfACM CHT Best Inspection Practices Kinben Innovation MIC Slideshare.pdf
ACM CHT Best Inspection Practices Kinben Innovation MIC Slideshare.pdf
 
The Influence and Evolution of Mogul Press in Contemporary Public Relations.docx
The Influence and Evolution of Mogul Press in Contemporary Public Relations.docxThe Influence and Evolution of Mogul Press in Contemporary Public Relations.docx
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…
  • 3. XENOX GARAVITO SharePoint Developer Planet Technologies MCPD, MCITP, MCT
  • 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
  • 13. CONFIGURE SHAREPOINT FARM • Login to Domain Controller • Install AD DS Tools and DNS Server Tools
  • 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
  • 16. CONFIGURE SHAREPOINT FARM • Add App Domain in DNS
  • 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)
  • 19. CONFIGURE SHAREPOINT FOR HIGH-TRUST (SERVER TO SERVER) APPS New-SPTrustedRootAuthority -Name "HighTrustSampleCert" -Certificate $certificate $realm = Get-SPAuthenticationRealm $specificIssuerId = "11111111-1111-1111-1111-111111111111“ $fullIssuerIdentifier = $specificIssuerId + '@' + $realm New-SPTrustedSecurityTokenIssuer -Name "High Trust Sample Cert" -Certificate $certificate -RegisteredIssuerName $fullIssuerIdentifier –IsTrustBroker iisreset $serviceConfig = Get-SPSecurityTokenServiceConfig $serviceConfig.AllowOAuthOverHttp = $true $serviceConfig.Update()
  • 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
  • 24. OFFICE 365 -> PATTERNS & PRACTICES • https://github.com/OfficeDev/PnP • http://azure.microsoft.com/blog/2014/10/22/webjobs-goes-into- full-production/ • http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/04/07/sharepoint-timer-jobs-running- as-windows-azure-web-jobs.aspx
  • 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
  • 28. Thanks to our Sponsors!!!
  • 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!