This article describes how to configure the on-premise environment to support Apps in SharePoint 2019. Follow the below steps to configure the environment:
- Configure the domain names in DNS
- Verify the newly created domain name
- Configure the Subscription Settings and App Management service applications
- Configure App URLs
Configure the domain names in DNS
In DNS Manager, right-click Forward Lookup Zones, and then click New Zone…
In the New Zone Wizard, click Next.
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.
In the Active Directory Zone Replication Scope page, select “To all DNS servers running on domain controllers in this domain”, and then click Next.
In the Zone Name page, in the Zone name box type the name for your new app domain, and then click Next.
On the Dynamic Update page, select “Allow only secure dynamic updates (recommended for Active Directory)”, and then click Next.
On the Completing the New Zone Wizard page, verify the settings and then click Finish.
Now, the new zone is available in the “Forward Lookup Zones” list. This is used as a domain name for your apps.
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)…
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,
Double click on the server name.
Double click on the Forward Lookup Zones.
Double click the domain that hosts the SharePoint sites.
Then, select the server that hosts the SharePoint sites. Then, click ok.
Then, click ok.
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 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.
- Click New, and then click App Management Service.
- 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.
- Add-PSSnapin Microsoft.SharePoint.PowerShell
- $account=Get-SPManagedAccount“SOFTREE\Administrator”
- $appPool =New-SPServiceApplicationPool -Name SubscriptionServiceAppPool -Account$account
- $serviceApp=New-SPSubscriptionSettingsServiceApplication -ApplicationPool$appPool -name “SubscriptionSettings Service” -DatabaseName “Subscription_Settings_DB”
- $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.
Then type App domain which we have created and an App prefix. Then, click Ok.
After all, you can add an app from app catalog to the SharePoint site, it is added successfully.