You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?The text was updated successfully, but these errors were encountered: