Friday, September 19, 2014

Configure environment for SharePoint 2013 apps


1. Can not do Configure App URLs if not yet configured Subscription Settings services and correspnding application and proxy.png

2. Search with "app domain sharepoint 2013" to get one of the best artical


3. One of the best technical article from Microsoft is "Configure an environment for apps for SharePoint (SharePoint 2013)" http://technet.microsoft.com/en-us/library/fp161236(v=office.15).aspx

4. We will do three main configurations
. Configure the domain names in DNS
. Configure the Subscription Settings and App Management service applications
. Configure the app URLs to use

A.  Configure the domain names in DNS

5. Create a forward lookup zone for the app domain name
5.1. In DNS Manager, right-click Forward Lookup Zones, and then click New Zone….



5.2.  Click [Next] from New Zone Wizard

5.3. In the Zone Type page, accept the default of Primary zone, and then click Next

5.4. In the Active Directory Zone Replication Scope page, select the appropriate replication method for your environment (the default is To all DNS servers in this domain), and then click Next.


5.5. In the Zone Name page, in the Zone name box type the name for your new app domain name (for example, SP2013Apps.com), and then click Next.

5.6. On the Dynamic Update page, select the appropriate type of dynamic updates for your environmen and then click Next.

5.7. On the Completing the New Zone Wizard page, review the settings, and then click Finish.

5.8.  The SP2013Apps.com zone is ready on list of Forward Lookup Zones

6. Create a wildcard Alias (CNAME) record for the new domain name (SP2013Apps.com)
6.1. In DNS Manager, under Forward Lookup Zones, right-click the new app domain name, and then click New Alias (CNAME).

6.2. In the New Resource Record dialog box, in the Alias name (uses parent domain if left blank) box, type *
and Next to the Fully qualified domain name (FQDN) for target host box, type the FQDN of the server that hosts the SharePoint sites
(Type star at Alias Name and Holly.GodAX.com as a full name of server that host SharePoint)

6.3. Click on OK after choose Alias Name and select correctly fully name of SharePoint Server

6.4. Verify the new domain name:
  1. Click Start, and then click Command Prompt.
  2. At the command prompt, type ping followed by a subdomain of the domain that you created, and then press ENTER.
    For example, ping Apps-12345678ABCDEF.contosoapps.com
    If the ping command returns the correct IP address, then your wildcard for the domain name was configured successfully.

B. Configure the Subscription Settings and App Management service applications

7. Start the Subscription Settings and App Management services in Central Administration
7.1. In SharePoint 2013 Central Administration, click System Settings

7.2. On the System Settings page, under Servers, click Manage services on server

7.3. On the Services on Server page, next to App Management Service, click Start

7.4. On the Services on Server page, next to Microsoft SharePoint Foundation Subscription Settings Service, click Start.

7.5. Verify that the App Management and Microsoft SharePoint Foundation Subscription Settings services are running. The following illustration shows the Services on Server page where you can verify that the App Management and Subscription Settings services are running.
Services on Server showing the App Management and Subscription Settings services running.

8. Configure the Subscription Settings service application by using Windows PowerShell
8.1. Click on SharePoint 2013 Management Shell from list Apps (on Windows Server 2012) or with Windows Server 2008 R2
  1. On the Start menu, click All Programs.
  2. Click Microsoft SharePoint 2013 Products.
  3. Click SharePoint 2013 Management Shell.

8.2. Gets the name of the managed account and sets it to the variable $account for later use

$account = Get-SPManagedAccount "administrator" 
# Gets the name of the managed account and sets it to the variable $account for later use
then run commend
$appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
# Creates an application pool for the Subscription Settings service application.
# Uses a managed account as the security account for the application pool.
# Stores the application pool as a variable for later use

are well

$appSubSvc = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPoolSubSvc -Name SettingsServiceApp -DatabaseName SubscriptionSettingsServiceDB
# Creates the Subscription Settings service application, using the variable to associate it with the application pool that was created earlier.
# Stores the new service application as a variable for later use.
is also well

And then run commend
$proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $appSubSvc
# Creates a proxy for the Subscription Settings service application.


8.3. Database list after and before configure Subscription Settings Service
Database list that has Subscription SettingsServiceDB after configure SubscriptionSettingsService

Database list before configure Subscription Settings Service

9.  Create the App Management service application in Central Administration
9.1. In SharePoint 2013 Central Administration, on the Application Management page, click Manage service applications.

9.2. On the ribbon, click New, and then click App Management Service.

9.3. In the New App Management Service Application page, in the Service Application Name box, type the name for the service application.
In the Database section, in the Database Server box, type the instance of SQL Server where you want to store the database, or use the default server.
In the Database Name box, type a database name, or use the default name

9.4. Manage Service Applications page showing the App Management service application and proxy.

C. Configure the app URLs to use

10. To configure app URLs
10.1. In Central Administration, click Apps.

10.2. On the Apps page, click Configure App URLs

10.3. In the App domain box, type the isolated domain that you created for hosting apps. Here we use SP2013Apps.com
In the App prefix box, type a name to use for the URL prefix for apps.
For example, you could use “apps” as the prefix so that you would see a URL for each app such as “apps-12345678ABCDEF.SP2013Apps.com”. The following illustration shows the Configure App URLs page after you have filled in the App domain and prefix.

The Configure App URLs page in Central Administration shows the App domain and App prefix.

10.4. If you will install apps and you have changed the App prefix (also known as the site subscription name), you must perform additional steps that involve restarting the World Wide Web Publishing Service (WWW Service) that hosts the apps.
ImportantImportant:
Restarting the WWW Service will also restart the IIS Admin Service and the Windows Process Activation Service. This will also shut down all Web sites and applications that depend on these services and they may lose existing state and will be unavailable until the services successfully restart. You should plan to perform these steps during a planned maintenance time.
To complete the App prefix rename tasks, perform these steps:
  1. Stop the SharePoint Timer service.
  2. Restart the World Wide Web Publishing Service that hosts the apps.
  3. Start the SharePoint Timer service.
 Restart World Wide Web Publishing Service

God bless us!




No comments:

Post a Comment