-
Notifications
You must be signed in to change notification settings - Fork 107
SPMachineTranslationServiceApp
Yorick Kuijs edited this page Feb 19, 2019
·
11 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | Specifies the name of the service application. | |
ProxyName | Write | string | The proxy name, if not specified will be /Name of service app/ Proxy | |
DatabaseName | Required | String | Specifies the name of the database for the service application. | |
DatabaseServer | Required | String | Specifies the name of the database server for the service application. | |
ApplicationPool | Required | String | Specifies the application pool to use with the service application. | |
Ensure | Write | String | Present ensures service app exists, absent ensures it is removed | Present, Absent |
InstallAccount | Write | PSCredential | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
Type: Distributed Requires CredSSP: No
This resource is used to provision and manage an instance of the Machine Translation Service Application. It will identify an instance of the MT app through the application display name. Currently the resource will provision the app if it does not yet exist, and will change the service account associated to the app if it does not match the configuration.
The default value for the Ensure parameter is Present. When not specifying this parameter, the service application is provisioned.
This example shows how to deploy the SP Machine Translation Service App to the local SharePoint farm.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPMachineTranslationServiceApp MachineTranslationServiceApp
{
Name = "Translation Service Application"
ApplicationPool = "SharePoint Service Applications"
DatabaseServer = "SQL.contoso.local"
DatabaseName = "Translation"
Ensure = "Present"
PsDscRunAsCredential = $SetupAccount
}
}
}
This example shows how to remove the SP Machine Translation Service App to the local SharePoint farm.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPMachineTranslationServiceApp MachineTranslationServiceApp
{
Name = "Translation Service Application"
ApplicationPool = "SharePoint Service Applications"
DatabaseServer = "SQL.contoso.local"
DatabaseName = "Translation"
Ensure = "Absent"
PsDscRunAsCredential = $SetupAccount
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations