I have an azure function written in python which is listening to an azure service bus. The authentication is done by an azure service bus connection string. I want to change the authentication to a service principal. How can I implement this in my azure function?
Below is my function.json file. I expect that there are other values possible for the "connection" parameter.
"scriptFile": "__init__.py",
"bindings": [
{
"name": "msg",
"type": "serviceBusTrigger",
"direction": "in",
"queueName": "queue_name",
"connection": "ASB_CONNECTION_STR"
}
]
}