Unable to create VNET flow logs, deployment fails with status "Bad Gateway"
As Azure is going to retire the NSG flow logs, we are supposed to create VNET flow logs directly for virtual networks. By following the company guidelines I have created a storage account in SIEM subscription. Now while creating flow logs the last stage of the deployment fails showing status as "Bad Gateway". Here goes the error message,
{
"status": "Failed",
"error": {
"code": "AuthorizationFailed",
"message": "The client '731xxx-xxx-xxxxx' with object id '731xxxx-xxxx-xxxx-xxxx-xxxx' does not have authorization to perform action 'Microsoft.Storage/storageAccounts/read' over scope '/subscriptions/4921b8a8-af0a-474f-/resourceGroups/VNET-SIEM/providers/Microsoft.Storage/storageAccounts/cmoxxxxxxxdinc' or the scope is invalid. If access was recently granted, please refresh your credentials.",
"details": []
}
}
What's the actual issue here?