Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to configure IIS using PowerShell DSC Resource xWebAdministration v3.20 #596

Open
ghost opened this issue May 20, 2021 · 3 comments
Labels
needs more information The issue needs more information from the author or the community.

Comments

@ghost
Copy link

ghost commented May 20, 2021

ISSUE TITLE:
'xWebAdministration: Unable to configure IIS using PowerShell DSC'

ISSUE DESCRIPTION (this template):
Using Import-DscResource -ModuleName 'PSDesiredStateCOnfiguration' we are able to install IIS and all its sub-features on a
Windows Server 2019 VM perfectly.

But, when we try to configure IIS using Import-DscResource -ModuleName 'xWebAdministration', we are unable to create a 
website along with a separate application pool.

Please assist. Thank you. Anand.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here
Configuration IISConfig {

Import-DscResource -ModuleName 'xWebAdministration'
       
 Node ("web-svr-01","web-svr-02") {
      
    
# Configure xWebsite
         
xWebsite "Default Web Site" {

               Ensure = "Present"
               Name = "Default Web Site"
               State = "Started"
               ApplicationPool = "DefaultAppPool"
               PhysicalPath = "C:\Program Files\ProPhoenix"
               BindingInfo = MSFT_xWebBindingInformation
                        {
                            Protocol = "HTTP"
                            Port = 80
                            HostName = "*"
                        }
        
        }
    }
}
IISConfig

Configuration IISConfig1 {

Import-DscResource -ModuleName 'xWebAdministration'
       
 Node ("web-svr-01","web-svr-02") {
      
    
# Configure xWebsite
         
xWebsite "Law RMS" {

               Ensure = "Present"
               Name = "Law RMS"
               State = "Started"
               ApplicationPool = "Law RMS"
               PhysicalPath = "C:\Program Files\ProPhoenix"
               BindingInfo = MSFT_xWebBindingInformation
                        {
                            Protocol = "HTTPS"
                            Port = 443
                            HostName = "*"
                        }
                                
        }
    }
}
IISConfig1
#### The operating system the target node is running
<!--
    Please provide as much as possible about the target node, for example
    edition, version, build and language.
    On OS with WMF 5.1 the following command can help get this information.

    Get-ComputerInfo -Property @(
        'OsName',
        'OsOperatingSystemSKU',
        'OSArchitecture',
        'WindowsVersion',
        'WindowsBuildLabEx',
        'OsLanguage',
        'OsMuiLanguages')
-->
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}

#### Version and build of PowerShell the target node is running
<!--
    To help with this information, please run this command:
    $PSVersionTable
-->

#### Version of the DSC module that was used

Name                           Value
----                           -----
PSVersion                      5.1.17763.1852
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1852
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@johlju
Copy link
Member

johlju commented May 20, 2021

Can you please provide what error message you are seeing, also please provide the verbose message output from the node that is failing.

@johlju johlju added the needs more information The issue needs more information from the author or the community. label May 20, 2021
@ghost
Copy link
Author

ghost commented May 21, 2021 via email

@ghost
Copy link
Author

ghost commented May 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information The issue needs more information from the author or the community.
Projects
None yet
Development

No branches or pull requests

1 participant