Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Try using the following instead:
https://<resource-name>.services.ai.azure.com/api/projects/<project-name>
You no longer pass subscription ID, resource group, or project name separately. The SDK infers all context from the endpoint URL itself. For more info, refer to https://dori-uw-1.kuma-moon.com/en-us/python/api/overview/azure/ai-projects-readme?view=azure-python
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin