Add support for SecretManagement and SecretStore providers, enhance configuration data handling, and introduce new utility functions
This commit is contained in:
@@ -9,12 +9,24 @@ function Resolve-DSCConfigurationData {
|
||||
[hashtable]
|
||||
$ProviderSettings = @{},
|
||||
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]
|
||||
$ProviderSettingsPath,
|
||||
|
||||
[Parameter(Mandatory=$false)]
|
||||
[switch]
|
||||
$SkipSecrets
|
||||
)
|
||||
|
||||
process {
|
||||
if(-not [string]::IsNullOrWhiteSpace($ProviderSettingsPath)){
|
||||
if(-not (Test-Path -Path $ProviderSettingsPath -PathType Leaf)){
|
||||
throw "Provider settings file [$ProviderSettingsPath] was not found."
|
||||
}
|
||||
|
||||
$ProviderSettings = Import-PowerShellDataFile -Path $ProviderSettingsPath
|
||||
}
|
||||
|
||||
if(-not $SkipSecrets){
|
||||
$ConfigurationData = Resolve-ConfigurationDataParameterSecrets -ConfigurationData $ConfigurationData -ProviderSettings $ProviderSettings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user