DennisL68
DennisL68
When using a job in PowerShell Windows 5,1 for running the Exporter, the job will fail with ~~~ Exception setting "TreatControlCAsInput": "The handle is invalid. " At C:\Program Files\WindowsPowerShell\Modules\PromethuesExporter\0.1.0\PrometheusExporter.psm1:117 char:9...
https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/rules/avoidusingwritehost?view=ps-modules
Consider implementing MS Best practice of not using the Write-Host cmdlet [MS Learn - Avoid Using Write-Host](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/rules/avoidusingwritehost?view=ps-modules)
When trouble shooting the collector I can't display the `Labels` for the Metrics definition and the `Labels` property for the actual metric object at the same time. When trying to...
### Problem description When trying to build a module stored on a share using a pure UNC-path (i.e. \\server\share\mymodule not mapped to a drive letter), the build fails with the...
# Pull Request ## Pull Request (PR) description The README.md was getting pretty big so I'd like to move a large part of it to the Wiki instead ### Added...
Where do I place additional static data files so that they will be part of the module such as .json, .xml, .png etc.? I.e. files that I would normally specify...
Pester Tests keeps asking for the module when running one of the sample unit tests using VS Code... > An error occured running Pester: The specified module 'XXXX' was not...
In the default `module.tests.ps1`, the ScriptAnalyzer rules are fetched using `$scriptAnalyzerRules = Get-ScriptAnalyzerRule`. But where should I store the `PSScriptAnalyzerSettings.psd1` file, if I'd like to use different settings for different...
Examples are good but this is a complex subject and some tutorials would be good. I've found some tutorials on YouTube * [Modern PowerShell module Development - Gael Colas -...