Could not run DebugSession 'xml-debug'. Could not persist an event for the DebugSession. Error: 'This request is not authorized to perform this operation.'

Cody Frascione 0 Reputation points
2024-10-31T18:55:57.8966667+00:00

Error in title. Cannot run a debug session on a search service. I verified the prerequisites here. I also see the error: "Could not retrieve execution-data for DebugSession 'xml-debug'. Please check the storage connection string associated with the debug session is correct, the storage account exists, and the credentials in the connection string is correct." but I don't see anywhere in the debug config to specify the full connection string, the storage account I specified does exist and has no network restrictions.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cody Frascione 0 Reputation points
    2024-10-31T19:44:46.3433333+00:00

    Evidently I did not check all the prerequisites. Had to add "Storage Blob Data Contributor" role to the indexer assignment on the storage account.


  2. ajkuma 28,136 Reputation points Microsoft Employee Moderator
    2024-11-07T12:02:07.1366667+00:00

    Cody Frascione, Following-up from the comments section.

    Scenario:

    Unable to run Debug an Azure AI Search skillset in Azure portal as per the outlined steps.

    Issue:

    Attempting to run a debug session (named 'xml-debug' ) on an Azure AI search service. However, the debug session fails to start, and receives an error message :
    "Could not run DebugSession 'xml-debug'.
    Could not persist an event for the DebugSession."
    Error: 'This request is not authorized to perform this operation.'"

    As confirmed by Cody Frascione ( thank you)

    Resolution:

    Missed add Storage Blob Data Contributor role to the indexer assignment.

    After add "Storage Blob Data Contributor" role to the indexer assignment on the storage account the issue was resolved.

    Outlined in the Azure doc prerequisite:

    User's image


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.