-
Notifications
You must be signed in to change notification settings - Fork 134
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
xDscWebService: Redeploy DSC Pull Server fails with error #460
Comments
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
This issue has been automatically closed because it is has not had activity from the community in the last 40 days. |
Reopening issue and making it not stale. |
Tagging as bug so that stalebot doesn't auto close. |
MSFT_xDSCWebService.psm1: Applied fix for issue #460
Details of the scenario you tried and the problem that is occurring
After a successfully configuration (deployment) of a DSC Pull Server via the
xDscWebService
resource, a redepolyment after the deletion of the IIS Webapplication failes with an error.Verbose logs showing the problem
Suggested solution to the issue
By looking at the implementation (https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/01383b317abae8de69a1c093ddb51b2a064f8296/DSCResources/MSFT_xDSCWebService/MSFT_xDSCWebService.psm1#L451) there should be a test if the module is already added to the globalModules section of the IIS instance and if so omit the installation. The easiest way to do is querying the the globalModules section and locate the module via a regex match:
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
The text was updated successfully, but these errors were encountered: