Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
After debugging this further, I noticed the following discrepancy:
When running the file with debugpy, the environment variable is updated and the call is made properly.
When running the application with python filename.py, the env variable has an old value.
Making the following adjustment in my code resolves the issue:
load_dotenv(override=True)