DscResource.Common

0.10.0

Common functions used in DSC Resources

Minimum PowerShell version

4.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name DscResource.Common

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

DSC Community

Copyright

Copyright the DSC Community contributors. All rights reserved.

Owners

Tags

DSC Localization

Functions

Assert-BoundParameter Assert-IPAddress Assert-Module Compare-DscParameterState Compare-ResourcePropertyState ConvertTo-CimInstance ConvertTo-HashTable Get-LocalizedData Get-TemporaryFolder New-InvalidArgumentException New-InvalidDataException New-InvalidOperationException New-InvalidResultException New-NotImplementedException New-ObjectNotFoundException Remove-CommonParameter Set-DscMachineRebootRequired Set-PSModulePath Test-DscParameterState Test-IsNanoServer

Dependencies

This module has no dependencies.

Release Notes

## [0.10.0] - 2020-11-18

### Added

- Added cmdlet `Compare-DscParameterState` - Could be used in
 Get-TargetResource function or Get() method in Class based Resources.
 It is based on the code of Test-DscParameterState function to get compliance
 between current and desired state of resources.
 The OutPut of Compare-DscParameterState is a collection psobject.
 The properties of psobject are Property,InDesiredState,ExpectedType,ActualType,
 ExpectedValue and ActualValue. The IncludeInDesiredState parameter must be use to
 add ExeptedValue and ActualValue.
- Added pester test to test the pscredential object with `Compare-DscParameterState`.

### Changed

- Cmdlet Test-DscResourceState is now calling Compare-DscParameterState. Possible breaking change.
- IncludeInDesiredState and IncludeValue parameters of Compare-DscParameterState
 are removed in splatting when Test-DscCompareState is called.

### Fix

- Fix git diff command in QA tests on Linux and MacOS.

Version History

Version Downloads Last updated
0.10.0 (current version) 71 11/18/2020
0.10.0-previ... 4 11/16/2020
0.10.0-previ... 2 11/13/2020
0.9.3 546 7/25/2020
0.9.3-previe... 3 7/25/2020
0.9.2 55 7/22/2020
0.9.2-previe... 3 7/22/2020
0.9.2-previe... 3 7/22/2020
0.9.2-previe... 3 7/18/2020
0.9.1 139 7/8/2020
0.9.1-previe... 3 7/8/2020
0.9.0 991 5/18/2020
0.9.0-previe... 3 5/18/2020
0.8.0 192 5/11/2020
0.8.0-previe... 3 5/10/2020
0.7.1 349 5/2/2020
0.7.1-previe... 3 5/2/2020
0.7.0 4 5/2/2020
0.7.0-previe... 3 5/2/2020
0.7.0-previe... 6 5/1/2020
0.6.0 143 4/23/2020
0.6.0-previe... 9 4/23/2020
0.5.0 183 4/18/2020
0.5.0-previe... 9 4/18/2020
0.4.1-previe... 9 4/18/2020
0.4.0 257 3/9/2020
0.4.0-previe... 5 3/9/2020
0.3.0 89 2/15/2020
0.3.0-previe... 5 2/15/2020
0.3.0-previe... 6 2/14/2020
0.3.0-previe... 5 1/19/2020
0.2.0 485 1/9/2020
0.2.0-previe... 5 1/9/2020
0.1.1 96 11/27/2019
0.1.1-previe... 5 11/27/2019