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
Describe the bug
Replace \r\n does not work on linux agent.
Content injections works fine but I still have the new lines therefore the ARM template is invalid
Describe the bug
Replace \r\n does not work on linux agent.
Content injections works fine but I still have the new lines therefore the ARM template is invalid
To Reproduce
Run this one on a linux agent
inputs:
targetType: 'inline'
script: 'Inject-ArmContent -Path "$(System.ArtifactsDirectory)/dashboards"'
displayName: Inject KQL queries
Expected behavior
A valid ARM template
Additional context
Replace this line
arcus.scripting/src/Arcus.Scripting.ARM/Scripts/Inject-ArmContent.ps1
Line 64 in 6bc6e1e
with the following code
$newString = $newString -replace "
r", "" if ( [environment]::OSVersion.VersionString -like "*Windows*") { $newString = $newString -replace "
n", "\r\n"} else {
$newString = $newString -replace "`n", "\n"
}
The text was updated successfully, but these errors were encountered: