Configure SharePoint On-Premises Deployments For Apps In SharePoint 2019

This article describes how to configure the on-premise environment to support Apps in SharePoint 2019.

This article describes how to configure the on-premise environment to support Apps in SharePoint 2019. Follow the below steps to configure the environment:

  1. Configure the domain names in DNS
  2. Verify the newly created domain name
  3. Configure the Subscription Settings and App Management service applications
  4. Configure App URLs
Configure the domain names in DNS
 
In DNS Manager, right-click Forward Lookup Zones, and then click New Zone…
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
In the New Zone Wizard, click Next.
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
In the Zone Type page, choose a Primary zone, select the checkbox “Store the zone in Active Directory (available only if DNS server is a writable domain controller)” and then click Next.
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
In the Active Directory Zone Replication Scope page, select “To all DNS servers running on domain controllers in this domain”, and then click Next.
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint 
 
In the Zone Name page, in the Zone name box type the name for your new app domain, and then click Next.
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint

On the Dynamic Update page, select “Allow only secure dynamic updates (recommended for Active Directory)”, and then click Next.

Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
On the Completing the New Zone Wizard page, verify the settings and then click Finish. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Now, the new zone is available in the “Forward Lookup Zones” list. This is used as a domain name for your apps. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Create a CNAME Alias record for the new domain name
 
In DNS Manager, under forwarding Lookup Zones, right-click the new app domain name, and then click New Alias (CNAME)…
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint 
 
In the New Resource Record dialog box, in the Alias name (uses parent domain if left blank) box, type *.
 
Then the Fully qualified domain name (FQDN) box automatically displays *. followed by the domain name that you created previously for apps. Then the Fully qualified domain name (FQDN) for target host box, click on browse,
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Double click on the server name. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Double click on the Forward Lookup Zones. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Double click the domain that hosts the SharePoint sites. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Then, select the server that hosts the SharePoint sites. Then, click ok. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Then, click ok. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
 
Verify the newly created domain name
 
To verify the newly created domain name, open command prompt, type ping like the below example. If ping returns the correct IP address then your domain name was configured successfully.
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint 
 
Configure the Subscription Settings and App Management service applications
 
To create an App Management service application,
  • In Central Administration, under Application Management, click Manage service applications.

    Configure SharePoint On-Premises Deployments for Apps in SharePoint

  • Click New, and then click App Management Service.

    Configure SharePoint On-Premises Deployments for Apps in SharePoint

  • Type a name for the service application in the Service Application Name box. Under Application Pool, select Create new application pool, type application pool name.

    Then, click Ok.
To create a SharePoint Foundation Subscription Settings Service
 
To create Subscription settings Service Application, run following PowerShell command.
  1. Add-PSSnapin Microsoft.SharePoint.PowerShell  
  2. $account=Get-SPManagedAccount“SOFTREE\Administrator”  
  3. $appPool =New-SPServiceApplicationPool -Name SubscriptionServiceAppPool -Account$account  
  4. $serviceApp=New-SPSubscriptionSettingsServiceApplication -ApplicationPool$appPool -name “SubscriptionSettings Service” -DatabaseName “Subscription_Settings_DB”  
  5. $serviceAppProxy=New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication$serviceApp  
Configure App URLs
 
To configure App URLs, Open SharePoint 2019 central administration, click on Apps and then click on Configure App URLs.
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint
Then type App domain which we have created and an App prefix. Then, click Ok. 
 
Configure SharePoint On-Premises Deployments for Apps in SharePoint

After all, you can add an app from app catalog to the SharePoint site, it is added successfully.