Run the following line in order in the infrastructure folder:
- az login
- run the setup.sh script to create the account storage for Terraform
- terrafrom init
- terraform plan
- terraform apply -var backend_subscription_id=
- run output.ps1
- Deply ScraperFunction to the time-triggerd-azure-functions resource
- Deply DataServerFuntion to the http-triggerd-azure-functions resource
The time trigger will scrape and send the data and event hub that will subsequential move it to a table storage.
The service function will read anything in the azure table storage and present the data as a json object.
The service function is locked behind a token bearer scheme, to use the api just generate any valid jwt token.
The current example api is running as: https://http-triggerd-azure-functions.azurewebsites.net/api/books