Powershell DSC排除了漂移测试的财产
我正在使用Xwebadministration模块来创建IIS站点和应用程序池。创建站点时,需要指定物理路径。该路径的每次部署都会改变此路径,从而导致DSC报告漂移。是否有一种将某些属性排除在漂移测试之外的方法?
I'm using the xWebAdministration module to create IIS sites and application pools. When creating the site, a physical path needs to be specified. This path is changed with each deployment of the site resulting in DSC reporting drift. Is there a way of excluding certain properties from the drift test?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明, xwebsite资源是可选的,因此无需指定,未包含在漂移测试中。这意味着另一个脚本可以更新IIS中的网站路径,而DSC不会报告漂移,这就是我想要的。
It turns out PhysicalPath under the xWebSite resource is optional and doesn't need to be specified, therefore not included in the drift test. What this means is that another script can update the website path in IIS and DSC will not report drift, which is what I want.