dsccommunity / OfficeOnlineServerDsc

This module contains DSC resources for deployment and configuration of Office Online Server.
MIT License
15 stars 16 forks source link

Undefined DSC resource 'OfficeOnlineServerWebAppsFarm' #14

Closed shurick81 closed 6 years ago

shurick81 commented 6 years ago

Details of the scenario you try and problem that is occurring: Trying to build a farm. I get this error:

At C:\Projects\Unionen_Intranet_SharePoint2016Upgrade\SPUpgrade\DSC\OOSFarm.ps1:10 char:5
+     OfficeOnlineServerWebAppsFarm Farm
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Undefined DSC resource 'OfficeOnlineServerWebAppsFarm'. Use Import-DSCResource to import the resource.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ResourceNotDefined

The DSC configuration that is using the resource:

Configuration OOSFarm 
{
    param(
        $mainParameters
    )

    Import-DscResource -ModuleName PSDesiredStateConfiguration
    Import-DscResource -ModuleName OfficeOnlineServerDsc -ModuleVersion 1.0.0.0

    OfficeOnlineServerWebAppsFarm Farm
    {
        InternalURL    = "https://$($mainParameters.OOSHostName)"
        EditingEnabled = $true
    }

}

Version of the Operating System and PowerShell the DSC Target Node is running: Windows 2016 PSVersion 5.1.14393.1770

Version of the DSC module you're using: 1.0.0.0

andikrueger commented 6 years ago

With version 1.0.0.0 there are several naming changes. Have a look into the changelog.

OfficeOnlineServerWebAppsFarm becomes OfficeOnlineServerFarm OfficeOnlineServerWebAppsMachine becomes: OfficeOnlineServerMachine

NikCharlebois commented 6 years ago

As @andikrueger points out, you will need to modify your script as follow: [...] OfficeOnlineServerFarm Farm { InternalURL = "https://$($mainParameters.OOSHostName)" EditingEnabled = $true } [...]