-
Notifications
You must be signed in to change notification settings - Fork 107
SPOfficeOnlineServerBinding
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
|
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.
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
}
}
}
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
}
}
}
- 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