creating provider hosted apps-sharepoint online+azure
TRANSCRIPT
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.
Now Open VS – Create New Project – Choose Apps For SharePoint –choose hosting option as Provider Hosted –
Steps to Register and deploy the apps.
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
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
Again a window will appear to ask your client secret and client Id
Click On finish
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 –
Now you can use your app in SharePoint Site.