microsoft / azure-redcap-paas

Automated deployment of REDCap with Azure Blob storage as the storage back-end
MIT License
29 stars 59 forks source link

Automate database configuration of Azure Storage #60

Open SvenAelterman opened 11 months ago

SvenAelterman commented 10 months ago

Use Deployment Script with VNet integration to execute remaining mysql commands? Per https://learn.microsoft.com/azure/azure-resource-manager/bicep/deployment-script-vnet

However, need to determine how the Deployment Script will be called in the sequence. It must happen after the database deployment (part of the web app deployment) is finished.

SvenAelterman commented 8 months ago

The above might not work. However, creating a script and calling it via SCM_POST_DEPLOYMENT_ACTIONS_PATH=<path>.

Alternatively, the necessary code can be added in the startup.sh script, in which case it would be executed on every container start and some guard clauses might be needed to avoid changing configuration.

SvenAelterman commented 3 weeks ago

This could be done by creating a WebJob that runs just once.