Azure Event Grid System Topic will not deploy - unable to verify access to resource

gsouf 0 Reputation points
2025-09-11T11:41:18.64+00:00

Trying to create a storage acocunt and an event grid system topic as per:

resource "azurerm_storage_account" "storage" {
  name                     = "REDACTED"
  resource_group_name      = "REDACTED"
  location                 = "REDACTED"
  account_tier             = "Standard"
  account_replication_type = "LRS"

  public_network_access_enabled = true
}

resource "azurerm_eventgrid_system_topic" "storage" {
  name                = "REDACTED"
  resource_group_name = "REDACTED"
  location            = "REDACTED"
  source_resource_id  = azurerm_storage_account.storage.id
  topic_type          = "Microsoft.Storage.StorageAccounts"
}

The storage account will create with success. The system topic will hang forever. Consulting the activity log, it's getting the following error:

Unable to verify access to resource /subscriptions/REDACTED/resourceGroups/REDACTED/providers/Microsoft.Storage/storageAccounts/REDACTED. Please try again in a few minutes.\"

Tryed again 1 hour later, and also tried again on a brand new resource group. Always happening.

Same error occurs in using the Azure Portal UI:

enter image description here

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
{count} votes

2 answers

Sort by: Most helpful
  1. gsouf 0 Reputation points
    2025-09-11T14:23:41.1766667+00:00

    @Praveen Kumar Gudipudi thanks, I figured out that it required the role EventGrid Contributor on the storage account. That I think was not the case before, but could be because I used another account before, but not even sure. Regardless, the way the error is handled by Azure makes it extremely hard to figure out.

    0 comments No comments

  2. Praveen Kumar Gudipudi 1,080 Reputation points Microsoft External Staff Moderator
    2025-09-12T03:47:24.7666667+00:00

    Hello gsouf,

    Glad here that your issue has been resolved now.

    Issue: Unable to verify access to resource /subscriptions/REDACTED/resourceGroups/REDACTED/providers/Microsoft.Storage/storageAccounts/REDACTED. Please try again in a few minutes.\

    Resolution: it required the role EventGrid Contributor on the storage account.

    Please accept as answer and do a Thumbs-up to upvote this response. Your upvote will be beneficial for the community users facing similar issues.

    0 comments No comments

Your answer

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