Hello Rudy Evers
This error suggests that the creation or updating of the Network Watcher flow log has failed, which could be due to various reasons, such as configuration issues, resource dependencies, Resource lock or insufficient permissions.
Here are steps to troubleshoot and resolve the problem:
- Can you please ensure that you have the necessary permissions to configure flow logs. You need at least the Network Contributor or Owner role on the target subscription/resource group.
- Flow logs require a storage account to store logs. so please ensure that storage account exists and is accessible. If it has a firewall configuration that allows access from the virtual network, it requires permissions (like "Microsoft.Network" access) are assigned.
- Also, Confirm that the Network Watcher is enabled in the region where you're trying to create the flow log.
- To isolate the issue, you can try creating or enabling the flow log again using PowerShell or Azure CLI: New-AzNetworkWatcherFlowLog -NetworkWatcherName "<NetworkWatcherName>"
-ResourceGroupName "<ResourceGroupName>"
-Location "<Region>"-TargetResourceId "<NSGResourceId>"
-StorageId "<StorageAccountId>" ` -Enabled $true
Alternatively,
Please ensure that no Resource Lock is enabled. Test this by unlocking or deleting the lock on the resource group and let me know if the issue persists.
Should there be any follow-up questions or concerns, please let us know and we shall try to address them.
Please do consider to “up-vote” and "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.