This tool can be used to synchronized your schema from Azure Data Explorer (Kusto) cluster to yml files in a GitHub repository and back, using GitHub Actions.
- Create a repository for versioning your files
- Copy the actions.yaml file from the workflows folder to your repository in the folder
.github/actions/KustoSchemaTools
- Copy the workflows that you want (import, diff, apply) from the workflows folder to your repository in the folder
.github/workflows
- The workflows use OIDC to login to Azure. You can use a service principal instead. Make sure, that the identity you use has access to your Azure Data Explorer (Kusto) cluster
- Create a folder for your cluster/deployment and add a clusters file.
- Import the databases you want to synchronize
- Make changes to the yaml files and create a PR
- The diffs will be posted as PR comment
- Merge the PR to roll out the changes to your Azure Data Explorer (Kusto) cluster
This project can be used as it is and doesn't require customizations. In the repo
KustoSchemaTools uses plugins for reading the and writing the schema from or to a database or yaml file. You can find more docs on that in the KustoSchemaTools repo.
The easiest way to add your own logic is to