It worked after waiting for the changes to take effect 10-15mins,. Please close the question.
NSG Flow Log resource deployment failure
When deploying NSG flow logs, I see the following error: {"code":"DeploymentFailed","target":"/subscriptions/fe303420-7103-4999-b6fb-5f14b52a52a1/resourceGroups/NetworkWatcherRG/providers/Microsoft.Resources/deployments/Microsoft.NSGFlowLog-20240118114317","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/fe303420-7103-4999-b6fb-5f14b52a52a1/resourceGroups/NetworkWatcherRG/providers/microsoft.network/networkwatchers/NetworkWatcher_northeurope/flowlogs/ubunutu-nsg-ubunutu_group-flowlog","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."}]} The status shows as Conflict and in the Status Message:
{
"status": "Failed",
"error": {
"code": "InvalidAuthenticationToken",
"message": "Please register the subscription 'fe303420-7103-4999-b6fb-5f14b52a52a1' with Microsoft.Insights.",
"details": []
}
}
However, my subscription is already enabled for Microsoft Insights