Evidently I did not check all the prerequisites. Had to add "Storage Blob Data Contributor" role to the indexer assignment on the storage account.
Could not run DebugSession 'xml-debug'. Could not persist an event for the DebugSession. Error: 'This request is not authorized to perform this operation.'
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.
2 answers
Sort by: Most helpful
-
-
ajkuma 26,636 Reputation points Microsoft Employee
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: