creating provider hosted apps-sharepoint online+azure

7
Provide Hosted App-Walkthrough Author – Pankaj Srivastava Provider-hosted app includes components that are deployed and hosted outside the SharePoint farm. They are installed to the host web, but their remote components are hosted on another remote server that should not be a server in the SharePoint farm. This document contains information about how to create provider hosted app on Azure. 1. Before creating Application lets first create a fresh webApp on azure to host a Application Login to https://manage.windowsazure.com Click on WebApp Enter your webApp Name- Click on Create WebApp Button Once Application get created click on Application and go to dashboard tab there will be an option to download Publishing Profile click and download that publishing profile.

Upload: pankaj-srivastava

Post on 22-Jan-2018

263 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Creating Provider hosted Apps-SharePoint Online+Azure

Provide Hosted App-Walkthrough

Author – Pankaj Srivastava

Provider-hosted app includes components that are deployed and hosted outside the SharePoint farm. They are installed to the host web, but their remote components are hosted on another remote server that should not be a server in the SharePoint farm.

This document contains information about how to create provider hosted app on Azure.1. Before creating Application lets first create a fresh webApp on azure to host a

ApplicationLogin to https://manage.windowsazure.comClick on WebApp

Enter your webApp Name- Click on Create WebApp Button

Once Application get created click on Application and go to dashboard tab there will be an option to download Publishing Profile click and download that publishing profile.

Page 2: Creating Provider hosted Apps-SharePoint Online+Azure

Now Open VS – Create New Project – Choose Apps For SharePoint –choose hosting option as Provider Hosted –

Steps to Register and deploy the apps.

Page 3: Creating Provider hosted Apps-SharePoint Online+Azure

1. Register Your App to SharePoint/Office365

Open AppRegNew.aspx

https://xyz.sharepoint.com/sites/abc/_layouts/15/appregnew.aspx

Now click on Generate Button to generate your ClientId and ClientSecret enter your title a

App Domain- your azure web Application which you have created earlier

Redirect URI – Startup Page of application- click on create button

Make sure you have copied client Id or Client Secret- now go to the solution open AppMenifest.xml file

Update your client Id

Page 4: Creating Provider hosted Apps-SharePoint Online+Azure

Also update the web.config file-

Right Click k on host Web- Click on publish – select current Profile –NEW a new Window will appear to upload your publishing Profile that I have downloaded from Azure.

Click On finish

Page 5: Creating Provider hosted Apps-SharePoint Online+Azure

Again a window will appear to ask your client secret and client Id

Click On finish

Page 6: Creating Provider hosted Apps-SharePoint Online+Azure

Now right click on App Web- click on publish

Now right click on HostApp click on publish –click on package the app

Once .App file generated upload in AppCatalog Site –

Page 7: Creating Provider hosted Apps-SharePoint Online+Azure

Now you can use your app in SharePoint Site.