Bouwsoft DWH Azure Deployment
Basic steps:
-
Refresh Token
- get a refresh token (see dwh-bouwsoft-installation-authentication)
-
Azure SQL database
- Create an Azure SQL Database Server if necessary
- Create an Azure SQL Database with DTU model, if necessary, and create the users. Keep the password of the
db-readerfor later. See sql-server-installation for details. - Create the initial configuration by running the update script:
code/sql/update sql dwh.sql(see: https://github.com/pwrp/product-dwh-bouwsoft/blob/715e961c41069f0f9ecc75cb0ff363140e5d61e9/code/sql/update%20sql%20dwh.sql) - add / change configurations for the client by modifying entries in
config.ionbiz_Tables - You should now have:
- a schema config
- a schema bouwsoft
- a table config.bouwsoft_Tables
-
Key Vault
- Create a key-vault if necessary. See key-vault-installation .
- Store the refresh token as a secret with name
bouwsoft-refresh-token
-
Azure Function in Azure, create an Azure Function af-installation, specifically with
- service plan: B1 (to avoid timeouts)
- python 3.10 (11 doesn't contain SQL Server driver)
- name:
xxx-pwrp-bouwsoft-af - Deploy the AF:
pwrp/product-dwh-bouwsoft/code/af(see: https://github.com/pwrp/product-dwh-bouwsoft/tree/715e961c41069f0f9ecc75cb0ff363140e5d61e9/code/af)
-
ADF in Azure, create an Azure Data Factory adf-installation
- configure the Azure Function as a service
- configure the Azure SQL DWH as a service
- load the ARM template from
pwrp/product-dwh-bouwsoft/code/adfinto ADF - configure a trigger for the ADF pipeline
- publish