@Gerald Rupp Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that you are having trouble initializing the client to call an orchestrator function.
Could you please test if the below sample helps ?
Within _init_.py
have the below code:
import logging
import azure.functions as func
import azure.durable_functions as df
async def main(myblob: func.InputStream, starter: str):
logging.info("Python blob trigger function processed blob)
client = df.DurableOrchestrationClient(starter)
instance_id = await client.start_new('YourNewDurableFunction')
I hope you have already added the function.json
as below:
"scriptFile": "__init__.py",
"bindings": [
{
"name": "myblob",
"type": "blobTrigger",
"direction": "in",
"path": "ContainerName/{name}",
"connection": "AZURE_STORAGE_CONNECTION_STRING"
},
{
"name": "starter",
"type": "durableClient",
"direction": "in"
}
]
}
I am also sharing a few useful articles if that helps: I am sharing a few useful articles related to similar ask:
https://stackoverflow.com/questions/53784657/durable-function-blob-trigger https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-instance-management?tabs=python https://stackoverflow.com/questions/72344826/using-python-blob-trigger-as-durable-client-in-azure
Hope this helps.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.