ChocolateyPackages | repo contains the source for various Chocolatey packages
kandi X-RAY | ChocolateyPackages Summary
kandi X-RAY | ChocolateyPackages Summary
ChocolateyPackages
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ChocolateyPackages
ChocolateyPackages Key Features
ChocolateyPackages Examples and Code Snippets
Community Discussions
Trending Discussions on ChocolateyPackages
QUESTION
For example, let's say I have a Script resource:
...ANSWER
Answered 2017-Apr-05 at 13:52The Script object won't allow any extra properties to be defined but I was able to define my properties at the Node level and access them inside my Script resource.
NOTE: These variables must be referenced with a using
keyword, e.g. $using:tools
Example:
QUESTION
I have a VM template that deploys a DSC extension. It's been working fine but my configuration is growing so I've refactored it to use a composite resource and republished it to blob storage with Publish-AzureRmVMDscConfiguration
.
I verified that the .ps1.zip file in blob storage contains my custom module and that the module is listed under dscmetadata.json. However, when I deploy, the DSC extension fails. The logs under C:\WindowsAzure\Logs\Plugins\Microsoft.Powershell.DSC\2.17.0.0
reveal the reason:
C:\Packages\Plugins\Microsoft.Powershell.DSC\2.17.0.0\bin..\DSCWork\AppServerDev.ps1.0\AppserverDev.ps1
PSDesiredStateConfiguration\node : The module 'xCustomResource' could not be loaded. For more information, run 'Import-Module xCustomResource'.
At C:\Packages\Plugins\Microsoft.Powershell.DSC\2.17.0.0\DSCWork\AppServerDev.ps1.0\AppserverDev.ps1:9 char:3
- node "localhost"
- ~~~~
- CategoryInfo : ObjectNotFound: (xCustomResource\xCustomResource:String) [PSDesiredStateConfiguration\node], ParentContainsErrorRecordException
- FullyQualifiedErrorId : CouldNotAutoLoadModule,PSDesiredStateConfiguration\node
Here are the relevant bits of my configuration file:
...ANSWER
Answered 2017-Feb-20 at 17:10I'm not sure but I think this is a rookie mistake on my part because I have no experience building powershell modules. I was using this page as well as this one to construct my module and I'd gotten a valid module file by using New-ModuleManifest
, I had the correct file structure mentioned in both of them e.g.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ChocolateyPackages
You can use ChocolateyPackages like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the ChocolateyPackages component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page