Skip to content

Commit ef0167d

Browse files
authored
Merge pull request #100566 from damendo/faq-update
Removing Firewall caveats
2 parents d1db05f + a50014e commit ef0167d

File tree

2 files changed

+9
-41
lines changed

2 files changed

+9
-41
lines changed

articles/network-watcher/frequently-asked-questions.md

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -68,47 +68,17 @@ Only Packet Capture, Connection Troubleshoot and Connection Monitor need the Net
6868
### What does NSG Flow Logs do?
6969
Azure network resources can be combined and managed through [Network Security Groups (NSGs)](https://docs.microsoft.com/azure/virtual-network/security-overview). NSG Flow Logs enable you to log 5-tuple flow information about all traffic through your NSGs. The raw flow logs are written to an Azure Storage account from where they can be further processed, analyzed, queried, or exported as needed.
7070

71-
### Are there any caveats to using NSG Flow Logs?
72-
There are no pre-requisites for using NSG Flow Logs. However, there are two limitations
73-
- **Service Endpoints must not be present on your VNET**: NSG Flow Logs are emitted from agents on your VMs to Storage accounts. However, today you can only emit logs directly to storage accounts and cannot use a service endpoint added to your VNET.
71+
### How do I use NSG Flow Logs on a Storage account with a firewall or through a Service Endpoints?
7472

75-
- **Storage Account must not be firewalled**: Due to internal limitations, Storage accounts must be accessible through the public internet for NSG Flow Logs to work with them. Traffic will still be routed through Azure internally and you will not face extra egress charges.
76-
77-
See the next two questions for instructions on how to work around these issues. Both of these limitations are expected to be addressed by Jan 2020.
78-
79-
### How do I use NSG Flow Logs with Service Endpoints?
80-
81-
*Option 1: Reconfigure NSG flow logs to emit to Azure Storage account without VNET endpoints*
82-
83-
* Find subnets with endpoints:
84-
85-
- On the Azure portal, search for **Resource Groups** in the global search at the top
86-
- Navigate to the Resource Group containing the NSG you are working with
87-
- Use the second dropdown to filter by type and select **Virtual Networks**
88-
- Click on the Virtual Network containing the Service Endpoints
89-
- Select **Service endpoints** under **Settings** from the left pane
90-
- Make a note of the subnets where **Microsoft.Storage** is enabled
91-
92-
* Disable service endpoints:
93-
94-
- Continuing from above, select **Subnets** under **Settings** from the left pane
95-
* Click on the subnet containing the Service Endpoints
96-
- In the **Service endpoints** section, under **Services**, uncheck **Microsoft.Storage**
97-
98-
You can check the storage logs after a few minutes, you should see an updated TimeStamp or a new JSON file created.
99-
100-
*Option 2: Disable NSG flow logs*
101-
102-
If the Microsoft.Storage service endpoints are a must, you will have to disable NSG Flow Logs.
103-
104-
### How do I disable the firewall on my storage account?
105-
106-
This issue is resolved by enabling "All networks" to access the storage account:
73+
To use a Storage account with a firewall or through a Service Endpoints, you have to allow Trusted Microsoft Services to access your storage account:
10774

10875
* Find the name of the storage account by locating the NSG on the [NSG Flow Logs overview page](https://ms.portal.azure.com/#blade/Microsoft_Azure_Network/NetworkWatcherMenuBlade/flowLogs)
10976
* Navigate to the storage account by typing the storage account's name in the global search on the portal
11077
* Under the **SETTINGS** section, select **Firewalls and virtual networks**
111-
* Select **All networks** and save it. If it is already selected, no change is needed.
78+
* In "Allow access from", select **Selected networks**. Then under **Exceptions**, tick the box next to **"Allow trusted Microsoft services to access this storage account"**
79+
* If it is already selected, no change is needed.
80+
81+
You can check the storage logs after a few minutes, you should see an updated TimeStamp or a new JSON file created.
11282

11383
### What is the difference between flow logs versions 1 & 2?
11484
Flow Logs version 2 introduces the concept of *Flow State* & stores information about bytes and packets transmitted. [Read more](https://docs.microsoft.com/azure/network-watcher/network-watcher-nsg-flow-logging-overview#log-file).

articles/network-watcher/network-watcher-nsg-flow-logging-overview.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,12 @@ For continuation *C* and end *E* flow states, byte and packet counts are aggrega
8585

8686
The text that follows is an example of a flow log. As you can see, there are multiple records that follow the property list described in the preceding section.
8787

88-
## NSG Flow Logging Considerations
88+
## NSG flow logging considerations
8989

9090
**Storage account considerations**:
9191

92-
1. Location: The storage account used must be in the same region as the NSG.
93-
2. No Firewall: NSG Flow logs is not onboarded as a [trusted Microsoft Service for Azure Storage](https://docs.microsoft.com/azure/storage/common/storage-network-security#trusted-microsoft-services). See [How do I disable the firewall on my storage account?](https://docs.microsoft.com/azure/network-watcher/frequently-asked-questions#how-do-i-disable-the--firewall-on-my-storage-account) to disable the firewall.
94-
3. No Service Endpoints: Due to a current limitation, logs can only be directly emitted to storage accounts and not via service endpoints. See [How do I use NSG Flow Logs with Service Endpoints?](https://docs.microsoft.com/azure/network-watcher/frequently-asked-questions#how-do-i-use-nsg-flow-logs-with-service-endpoints) for help with removing existing Service Endpoints.
95-
4. Self-manage key rotation: If you change/rotate the access keys to your storage account, NSG Flow Logs will stop working. To fix this issue, you must disable and then re-enable NSG Flow Logs.
92+
- Location: The storage account used must be in the same region as the NSG.
93+
- Self-manage key rotation: If you change/rotate the access keys to your storage account, NSG Flow Logs will stop working. To fix this issue, you must disable and then re-enable NSG Flow Logs.
9694

9795
**Enable NSG Flow Logging on all NSGs attached to a resource**: Flow logging in Azure is configured on the NSG resource. A flow will only be associated to one NSG Rule. In scenarios where multiple NSGs are utilized, we recommend that NSG flow logging is enabled on all NSGs applied a resource's subnet or network interface to ensure that all traffic is recorded. For more information see [how traffic is evaluated](../virtual-network/security-overview.md#how-traffic-is-evaluated) in Network Security Groups.
9896

0 commit comments

Comments
 (0)