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
Copy file name to clipboardExpand all lines: README.md
+30-21Lines changed: 30 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,44 +50,53 @@ Some examples of queries are as follows:
50
50
51
51

52
52
53
-
# Setup a connection with your Azure Firewall
54
-
Azure-Firewall-mon is an open source, [Single Page Application](https://en.wikipedia.org/wiki/Single-page_application), written in [Angular](https://angular.io/) with an [Azure function](https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview) backend written in C# DotNet.
53
+
# Set up a connection with your Azure Firewall
54
+
Azure-Firewall-mon is an open source, [Single Page Application](https://en.wikipedia.org/wiki/Single-page_application), written in [Angular](https://angular.io/) with an [Azure function](https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview) backend written in C# .NET.
55
55
56
-
Here the current architecture:
56
+
Here's the current architecture:
57
57
58
58

59
59
60
-
To use this app with **YOUR data**, you must perform the following steps on your Azure Subscription:
60
+
To use this app with **YOUR FIREWALL data** you have 2 options:
61
+
62
+
1. Use Azure Firewall mon sample deployment available at <https://az-firewall-mon.duckiesfarm.com>
63
+
2. Deploy Azure Firewall mon in your environment
64
+
65
+
The recommended option is number 2, because this way you are 100% sure your logs are not going outside your environment. I suggest you use the public deployment only for testing purposes.
66
+
67
+
> <https://az-firewall-mon.duckiesfarm.com> uses resources of my subscription (Azure Maps API, Azure OpenAI, Azure Static Web App Standard). These resources have a cost, so consider that I am limiting their cost as much as possible. The result is that the tool can be quite slow. In your deployment, you can dedicate more resources and also have better performance.
68
+
69
+
# Use az-firewall-mon sample deployment
70
+
To use this version with your data, you must perform the following steps on your Azure Subscription:
61
71
62
72
1. Create an Azure Event Hub Namespace
63
73
2. Create an Azure Event Hub inside the namespace, with a `1-day retention` and `1 partition`
64
-
3. Create a Shared Access Policy, with _Listen_ claim
65
-
4. Create an Azure Map Account
66
-
5. Create an Azure OpenAI Service
67
-
6. Go to OpenAI Studio > Deployments > Create a new deployment using as model `gpt-4o version 2024-05-13`
68
-
7. Open the Azure Firewall instance you want to monitor, go to Monitoring > Diagnostic Settings > Add Diagnostic Settings:
74
+
3. Create a Shared Access Policy, with _Listen_ claim
75
+
4. Open the Azure Firewall instance you want to monitor, go to Monitoring > Diagnostic Settings > Add Diagnostic Settings:
69
76
70
77
- Select _all__logs_ and "Stream to Event Hub"
71
78
- Select the Event Hub Namespace and Hub created above
72
79
- click `SAVE`
73
80
74
-
Lazy engineers can performs steps from 1 to 6 by clicking the following button[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fnicolgit%2Fazure-firewall-mon%2Fmain%2Fbicep%2Ffirewall-mon-azure-stuff.json) :-)
81
+
If you are a lazy engineer, like me, you can perform all these steps by clicking the following button😊
75
82
76
-
Now, open <https://az-firewall-mon.duckiesfarm.com/> and do the following:
83
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fnicolgit%2Fazure-firewall-mon%2Fmain%2Fbicep%2Ffirewall-mon-azure-stuff.json)
84
+
85
+
Open the Azure Firewall instance you want to monitor from Azure portal, go to Monitoring > Diagnostic Settings > Add Diagnostic Settings:
77
86
78
-
1. copy in the `Event Hub Connection String` field the connection string of the Shared Access Policy created above
79
-
2. copy the corresponding `Event Hub Consumer Group` Name
80
-
3. copy in the `Azure Map Account Shared Key` field the primary or secondary Shared Key of the Azure Map Account created above
81
-
4. copy in the `Azure OpenAi Endpoint` field the enpoint URI for the OpenAI resouce created above
82
-
5. copy in the `Azure OpenAI deployment` field tne name of the deployment created above
83
-
6. copy in the `Azure OpenAI access key` field the primary or secondary Shared Key of the Azure OpenAI account created above
84
-
7. click on `Let's begin`.
87
+
* Select all logs and "Stream to Event Hub"
88
+
* Select the Event Hub Namespace and Hub created above
89
+
* Click SAVE
90
+
91
+
Now, open <https://az-firewall-mon.duckiesfarm.com/> and do the following:
85
92
86
-
# Install Azure-firewall-mon in your environment
93
+
1. Copy the connection string of the Shared Access Policy created above into the `Event Hub Connection String` field
94
+
2. Copy the corresponding `Event Hub Consumer Group` name
95
+
3. Click on `Let's begin`.
87
96
88
-
[@lukemurraynz](https://github.com/lukemurraynz) has written a very detailed blog post on how deploy Azure-Firewall-mon in an Azure Static Web App. If you prefer this approach, have a look at his blog post <https://luke.geek.nz/azure/deploy-azure-firewall-mon-to-a-static-web-app/>
97
+
# Install az-firewall-mon in your environment
89
98
90
-
> NOTE: `environment.prod.ts` must be updated with your environment information. az-firewall-mon requires an [Application Insights](https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview) instance to work properly.
99
+
to install az-firewall-mon in your environment, follow this guide. Once the instance is ready and working, you can go back and follow instructions in the [Use az-firewall-mon sample deployment](#use-az-firewall-mon-sample-deployment) section. Just change the URL with the one of your deployment.
0 commit comments