Configure App Environment And Create an App In SharePoint Server 2013

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, click Primary zone.

sharepoint

Click Next -> check All the DNS Servers are running on this domain.

sharepoint

Click Next.

Provide the zone name “sharepointapps.com”, followed by clicking Next.

sharepoint

Click Next- > allow automatic updates -> Click Finish.

sharepoint

As of now, the new forward lookup zone has been created successfully.

sharepoint

Create a CNAME for the domain name.

Right click on the app domain name -> Click New alias CNAME.

sharepoint

sharepoint

In the Alias name box, type ‘*’.

In FQDN (Fully Qualified Domain Name), click the forward lookup zone for SharePoint sites domain.

Click OK.

sharepoint

CNAME has been created successfully.

To verify the new domain name, open the command prompt.

Command

Ping domainname.sharepointapps.com

Example

Ping technologygeeks.sharepoint.com

sharepoint

After successful reply of an IP address from your Server, wild card has been created successfully.

Let’s navigate to SharePoint Server Central Administration to activate the Services given below.

  • 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, else start the Services.

sharepoint

You can also create subscription settings and app management Service Application via PowerShell and Central Administration.

After successful configuration of both Services, Applications will go and configure app URL.

Open SharePoint Central Administration.

Click Apps.

sharepoint

Under App management -> click Configure app URL.

sharepoint

Enter the app domain and app prefix.

sharepoint

Click OK to complete the setup.

Now, open Visual Studio -> under Office365/SharePoint -> App.

Pick a template app for SharePoint 2013.

sharepoint

Provide the name of the project “Helloworld”.

Provide the developer site URL and select the type of an app.

  • Auto hosted.
  • SharePoint hosted.
  • Provider hosted.

For my scenario, I have picked a SharePoint hosted app.

sharepoint

Click Finish.

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

sharepoint

Click Build - > Deploy.

sharepoint

After successful installation of app, it will look, as shown below.

sharepoint

Open the developer site.

Click the app -> Click Launch.

sharepoint

The final result is shown below.

sharepoint

Happy learning.