dsccommunity / WebAdministrationDsc

This module contains DSC resources for deploying and configuring web servers and related components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name will not take ".Net6 Core ", Net6 Core works but want the "."

bbaak opened this issue · comments

commented

Problem description

Migrating from an 2012 R2 server with all the pipelines already built, and want to use the same app pool names. We have a ".Net6 Core" app pool and XWebAppPool will not take the "." in the value.

Verbose logs

PowerShell DSC resource MSFT_xWebAppPool  failed to execute Set-TargetResource functionality with error message: The
running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop:
Invalid application pool name

    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost

DSC configuration

Configuration BuildConfigureIIS_DMZ {
    Import-DscResource –ModuleName 'PSDesiredStateConfiguration'
    Import-DscResource -ModuleName 'xWebAdministration'
    Import-DscResource -ModuleName 'XSmbShare'
    Import-DscResource -ModuleName 'xpsdesiredStateConfiguration'


node "localhost" 
    {

        xWebAppPool net6Core {
            Name = "Net6 Core"
            Ensure = "Present"
            State = "started"
            managedRuntimeVersion = ""
            enable32BitAppOnWin64 = $false
            managedPipelineMode = "Integrated"
        }

}

Suggested solution

I don't unfortunately.

Operating system the target node is running

OsName               : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell version and build the target node is running

Azure Automation DSC

Name                           Value
----                           -----
PSVersion                      5.1.17763.2931
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.2931
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

WebAdministrationDsc version

3.3.0

In Azure.

It says here it should work, but does not specify that it allow to start with a period.
https://docs.microsoft.com/en-us/IIS/wmi-provider/applicationpool-class

Guessing you have tried adding through GUI and it work?

Have you confirmed that it works using the command New-WebAppPool ?