1- First you need to create a new Azure WebSite. So logon to https://manage.windowsazure.com and go to the websites and click create.
2- Once the web site is created now download the publishing profile.
3- Now go to your app and import this publishing profile and publish your app to azure.
4- Click save to save the created profiles but do not publish yet as it will fail. Now open the file “backeryapp - Web Deploy.pubxml” using VS and edit it to insert the following lines
5- Now publish your site to azure and it should succeed
6- Now you should be able to open your site and see the normal public page (not linked to SharePoint).
7- Now open your “AppManifest.xml” file and make sure you change the URL or your app to the Azure URL (Note that the URL must be HTTPS based)
8- Now do not deploy it to SharePoint yet as it will fail, you need to register your app to SharePoint (same as what VS is doing automatically for you) so go to your tenant and open the page https://<tenant>.sharepoint.com/_layouts/15/appregnew.aspx and click on the two generate buttons and fill the information as required:
9- Now copy both the Client Id and the Client Secret and put them in your site web.config file replacing the values there. Republish your site to azure.
10- Now click on Create on the application registration page
11- Now publish the SharePoint App.
12- Now go to your SharePoint tenant and upload the App package.
13- Now test your app from the link below
Hi, the picture has been defunct, could you update it ?
I am sorry but it seems to be an issue in the platform itself. Please click on any picture it will give you a 404 and then click your back button in the browser. All picture should display correctly now.
Hi, Can't get the pics to work either. Seems they really have been removed. Do you think you can upload them again? Guess it requires some work, but I'm quite sure many people would enjoy this great article.
I cross posted this to my personal blog here http://blogs.msdn.com/b/momalek/archive/2014/03/31/sharepoint-provider-hosted-app-walkthrough-part-2-dig-deep.aspx and images seem to work fine there. I will try to work on fixing the problem here too if I can.
Very nice, cheers!
Hi, Great post for beginners. However, The images are now showing up, can you please fix that?
Hi, How to refer/replace "Myapp" as in my code its not working. can u suggest how i will refere it Thanks in advance Samara
The HTML for the Layout is not working for me. I don't know why and I can't figure it out. Is there maybe somthing wrong with my Project? I created a Provider Hosted SharePoint with ASP.NET MVC 5 and pasted the HTML in the right spaces of my _Layout.cshtml. In addition: I don't have a _SiteLayout.cshtml.