app that will fetch data from the drupal rest api (from ssc plus) and feed them out to a storage device
Checkout the infrastructure project then run the following commands:
cd live/sandbox/ssplus-data-fetch
terragrunt plan --terragrunt-source ~/git/sscplus-data-fetch/terraform
If requested for package.zip
localtion simply create one first and then provide directory path (zip package.zip function_app.py requirements.txt host.json
)
This is how dev should setup to run this project on their work computers
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt --upgrade
Might need to run Ctrl+Shift+P
in VSCode, type Python: Create environment...
and follow instructions if needed.
Make sure you install the Azure plugins (install the Azure Functions extension for Visual Studio Code)
Then press F5
.
Run with python function/__init__.py
(old).
I had an issue where the trigger wasn't detected in the V2 model. I had to modify my local.settings.json
to include this property (see documentation about it):
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing",
...
}
}