Trying to deploy the new Azure VNET Flow Logs with traffic analytics, however not able to succeedd so far. I have tried azure policy, portal manually, through REST API all are failing with the internal server error
{
"name": "vnetflowlog",
"properties": {
"targetResourceId": "...../vnet-01",
"storageId": "...flowsa01",
"enabled": true,
"flowAnalyticsConfiguration": {
"networkWatcherFlowAnalyticsConfiguration": {
"enabled": true,
"workspaceId": "310dfd4a-1137-4a05-8130-abde",
"workspaceRegion": "eastus2",
"workspaceResourceId": ".../abcdef",
"trafficAnalyticsInterval": 60
}
},
"retentionPolicy": {
"days": 7,
"enabled": true
},
"format": {
"type": "JSON",
"version": 2
}
},
"type": "Microsoft.Network/networkWatchers/flowLogs",
"location": "eastus2",
}
It failed with the below error always
"content": {
"status": "Failed",
"error": {
"code": "InternalServerError",
"message": "An error occurred.",
"details": []
}
}
and makes the provisioningState to Failure
If i just removed or make the networkWatcherFlowAnalyticsConfiguration.enabled
to false
its working fine. So is there any one able to successfully deploy the vnet flow logs with traffice analytics enabled without have such error ? Or If I’m making any mistake in my deployment
Ref: