简体   繁体   English

使用Powershell DSC拉取服务器部署资源

[英]Deploy resources using Powershell DSC pull server

I am trying to deploy Powershell modules from my https pull server but couldn't. 我试图从我的https pull服务器部署Powershell模块,但是不能。 I don't know what I'm missing here. 我不知道我在这里想念什么。 These are things which I already did or tried: 这些是我已经做过或尝试过的事情:

  1. Setup a https based pull server using instructions outlined at https://msdn.microsoft.com/en-us/powershell/dsc/pullserver 使用https://msdn.microsoft.com/zh-cn/powershell/dsc/pullserver中概述的说明设置基于https的提取服务器
  2. Register a pull client using instructions mentioned here https://msdn.microsoft.com/en-us/powershell/dsc/pullclientconfignames 使用此处提到的说明注册请求客户端https://msdn.microsoft.com/zh-cn/powershell/dsc/pullclientconfignames
  3. On my pull server I've placed modules under C:\\Program Files\\WindowsPowerShell\\DscService\\Modules as xWebAdministration_1.12.0.0.zip and xWebAdministration_1.12.0.0.zip.checksum 在我的拉取服务器上,我将模块分别放置在C:\\ Program Files \\ WindowsPowerShell \\ DscService \\ Modules下,分别为xWebAdministration_1.12.0.0.zip和xWebAdministration_1.12.0.0.zip.checksum

If I double click xWebAdministration_1.12.0.0.zip file it contains: DSCResources, Examples, Tests, HighQualityResourceKitPlan.md, README.md and xWebAdministration.psd1 at root level, Under DSCResources I have all MSFT_* folders and other stuff 如果我双击xWebAdministration_1.12.0.0.zip文件,它包含:根级别的DSCResources,示例,测试,HighQualityResourceKitPlan.md,README.md和xWebAdministration.psd1,在DSCResources下,我拥有所有MSFT_ *文件夹和其他内容

  1. When I run a custom configuration on my client node which requires xWebAdministration module, I get module not found exception. 当我在需要xWebAdministration模块的客户端节点上运行自定义配置时,出现模块未找到异常。

I looked at client's event viewer for errors but don't see anything related. 我在客户端的事件查看器中查看了错误,但未发现任何相关信息。

Any help is appreciated. 任何帮助表示赞赏。 Thanks! 谢谢!

Have you tried Publish-DSCModuleAndMof from xPSDesiredStateConfiguration? 您是否尝试过从xPSDesiredStateConfiguration发布Publish-DSCModuleAndMof?

You have to run Install-Module xPSDesiredStateConfiguration first. 您必须首先运行Install-Module xPSDesiredStateConfiguration

You can find an example of using this here . 您可以在此处找到使用此示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM