You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Python API integrated with Azure Service Bus Queue
1
+
# Static web app invoking Azure functions
2
+
3
+
Static web app built with the React framework. The [application](client/src/App.js) allows users to upload CSV files to a storage blob via an HTTP-triggered function.
4
+
The uploaded files are then processed by a blob-triggered function, which stores the results in a separate container. Aforementioned functions
5
+
are present in the [function_app.py](hvalfangst_function/function_app.py) python script - which is the main entrypoint of our Azure Function App instance.
6
+
7
+
A pipeline has been set up to deploy the function app and the static web app to Azure using GitHub Actions. The pipeline is triggered by a push to the main branch or by manually running the workflow.
For this script to work it is necessary to have a configuration file named **infra_config.env** in your [infra](infra) directory. It contains sensitive information
36
-
such as tenant and subscription id as well as information used to reference resources. The file has been added to our [.gitignore](.gitignore) so that you don't accidentally commit it.
37
-
### Structure of 'infra/infra_config.env'
38
-
```bash
39
-
TENANT_ID={TO_BE_SET_BY_YOU_MY_FRIEND}
40
-
SUBSCRIPTION_ID={TO_BE_SET_BY_YOU_MY_FRIEND}
41
-
LOCATION=northeurope
42
-
RESOURCE_GROUP_NAME=hvalfangstresourcegroup
43
-
STORAGE_ACCOUNT_NAME=hvalfangststorageaccount
44
-
BLOB_CONTAINER_NAME=hvalfangstblobcontainer
45
-
FUNCTION_APP_NAME=hvalfangstfunctionapp
46
-
SERVICE_PLAN_NAME=hvalfangstserviceplan
47
-
APP_INSIGHTS_NAME=hvalfangstappinsights
48
-
```
49
-
50
44
## Deallocate resources
51
45
52
-
The shell script [deallocate_resources](infra/deallocate_resources.sh) deletes our Azure service bus queue, namespace and resource group.
46
+
The shell script [deallocate_resources](infra/deallocate_resources.sh) deletes our Azure resources.
53
47
54
48
# CI/CD
55
49
@@ -61,4 +55,6 @@ In order for the pipeline to work, the following secrets must be set in the repo
61
55
The associated values of the aforementioned secret can be retrieved from the Azure portal, under our deployed Function App.
62
56
Click on the **Get publish profile** button and copy/paste the file content into the secret value field.
0 commit comments