V2 Programming Model for Azure Functions using Python (Preview) #1138
Replies: 13 comments 12 replies
-
I really like how this feature has taken inspiration from flask and its way of handling blueprints / routes! It will improve the DX so much and also finally make it possible to decide which functions to expose during start-up. Also, really nice how many of the triggers and output bindings are already supported. Is there already an estimate when this will be GA? |
Beta Was this translation helpful? Give feedback.
-
Is there any documentation on Durable Functions yet? I see supported was added but cannot get it to fully work. The client input works as expected but not the orchestration trigger. import azure.functions as func
import azure.durable_functions as df
app = df.DFApp(http_auth_level=func.AuthLevel.ANONYMOUS)
@app.route(
route="orchestrators/{functionName}", binding_arg_name="message"
) # Register HTTP Trigger
@app.durable_client_input(client_name="starter")
async def durable_trigger(
req: func.HttpRequest, starter: df.DurableOrchestrationClient, message
):
instance_id = await starter.start_new("test")
response = starter.create_check_status_response(req, instance_id)
message.set(response)
@app.orchestration_trigger(context_name="context", orchestration="test")
def orchestration_trigger_test(context):
print(context) Fails with the following exception |
Beta Was this translation helpful? Give feedback.
-
@shreyabatra4 |
Beta Was this translation helpful? Give feedback.
-
This is great, but I am not sure that it solves a key issue that I had previously: I need to be able to share proprietary python code (not available in a public repo) between multiple Azure Function apps. As described in e.g. Azure/azure-functions-core-tools#1987. Does the v2 programming model solve this issue in some way that I'm not seeing? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Is there a recommendation from Microsoft on V1 or V2 for new projects? Are there any public depreciation plans for V1 |
Beta Was this translation helpful? Give feedback.
-
@shreyabatra4 Is there anything from Python V2 model still in preview phase? In the doc I see that durable functions with blueprints are still not fully released (seems to be in preview phase), or is the documentation out-dated? |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi all, is there a timeline when V2 Programming Model will support the Kafka decorator for durable functions? |
Beta Was this translation helpful? Give feedback.
-
Hi. Is there a plan/timeline to add Entity Functions to V2 programming model? |
Beta Was this translation helpful? Give feedback.
-
It'd be great if someone could help give me a hint on this ask #1395 |
Beta Was this translation helpful? Give feedback.
-
is this v2 programming model ever going to get support for SignalR output bindings? It's fine and well to say we can use the generic output bindings, but there's not really any good documentation out there on how to use it to recreate the bindings that were present in the v1 model and missing in v2... |
Beta Was this translation helpful? Give feedback.
-
Also looking for a way to use SignalR with programming model v2 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to create a binding between Azure Function Python V2 and Azure SQL Database? If so, how? |
Beta Was this translation helpful? Give feedback.
-
The v2 programming model is designed to provide a development experience that is more familiar to Python developers. Key features include triggers and bindings declared as decorators, importing through blueprints, and support through easy to reference documentation. Note that leveraging the v2 programming model will provide an improved and seamless way to create functions, with the underlying deployment, debugging, and monitoring experience remaining the same.
To get started and create your first function, see the following articles
Get started with VS Code
Get started with command prompt
Code examples
To learn more about the model, see the developer reference guide. Known limitations of the v2 model and recommended workarounds can be found in the troubleshooting guide.
We'd love to know your thoughts and any feedback, please let us know if you tried out the V2 model below!
Beta Was this translation helpful? Give feedback.
All reactions