Open nicwillemse opened 1 year ago
Just did this manually yesterday. Here´s a powershell snippet. It leaves [resourceGroup(..)] references alone.
$fileName = "path to the ARM template json file"
$regexPatternForRemoval = '"defaultValue": "(?![\[]).*"|"defaultValue": ([0-9]+)'
(Get-Content $fileName) -replace $regexPatternForRemoval, '"defaultValue": ""' | Set-Content $fileName
I cannot find a way to extract a template without the
defaultValue
for connections, is there a way to do this?