Wednesday, August 7, 2013

Create Subscription Settings Service Application, App Management Service Application using powershell scripting

http://msdn.microsoft.com/en-us/library/office/apps/fp179923%28v=office.15%29
-->Open PowerShell Command Prompt as administrator.
net start spadminv4
net start sptimerv4

//my domain name is "TestDomain"
Set-SPAppDomain  "TestDomainapps.net" [domain name + apps + .com/.net]
Set-SPAppSiteSubscriptionName -Name "app" -Confirm:$false

Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance

Create Managed Account:-
$account= New-SPManagedAccount [this step is optional if already managed a/c have.]

Get Managed Account:-
$account = Get-SPManagedAccount "TestDomain\username" (domain\username)

Create Subscription Settings Service Application:-
$appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
$appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SubscriptionSettingsServiceApplication –DatabaseName SubscriptionSettingsServiceApplicationDB
$proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc

Create App Management Service Application :-
$appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
$appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppManagementServiceApplication -DatabaseName AppManagementServiceApplicationDB
$proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc
----------------------------------------------------------------------------------------------------------

No comments:

Post a Comment

Featured Post

Protect an API by using OAuth 2.0 with Azure Active Directory and API Management

Protect an API by using OAuth 2.0 with Azure Active Directory and API Management https://docs.microsoft.com/en-us/azure/api-management/api-...

Popular posts