Configure On Premise environment for Apps in SharePoint 2016

enable apps sharepoint 2016

In this post, we will discuss how we can configure the on-premise environment for Apps in SharePoint 2016. If you have not yet started SharePoint 2016, you can install SharePoint 2016 and try our few new features like SharePoint 2016 List View Auto Indexing Automatic Index Management, SharePoint 2016 Fast Site Collection Creation using PowerShell.

After installing if you will try to add an app from the app store you will not be able to add it. It will message like “Sorry, we can’t seem to connect to the SharePoint store. Try again in a bit.”

Follow below steps to configure the environment:

Configure Forward Lookup Zone:

– First, we need to add a forward lookup zone for Apps. In windows server, 2012 r2 search for Administrative tools and then click on DNS. This will open the DNS manager. In the DNS manager expand server and then right click on Forward Lookup Zones and click on New Zone… as shown in the fig below:

Configure On Premise environment for Apps in SharePoint 2016, SharePoint 2016 Apps
Configure On-Premise environment for Apps in SharePoint 2016, SharePoint 2016 Apps

This will open the New Zone wizard like below, here click on Next.

how to configure sharepoint 2013 on-premises deployments for apps
how to configure SharePoint 2013 on-premises deployments for apps

Then in the Zone Type, select Primary Zone and select the checkbox “Store the zone in Active Directory (available only if DNS server is a writable domain controller)” like below:

setup sharepoint 2013 app development environment
setup SharePoint 2013 app development environment

Then in the “Active Directory Zone Replication Scope select “To all DNS servers running on domain controllers in this domain” option like below (you can choose according to your requirement):

how to configure sharepoint 2016 on-premises deployments for apps
how to configure SharePoint 2016 on-premises deployments for apps

In the zone, name type the zone name like below and click on Next.

setup sharepoint 2016 app development environment
setup SharePoint 2016 app development environment

In the Dynamic Update page, select Allow only secure dynamic updates (recommended for Active Directory) option. It should look like below:

sharepoint 2013 apps configuration step by step
SharePoint 2013 apps configuration step by step

In the last screen, it will display all the settings. Verify and click on Finish as shown in the fig below:

enable apps sharepoint 2016
enable apps SharePoint 2016

After this, if you will see in the Forward Lookup Zones, you can see the one entry there with the name we provided.

enable apps sharepoint 2013
enable apps SharePoint 2013

Create CNAME Record:

Next, we need to create CNAME records for the newly created domain name, for this follow below steps.

Again go back to the DNS manager if you have closed it. Then expand the Forward Lookup Zone and right click on the newly created domain name. Then select “New Alias (CNAME). If this option comes as disable, then just refresh once, it will automatically enable.

sharepoint 2016 development environment
SharePoint 2016 development environment

Then in the New Resource Record, in the alias name give *. It will auto-populate the Fully qualified domain name (FDQN). Then in the Fully qualified domain name (FQDN) for target host: click on Browse… as shown in the fig below:

Configure On Premise environment for Apps in SharePoint 2016, SharePoint 2016 Apps
Configure On-Premise environment for Apps in SharePoint 2016, SharePoint 2016 Apps

Then click on the Server name as shown in the fig below:

how to configure sharepoint 2013 on-premises deployments for apps
how to configure SharePoint 2013 on-premises deployments for apps

Then click on Forward Lookup Zones as shown in the fig below:

setup sharepoint 2013 app development environment
setup SharePoint 2013 app development environment

Then select the domain that hosts the SharePoint sites as shown in the fig below:

setup sharepoint 2016 app development environment
setup SharePoint 2016 app development environment

Then select the record that points to the server that hosts the SharePoint site like below:

how to configure sharepoint 2016 on-premises deployments for apps
how to configure SharePoint 2016 on-premises deployments for apps

After this the final New Resource Record window should look like below:

 

enable apps sharepoint 2016
enable apps SharePoint 2016

Verify if the newly created domain:

To verify if the newly created domain configured successfully ping the domain name like below, Open PowerShell command and ping like below:

enable apps sharepoint 2013
enable apps SharePoint 2013

Start Subscription Settings and App Management Services:

In the next step, we need to start Subscription settings as well as App management services. Open SharePoint 2016 central administration. Then click on “Manage service applications” which is under Application Management.

sharepoint 2016 development environment
SharePoint 2016 development environment

Then check for App Management Serice, if it has not been started click on Start to start this. It should look like below:

Configure On Premise environment for Apps in SharePoint 2016, SharePoint 2016 Apps
Configure On-Premise environment for Apps in SharePoint 2016, SharePoint 2016 Apps

The Subscription Settings Service can be configured from PowerShell commands only. So run the below command like below:

Add-PSSnapin Microsoft.SharePoint.PowerShell

$account = Get-SPManagedAccount “MYSP\Administrator”

$appPool = New-SPServiceApplicationPool -Name SubscriptionServiceAppPool -Account $account

$serviceApp = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPool -name “Subscription Settings Service” -DatabaseName “Subscription_Settings_DB”

$serviceAppProxy = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $serviceApp

how to configure sharepoint 2013 on-premises deployments for apps

how to configure SharePoint 2013 on-premises deployments for apps after running this command, if you will navigate to “Manage service applications” which is under Application Management, you can see the Subscription Settings Service should be activated like below:

setup sharepoint 2013 app development environment
setup SharePoint 2013 app development environment

Configure App URL:

In the next step, we need to configure App URLs. For this Open SharePoint 2016 central administration, click on Apps and then click on Configure App URLs which is under App Management like below:

how to configure sharepoint 2016 on-premises deployments for apps
how to configure SharePoint 2016 on-premises deployments for apps

Then give App domain which we have created and an App prefix as shown in the fig below:

setup sharepoint 2016 app development environment
setup SharePoint 2016 app development environment

Then go to SharePoint 2016 central administration, click on Application Management. Then click on “Manage web applications” which is under Web Applications. Then select the particular web application, from the ribbon click on Manage Features. And then activate “Apps that require accessible internet facing endpoints” as shown in the fig below:

enable apps sharepoint 2016
enable apps SharePoint 2016

After this, if you want to add an app from the SharePoint App Store, it should add successfully.


Hope this article will be helpful.

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →