diff --git a/src/ALZ/Private/Config-Helpers/Write-TfvarsJsonFile.ps1 b/src/ALZ/Private/Config-Helpers/Write-TfvarsJsonFile.ps1 index 5037bd3..8596862 100644 --- a/src/ALZ/Private/Config-Helpers/Write-TfvarsJsonFile.ps1 +++ b/src/ALZ/Private/Config-Helpers/Write-TfvarsJsonFile.ps1 @@ -19,7 +19,8 @@ function Write-TfvarsJsonFile { foreach($configurationProperty in $configuration.PSObject.Properties | Sort-Object Name) { $configurationValue = $configurationProperty.Value.Value - if($configurationValue.ToString() -eq "sourced-from-env") { + if($null -ne $configurationValue -and $configurationValue.ToString() -eq "sourced-from-env") { + Write-Verbose "Sourced from env var: $($configurationProperty.Name)" continue }