Created
February 16, 2023 13:43
-
-
Save kunalworldwide/f94edee4616b5948813c3aa2d79e30da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- task: PythonScript@0 | |
displayName: 'Change SQL Pool' | |
inputs: | |
scriptSource: inline | |
script: | | |
search_text = 'synapsesqlpooldev' | |
replace_text = 'synapsesqlpoolqa' | |
with open(r'$(System.DefaultWorkingDirectory)/_Synapse-CI-pipeline/drop/ARM/TemplateForWorkspace.json', 'r') as file: | |
data = file.read() | |
data = data.replace(search_text, replace_text) | |
with open(r'$(System.DefaultWorkingDirectory)/_Synapse-CI-pipeline/drop/ARM/TemplateForWorkspace.json', 'w') as file: | |
file.write(data) | |
print("SQL pool changed") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment