Unable to create VNET flow logs, deployment fails with status "Bad Gateway"

Saraswat, Aarushi 0 Reputation points
2025-08-29T13:04:33.53+00:00

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?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.