diff --git a/src/PSRule.Rules.AzureDevOps/Functions/DevOps.ServiceConnections.ps1 b/src/PSRule.Rules.AzureDevOps/Functions/DevOps.ServiceConnections.ps1 index f74c6e6..5437433 100644 --- a/src/PSRule.Rules.AzureDevOps/Functions/DevOps.ServiceConnections.ps1 +++ b/src/PSRule.Rules.AzureDevOps/Functions/DevOps.ServiceConnections.ps1 @@ -153,7 +153,7 @@ function Export-AzDevOpsServiceConnections { Write-Output $serviceConnection } else { Write-Verbose "Exporting service connection $($serviceConnection.name) as file $($serviceConnection.name).ado.sc.json" - $serviceConnection | ConvertTo-Json -Depth 100 | Out-File "$OutputPath/$($serviceConnection.name.replace('/'.'')).ado.sc.json" + $serviceConnection | ConvertTo-Json -Depth 100 | Out-File "$OutputPath/$($serviceConnection.name.replace('/','')).ado.sc.json" } } }