Hi I don't know why but when I used the example included in the xWebAdministration module, there seems to be an error. The goal is to setup a website in IIS and install certification. Here's the configuration script:
# Name of the website to create
# Source Path for Website content
# Destination path for Website content
# Import the module that defines custom resources
# Install the ASP .NET 4.5 role
# Stop the default website
# Copy the website content
# Create the new Website
#Create certification. To be tested later on.
Start-DscConfiguration -Force -Wait -Verbose -Path .\Website_Setup
When I run the script above, here's what I input:
And it will encounter an error like this:
PowerShell DSC resource MSFT_xWebsite failed to execute Set-TargetResource functionality with error message:
The SendConfigurationApply function did not succeed.
Couple of assumptions:
– I'm assuming you installed WMF 5.0 RTM at least on the server you want this applied on.
– I'm assuming you are running the ISE shell with administrative permissions
Things to check:
– Remove the #Create Certification... commen from within the xWebSite
– Try removing the HostName or leaving it blank in the HTTP binding
Hi Arie, Thanks for your prompt reply. Where should I place the certification script? Is the certification script right (the goal is installing a certification)?
Suggest reading Justins' blog about certificates and how to use them with DSC.
Theres also a xCertificate DSC resource you could use, but I haven't had previous experience with it, so cant comment.
You must be logged in to reply to this topic.