Skip to content

SPOfficeOnlineServerBinding

dscbot edited this page Mar 17, 2023 · 19 revisions

SPOfficeOnlineServerBinding

Parameters

Parameter Attribute DataType Description Allowed Values
Zone Key String The zone for this binding Internal-HTTP, Internal-HTTPS, External-HTTP, External-HTTPS
DnsName Required String The DNS name of the server/s that are running Office Web Apps
Ensure Write String Present ensures the binding for this zone exists, absent ensures it doesn't Present, Absent

Description

Type: Distributed Requires CredSSP: No

This resource will create a binding to an Office Online Server (formerly known as Office Web Apps). The DnsName property can be a single server name, or a FQDN of a load balanced end point that will direct traffic to a farm.

NOTE: This resource is designed to be used where all WOPI bindings will be targeted to the same Office Online Server farm. If used on a clean environment, the new bindings will all point to the one DNS Name. If used on an existing configuration that does not follow this rule, it will match only

The default value for the Ensure parameter is Present. When not specifying this parameter, the zone is configured.

Examples

Example 1

This example shows how to create bindings to the internal-https zone for the local SharePoint farm.

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPOfficeOnlineServerBinding OosBinding
        {
            Zone                 = "internal-https"
            DnsName              = "webapps.contoso.com"
            PsDscRunAsCredential = $SetupAccount
        }
    }
}

Example 2

This example shows how to remove bindings from the internal-http zone for the local SharePoint farm.

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPOfficeOnlineServerBinding OosBinding
        {
            Zone                 = "Internal-HTTP"
            DnsName              = "webapps.contoso.com"
            Ensure               = "Absent"
            PsDscRunAsCredential = $SetupAccount
        }
    }
}
Clone this wiki locally