Powershell DSC排除了漂移测试的财产

发布于 2025-01-31 13:36:44 字数 113 浏览 6 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是伱的 2025-02-07 13:36:44

事实证明, 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文