Skip to content

Instantly share code, notes, and snippets.

@mattruma
Created December 17, 2020 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattruma/9133a3b93a2d7fab0ea75d45c6c3f2ce to your computer and use it in GitHub Desktop.
Save mattruma/9133a3b93a2d7fab0ea75d45c6c3f2ce to your computer and use it in GitHub Desktop.
Adventures with Azure DevOps: Connect to Azure Database for MySQL
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: none
- script: echo Hello, world!
displayName: 'Run a one-line script'
- task: AzureMysqlDeployment@1
displayName: 'Execute Azure MySQL : InlineSqlTask'
inputs:
ConnectedServiceName: $(ConnectedServiceName)
ServerName: $(ServerName)
DatabaseName: schema1
SqlUsername: $(SqlUserName)
SqlPassword: $(SqlPassword)
TaskNameSelector: InlineSqlTask
SqlInline: SELECT * FROM schema1.table1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment