Configure app environment and create a app in sharepoint server 2013

sharepoint server 2013 configure app environment

In this article I have explained how to configure app environment for deploying custom SharePoint apps in SharePoint server 2013 on premise environment.

Step 1:- Create a forward lookup zone
Click Start -> Open DNS Manager
Right click on Forward Lookup Zone -> Click New Zone
On the Zone Type “Pick Primary Zone”

sharepoint server 2013 configure app environment

Click Next -> Check All the DNS servers running on this domain


sharepoint server 2013 configure app environment 1
sharepoint server 2013 configure app environment 1

Click next
Provide the zone name “sharepointapps.com” then click next

sharepoint server 2013 configure app environment 2
sharepoint server 2013 configure app environment 2

Click next- > allow automatic updates -> Click next to finish

sharepoint server 2013 configure app environment 3
sharepoint server 2013 configure app environment 3

So as of now the new forward lookup zone has been created successfully


sharepoint server 2013 configure app environment 4
sharepoint server 2013 configure app environment 4

Create a CNAME for the domain name
Right Click on the App domain name -> Click New alias CNAME

sharepoint server 2013 configure app environment 5
sharepoint server 2013 configure app environment 5
sharepoint server 2013 configure app environment 6
sharepoint server 2013 configure app environment 6

In the Alias name box type ‘*’
In the FQDN (Fully qualified domain name) pick the forward lookup zone for the sharepoint sites domain
Click Ok.

sharepoint server 2013 configure app environment 7
sharepoint server 2013 configure app environment 7

CNAME has been created successfully.
To verify the new domain name
Open command prompt
Command:
Ping domainname.sharepointapps.com
Example:
Ping technologygeeks.sharepoint.com



sharepoint server 2013 configure app environment 8
sharepoint server 2013 configure app environment 8

After successful reply of IP address from your server wild card has been created successfully.
Let’s navigate to sharepoint server central administration to activate the following services
– Microsoft Sharepoint Foundation Subscription setting services
– App management services
Open Central administration -> Navigate to system settings -> Click manage services on the server
Check both services are in started state or else start the services

sharepoint server 2013 configure app environment 9
sharepoint server 2013 configure app environment 9

You can also create a subscription settings and app management service application via PowerShell and central administration.
After successful configuration of both service applications will go and configure app url
Open sharepoint central administration
Click Apps.

sharepoint server 2013 configure app environment 10
sharepoint server 2013 configure app environment 10

Under App management -> Click configure app url

sharepoint server 2013 configure app environment 11
sharepoint server 2013 configure app environment 11

Enter the app domain and app prefix.

sharepoint server 2013 configure app environment 12
sharepoint server 2013 configure app environment 12

Click Ok to complete the setup
Now open visual studio -> under Office365/sharepoint -> App
Pick a template App for sharepoint 2013

sharepoint server 2013 configure app environment 13
sharepoint server 2013 configure app environment 13

Provide the name of the project “Helloworld”
Provide the developer site url and select the type of app
– Auto hosted
– Sharepoint hosted
– Provider hosted
For my scenario I have pick a Sharepoint hosted app

sharepoint server 2013 configure app environment 14
sharepoint server 2013 configure app environment 14

Click Finish
Modify the default.aspx page with <h1></h1> tag

sharepoint server 2013 configure app environment 15
sharepoint server 2013 configure app environment 15

Click Build – > Deploy

sharepoint server 2013 configure app environment 16
sharepoint server 2013 configure app environment 16

After successful installation of app

sharepoint server 2013 configure app environment 17
sharepoint server 2013 configure app environment 17

Open the developer site
Click on the app -> Click Launch

sharepoint server 2013 configure app environment 18
sharepoint server 2013 configure app environment 18

Final Result:

sharepoint server 2013 configure app environment
sharepoint server 2013 configure app environment

Read some SharePoint tutorials below:

Happy learning!


You May Also like the Following SharePoint Online Tutorials:

Leave a Reply