Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ReplaceServiceBusConnectionString script is ignoring the connectionStrings tag inside config files #4

Closed
margani opened this issue Jul 10, 2018 · 1 comment

Comments

@margani
Copy link

margani commented Jul 10, 2018

I think we need to add the following foreach to the code:

foreach($add in $xmlFile.configuration.connectionStrings.add) {
    if ($add.name -eq 'ServiceBus'){
        $add.connectionString = $connectionString
        $xmlFile.Save($configFile)  
        
        write-host "File Changed (ServiceBus in connectionStrings tag): " $configFile            
    }
}

and also, it's good to have a message in the output like above, which shows what value it is changing.

@margani
Copy link
Author

margani commented Jul 24, 2018

This is resolved in #5

@margani margani closed this as completed Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant