programming4us
 
Applications Server
 

Packaging and Deploying Sharepoint 2013 Apps : Deploying an App (part 3) - Autohosted App Deployment

2/8/2014 1:19:22 AM

3. Autohosted App Deployment

Autohosted application deployment is almost as straightforward as SharePoint-hosted application deployment. This is because SharePoint Online takes care of all the heavy lifting deploying the code and database packages to Azure for you as well as creating and managing client IDs and secrets.

In the following exercise you will give creating a simple Autohosted app a go and deploy it into SharePoint Online using a private app catalog.


Deploying an Autohosted App

In this example you create a very basic SharePoint Autohosted application using Visual Studio. You need a SharePoint Online tenant set up as well as the app catalog created from the previous exercise, “Creating a Private App Catalog in Office 365,” prior to starting this exercise.
1. Create a new SharePoint app in Visual Studio using the App for SharePoint 2013 template by selecting File ⇒ New Project ⇒ App for SharePoint 2013.

2. Enter the name of your app in the first box; for example, MyAutoHostedApp.

3. Enter the URL to your SharePoint Online developer site.

4. Select Autohosted from the app type drop-down list. When you have completed the form it should look similar to Figure 22.

FIGURE 22

image

5. Click Finish.

6. Right-click the Web project in the solution and select Publish.

7. Click Next. A summary page appears like the one shown in Figure 23.

FIGURE 23

image

8. Click Finish. Once the wizard completes a new Windows Explorer window opens with your application package called MyAutoHostedApp.app showing.

9. Open a browser window and navigate to the tenant admin portal for your Office 365 environment at: http://portal.microsoftonline.com.

10. Under the Admin menu in the top navigation, click SharePoint to go to the SharePoint Online tenant admin pages.

11. Click Apps in the left-side navigation.

12. Click the App Catalog link.

13. Click the Distribute apps for SharePoint tile.

14. Click the New App button. A prompt appears asking you to pick the .app file for your application.

15. Click Browse and select the .app file that Visual Studio packaged for you in step 8. Click OK. A dialog appears asking you to enter information about your application, as shown in Figure 24.

FIGURE 24

image

16. You are not required to enter any information, but if you want, enter the information and then click Save to proceed. You should now see your
SharePointAutoHostedApp application in the app catalog.

17. Navigate to your development site in SharePoint Online.

18. Click Site Contents in the left-side navigation.

19. Click Add an App.

20. Click From Your Organization in the left-side navigation; you should see your newly added application listed.

21. Click the tile for the application. A pop-up dialog opens, asking whether you trust your app.

22. Click Trust It, as shown in Figure 25. Your new app becomes listed in the site contents.

FIGURE 25

image

23. Click it. You are redirected to your app and should see the title of your site written to the page, as shown in Figure 26. Note that the URL of your app pages sits in o365apps.net. This is the SharePoint Online–controlled Azure tenancy that your code package was automatically deployed to during installation.

FIGURE 26

image

How It Works

In this exercise you created a rudimentary SharePoint Autohosted app that simply lists the name of the host site that app is installed in. You packaged the app using the Visual Studio Publish wizard and then deployed to your app catalog in SharePoint Online. When you installed the application, SharePoint Online took the code package from the app package and deployed it to Azure for you. It then installed the application in your SharePoint site. Note that in this example you didn’t need to deal with client IDs and secrets. That is because SharePoint Online creates and configures those for you in the Autohosted scenario. When the application ran it used the Client-Side Object Model (CSOM) combined with OAuth to call back to SharePoint and retrieve the name of the host Web SharePoint site.
 
Others
 
- Packaging and Deploying Sharepoint 2013 Apps : Deploying an App (part 2) - Provider-Hosted App Deployment
- Packaging and Deploying Sharepoint 2013 Apps : Deploying an App (part 1) - SharePoint-Hosted App Deployment
- Microsoft Lync Server 2013 Edge Server : Edge Server Administration (part 5) - Managing External Web Conferencing Features
- Microsoft Lync Server 2013 Edge Server : Edge Server Administration (part 4) - Managing Public Providers
- Microsoft Lync Server 2013 Edge Server : Edge Server Administration (part 3) - Managing XMPP Federation
- Microsoft Lync Server 2013 Edge Server : Edge Server Administration (part 2) - Assigning External Access Policies, Managing Federation
- Microsoft Lync Server 2013 Edge Server : Edge Server Administration (part 1) - Editing the Global External Access Policy, Creating a New External Access Policy
- Microsoft Lync Server 2013 Edge Server : Edge Server Configuration
- Packaging and Deploying Sharepoint 2013 Apps : Packaging and Publishing an App
- Packaging and Deploying Sharepoint 2013 Apps : Anatomy of an App (part 3) - Web Deploy Package, Database Package
 
 
REVIEW
 
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
 
VIDEO TUTORIAL
 
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
 
Top 10
 
- How To Install Android Market & Google Apps On Kindle Fire
- How To Make Ubuntu Look Like Windows 7
- How To Add A New Account in MS Outlook 2013
- Get Android & Mac OS X Style Gadgets For Windows 7 & Windows 8 With XWidget
- How To Activate Microsoft Office 2013
- How To Install Actual Facebook App On Kindle Fire
- How To Create, View And Edit Microsoft Office Files On Kindle Fire
- Download Attractive Business PowerPoint Templates For Free At SlideHunter
- How To Use And Enable Hibernate & Sleep Mode In Windows 8
- How To Get Microsoft Office 2013 Trial Product Key From Microsoft