-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
AI ProjectsService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Package Name: azure-ai-projects
Package Version: 2.0.0b3
Operating System: macos
Python Version: 3.14
Describe the bug
I am trying to run the sample_memory_basic.py example, however I always get an "Authentication failed" error. Is there a required permission that I am missing?
To Reproduce
Steps to reproduce the behavior:
- Have Azure Ai User permissions
- Create Microsoft Foundry resource with gpt-4.1 and text-embedding-3-small deployments.
- Log in to Azure CLI
- Run sample_memory_basic.py
Expected behavior
Script runs successfully, adding memories to memory store.
logs:
(.venv) liutiezhu_mac@LiuTiezhu-Macs-MacBook-Pro fastapi_project % python demo/mf_memory_01/sample_memory_basic.py
Memory store `my_memory_store` deleted
Created memory store: my_memory_store (memstore_924e46f69706a03a003Nv0lFjNAoOnwo1LjWI1mRZrDgaYDXDd): Example memory store for conversations
- Chat model: text-embedding-3-small
- Embedding model: text-embedding-3-small
Traceback (most recent call last):
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/core/polling/base_polling.py", line 950, in run
self._poll()
~~~~~~~~~~^^
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/ai/projects/models/_patch.py", line 101, in _poll
raise OperationFailed("Operation failed or canceled")
azure.core.polling.base_polling.OperationFailed: Operation failed or canceled
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/demo/mf_memory_01/sample_memory_basic.py", line 108, in <module>
update_result = update_poller.result()
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/core/polling/_poller.py", line 323, in result
self.wait(timeout)
~~~~~~~~~^^^^^^^^^
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
return func(*args, **kwargs)
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/core/polling/_poller.py", line 342, in wait
raise self._exception # type: ignore
^^^^^^^^^^^^^^^^^^^^^
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/core/polling/_poller.py", line 247, in _start
self._polling_method.run()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/liutiezhu_mac/code_project/GTA/poc_v1/fastapi_project/.venv/lib/python3.14/site-packages/azure/core/polling/base_polling.py", line 965, in run
raise HttpResponseError(response=self._pipeline_response.http_response, error=err) from err
azure.core.exceptions.HttpResponseError: (ResourceError) Provided Azure resource encountered an error: Authentication failed.
Code: ResourceError
Message: Provided Azure resource encountered an error: Authentication failed.
(.venv) liutiezhu_mac@LiuTiezhu-Macs-MacBook-Pro fastapi_project %
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AI ProjectsService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that