WebAdministrationDsc icon indicating copy to clipboard operation
WebAdministrationDsc copied to clipboard

[Bug] DSC_WebSite: CertificateStoreName value is not mathing defined value in the schema

Open webalexeu opened this issue 1 year ago • 0 comments

Problem description

The value returned is not matching the schema (This is problematic in the puppet module integration as puppet is enforcing the value returned by DSC)

Verbose logs

(invoke-DscResource @InvokeParams).BindingInfo

BindingInformation    : *:8531:*
CertificateStoreName  : MY
CertificateSubject    :
CertificateThumbprint : 71AD93562316F21F74606F1096B85D66289ED60F
HostName              : *
IPAddress             : *
Port                  : 8443
Protocol              : https
SslFlags              : 0
PSComputerName        : localhost

DSC configuration

# Create the new Website with HTTPS
        WebSite NewWebsite
        {
            Ensure          = 'Present'
            Name            = $WebSiteName
            State           = 'Started'
            PhysicalPath    = $DestinationPath
            BindingInfo     = @(
                DSC_WebBindingInformation
                {
                    Protocol              = 'HTTPS'
                    Port                  = 8443
                    CertificateThumbprint = '71AD93562316F21F74606F1096B85D66289ED60F'
                    CertificateStoreName  = 'MY'
                }
            )
        }

Suggested solution

Pull Request proposed https://github.com/dsccommunity/WebAdministrationDsc/pull/641

Operating system the target node is running

OsName               : Microsoft Windows Server 2022 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 20348.859.amd64fre.fe_release_svc_prod2.220707-1832
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell version and build the target node is running

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

WebAdministrationDsc version

Name                 Version Path
----                 ------- ----
WebAdministrationDsc 4.2.0   C:\ProgramData\PuppetLabs\puppet\cache\lib\puppet_x\webadministrationdsc\dsc_resources\WebAdministrationDsc\WebAdministrationDsc.psd1

webalexeu avatar Oct 17 '24 17:10 webalexeu