-
Notifications
You must be signed in to change notification settings - Fork 380
Description
Describe the bug
-
I have access to Azure AI search resource at resource level, not at subscription level. I do not own that sub and have no access to that sub
-
I configure Azure MCP server and install plugin successfully.
-
I then use az login and select a subscription as prompted. I can't select sub mentioned in Update README.md #1
When entering prompt which trigger MCP plugin, I always get below error saying I do not have access.
Though in python code, I can access resource using DefaultAzureCredential().
Is there way to fix this in MCP route?
✗ Azure AI Search
{ "status": 500, "message": "Error retrieving Search index details: Service request failed.\r\nStatus: 403 (Forbidden)\r\n\r\nHeaders:\r\nTransfer-Encoding:
chunked\r\nStrict-Transport-Security: REDACTED\r\nPreference-Applied: REDACTED\r\nclient-request-id: 7296506a-8dd1-43e8-9da5-07823ecc108d\r\nx-ms-client-request-id:
7296506a-8dd1-43e8-9da5-07823ecc108d\r\nrequest-id: 7296506a-8dd1-43e8-9da5-07823ecc108d\r\nelapsed-time: 30\r\nDate: Thu, 05 Feb 2026 05:33:47 GMT\r\nContent-Language:
REDACTED\r\n. To mitigate this issue, please refer to the troubleshooting guidelines here at https://aka.ms/azmcp/troubleshooting (https://aka.ms/azmcp/troubleshooting)
.", "results": { "message": "Error retrieving Search index details: Service request failed.\r\nStatus: 403 (Forbidden)\r\n\r\nHeaders:\r\nTransfer-Encoding:
chunked\r\nStrict-Transport-Security: REDACTED\r\nPreference-Applied: REDACTED\r\nclient-request-id: 7296506a-8dd1-43e8-9da5-07823ecc108d\r\nx-ms-client-request-id:
7296506a-8dd1-43e8-9da5-07823ecc108d\r\nrequest-id: 7296506a-8dd1-43e8-9da5-07823ecc108d\r\nelapsed-time: 30\r\nDate: Thu, 05 Feb 2026 05:33:47 GMT\r\nContent-Language:
REDACTED\r\n", "type": "Exception" }, "duration": 0 }
Expected behavior
Have access
Actual behavior
Always get error
Reproduction Steps
- create resource with resource level access only
- setup MCP
- az login select sub
- try to involve MCP
- get error
Environment
production global azure. on windows
Metadata
Metadata
Assignees
Labels
Type
Projects
Status