Skip to content

SPMachineTranslationServiceApp

dscbot edited this page Mar 17, 2023 · 11 revisions

SPMachineTranslationServiceApp

Parameters

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
UseSQLAuthentication Write Boolean Should SQL Server authentication be used to connect to the database?
DatabaseCredentials Write PSCredential If using SQL authentication, the SQL credentials to use to connect to the instance

Description

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.

Examples

Example 1

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
        }
    }
}

Example 2

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

        }
    }
}
Clone this wiki locally