Monday, March 24, 2014

Configure SharePoint 2013 apps on Server

Hi All,
        Below are the steps to configure the apps in SharePoint 2013 Server
configure dns
1. Create a Forward Lookup Zone in DNS
System account cannot deploy apps so we need to create another account
2. Create user with appropriate rights (equivalent to the administrator
   member of
       1. Administrators
 2. Domain Admins
 3. Domain Users
 4. Enterprise Admins
 5. Group Policy Creator owner
 6. IIS_USRS
 7. Performance Log Users
 8.  Performance monitor users
 9. Schema Admins
 10. SQLServerMSAUser$MSSQLSERVER
 11. WSS_ADMIN_WPG
 12. WSS_RESTRICTED_WPG_V4
 13. WSS_WPG
3. Central Administration
   security
     Configure Managed Accounts 
     Register Managed Accounts
  (Register the newly created account - eg. spsappadmin)
   
     Configure Service Account
         set the newly created account as the farm account -
   (this will add the user to the sp_config database)
         reset the farm account back to the original administrator.
   (The previous step only ensures the new account has the appropriates rights on the DB
      System account cannot deploy apps)
4. Start the services
      App Management Service
      Microsoft Subscription Setting Service
5. Change service account application pool account
       Application Management Service - set it to the new account
6. Load SharePoint Management Shell (Power shell)
 $account = Get-SPManagedAccount "domain\user"
 Configure a new
 App Management Service Application
      a) App pool         
     $appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
             b) Application     
     $appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB
      c) Proxy
     $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc
  Microsoft SharePoint Foundation Subscription Settings Service
      a) App pool     
  $appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
             b) Application
  $appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB
             c) Proxy
  $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc

7. Configure app url
 Set-SPAppDomain <appDomain>
 Set-SPAppSiteSubscriptionName -Name "app" -Confirm:$false
8. Add the user to the site