#๐Ÿ”’ Azure sample code does not work at authentication

6 messages ยท Page 1 of 1 (latest)

timber zenithBOT
#

@unkempt python

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

unkempt python
#

I have set up the code example that Microsoft tells you to use for their "Azure Communication Service Callautomation"

Even though the code sample had commits 2 months ago it seems like it isn't enough to authenticate with only a connection string anymore and when my application takes a call it gives bellow the error

When I googled for this error I followed the official guide to authenticate and set up the DefaultAzureCredentials object

But I can't see anywhere in the documentation where I am supposed to use put this object so it can be used, it only gives an example for another service called "Blob Service", nothing for automated calls

Error:
azure.core.exceptions.HttpResponseError: (8567) Service Principal for the Azure Communication Service Resource is not configured.
Documentation for authenticating python app:
https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication/on-premises-apps?tabs=azure-cli
Current way of authenticating my client:
call_automation_client = CallAutomationClient.from_connection_string(ACS_CONNECTION_STRING)
Microsofts official recommended code is attached as a file

timber zenithBOT
#

@unkempt python

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ Azure sample code does not work at authentication