Comments (4)
I have tested the build on a newly created Windows Server 2019 machine in Azure and all worked fine.
After the successful build, for example the AuditPolicies
DSC Configuration existed:
$dscResources = Get-DscResource -Module CommonTasks
$dscResources.Name -contains 'AuditPolicies' #returned true
The integration tests for this particular resource looked fine and I do have a file names localhost_AuditPolicies.mof
in the output folder:
Describing 'AuditPolicies' DSC Resource compiles
[+] 'AuditPolicies' compiles 19.09s
[+] 'AuditPolicies' should have created a mof file 3ms
Do you have the DSC Resource module AuditPolicyDsc
somewhere in the PSModulePath
additionally to output\RequiredModules
?
from commontasks.
One way to troubleshoot this is to create a short Config script that uses the missing resource and let it throw all its errors.
As Raimund pointed out, this issue is usually an issue with some PSModulePath.
Probably worth checking the version of Sampler in use, as if an old version is already loaded/available, it may not bootstrap to a version "new enough".
from commontasks.
I have checked my PSModulePath and in my private module path I found installed versions of AuditPolicyDsc and SecurityPolicyDsc. But here are the same versions installed as downloaded by PSDepend from the CommonTasks build.
The reason of the problem are different versions of nuget.exe. The existing versions of AuditPolicyDsc and SecurityPolicyDsc in my private module path were downloaded with NuGet 5.7.0 in February 2021. Now PSDepend downloads a new NuGet 6.0.0. The generated PSGetModuleInfo.xml for each module has a different structure and this is the cause of the error.
from commontasks.
Thanks @stehlih, as expected. Maybe when compiling the MOFs we can save, change for the compile time and restore the PSModulePath to prevent these conflicts in the future.
from commontasks.
Related Issues (20)
- [Cluster] QuorumResource is not used
- ADDSServicePrincipals: New resource proposal HOT 1
- VirtualMemoryFiles: New resource proposal HOT 3
- Only a few resources are exported. HOT 3
- Error in publish_module_to_gallery task with Get-ChangeLogData
- WebSites: Binding infos not supported HOT 2
- Composite best practices: InstanceName HOT 3
- MmaAgent question HOT 1
- DSCR_FileContent: New resource proposal HOT 3
- RegistryPolicies: Error when `Key` or `ValueName` parameters contain bracket "()"
- RequiredModulesDirectory Override Parameter in build.ps1 not working HOT 3
- The required module 'cScom' has additional dependencies to module 'AutomatedLab.Common' which is not part of the required module list.
- WindowsFeatures: Include additional parameters like Source
- Missing attribute description for some resources in the YAML documentation
- Maintenance Windows should support day in month
- All composite resources should be sorted in namespaces
- .\Build.ps1 -ResolveDependency, integration tests fail
- .\Build.ps1 -ResolveDependency, integration tests fail HOT 1
- Project License is not specified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commontasks.