Developing Azure Functions using the v2 programming model for Python | Azure Friday

  Переглядів 14,590

Microsoft Azure

Microsoft Azure

День тому

Gavin Aguiar and Shreya Batra join Scott Hanselman to discuss the v2 programming model for Azure Functions using Python, which provides an Azure Functions development experience that is more familiar to Python developers. Key features include triggers and bindings declared as decorators, a simplified folder structure, and support through easy to reference documentation.
Chapters:
00:00 - Introduction
01:18 - Azure Functions backgrounder
04:30 - v2 programming model for Python
06:40 - VS Code extension for v2 programming model for Python
08:40 - Demo: Create an Azure Function with the v2 programming model for Python
12:00 - Missing a Storage account...
14:00 - App decorators add the magic...
15:00 - Demo of a more complicated example
21:50 - Wrap-up
Recommended resources:
■ Azure Functions: V2 Python Programming Model - aka.ms/azfr/741/01
■ Azure Functions Python developer guide - aka.ms/azfr/741/02
■ Python V2 model Azure Functions triggers and bindings (preview) - aka.ms/azfr/741/03
■ Quickstart: Create a function in Azure with Python using Visual Studio Code - aka.ms/azfr/741/04
■ V2 Programming Model for Azure Functions using Python - aka.ms/azfr/741/05
■ Create a Pay-as-You-Go account (Azure) - aka.ms/azfr/741/payg
■ Create a free account (Azure) - aka.ms/azfr/741/free
Connect with us:
■ Scott Hanselman | @SHanselman - / shanselman
■ Shreya Batra | @BatraShreya - / batrashreya
■ Azure Friday | @AzureFriday - / azurefriday
■ Azure Functions | @AzureFunctions - / azurefunctions
■ Azure | @Azure - / azure
#Microsoft #Azure #AzureFriday

КОМЕНТАРІ: 22
@databach6024
@databach6024 Рік тому
Hi nice demo ! :) Can you show us how to run a non-http triggered function locally without http ? Like EventHub Trigger ? How can we emulate the EventHub ?
@prathibha_sangamalla
@prathibha_sangamalla Рік тому
Can you please do a video on how to change the video formats in the azure blob itself.
@Amivit
@Amivit Рік тому
Super nice presentation! Would you like to come show it off at LEGO? ☺️ Also, can we use FastApi with Durable Functions? Any benefits to that or do you recommend just sticking with native if we have no specific needs/experience with fastapi? I’m wondering if it gives more control for the route
@MicrosoftAzure
@MicrosoftAzure Рік тому
We are happy to hear the team enjoyed it 🙌 For the best assistance and support, we'd recommend reaching out to our team @AzureSupport. You can tag them in a post or DM them directly.
@the_gask6070
@the_gask6070 Рік тому
When is the Azure Docs team going to update the documentation to reflect the changes in V2 ? Most of the documentation is stuck in V1 (mentioning function.json and __init__.py that are not present in V2)
@MicrosoftAzure
@MicrosoftAzure Рік тому
Hello there! To access information about the new programming model, make sure to select the "v2" option at the top of the documentation page. Note that not all the pages have been updated to include v2 documentation yet, but the team is currently working on updating the remaining pages. You can find helpful links to v2 documentation below. - Developer Reference Guide: msft.it/60585dUqi - Triggers & Bindings: msft.it/60595dUqc - Getting Started in VS Code: msft.it/60505dUqY - Getting Started in Core Tools: msft.it/60515dUql
@Xavwar
@Xavwar Рік тому
Hi Shreya. should I migrate my code from the v1 model to the v2 model? thanks
@shreyabatra1208
@shreyabatra1208 2 місяці тому
Hi Xavwar, you are welcome to migrate the code from v1 to v2 if you would like to use the new features for the v2 programming model in your development. However, there is no requirement to migrate your code at this time.
@user-jy8qs3lp9i
@user-jy8qs3lp9i 3 місяці тому
I had timeout error very often, how should I do?
@tadastadux
@tadastadux 2 місяці тому
is there a repo and tests avaiable please?
@MicrosoftAzure
@MicrosoftAzure 2 місяці тому
Hello, you can find examples of triggers and binding using the v2 programming model here: msft.it/6051cO5ht 2Cpython-v2&pivots=programming-language-python#supported-bindings
@ingenieroluisfer
@ingenieroluisfer Рік тому
👋🏼🇨🇴🧔🏻👍🏼🤝🏻 Saludos desde Colombia.
@tomlinsoncory
@tomlinsoncory Рік тому
Azure functions are unbelievably frustrating to use which is made worse by very poor documentation and a support team that doesn’t understand the product. I tried to deploy a V2 Python function only to learn there is no support for Durable Functions in the V2 programming model. I love Azure, but this product needs a complete overhaul that includes accurate error reporting. Failing functions that report red herring errors in the logs make it impossible to troubleshoot problems.
@NielsBerglund
@NielsBerglund Рік тому
I hear you! However, it seems that there is now support (limited perhaps) in v2 for durable functions.
@shreyabatra1208
@shreyabatra1208 Рік тому
Hi Cory, I am sorry to hear about your experience with Azure Functions so far. Durable Functions is supported for the v2 programming model, and you can find more information on the official Microsoft docs, and the link is included in the video description with the title "Python V2 model Azure Functions triggers and bindings (preview)". If you do try it out, or if you have additional feedback for the team, we would love to hear from you. You can let the team know your comments directly by clicking the link in the description with the title "V2 Programming Model for Azure Functions using Python" and opening the discussion.
@JosiahWarren
@JosiahWarren Рік тому
You must be kidding. I use azure functions for a year and it works like magic. I was not expecting that to be honest
@JosiahWarren
@JosiahWarren Рік тому
​@@NielsBerglund i use durable functions in production code and the documentation. I had initial problem understqnding that the durable task framework just saves all the state at some checkpoints and then replays the workflow, but after i got that then everything became crystal clear.
@Amivit
@Amivit Рік тому
This is a horrible misrepresentation of what Azure Functions actually are. You need to get some cloud learnings and experience before making a statement like that. Azure Functions are AMAZING and anyone coming from Google Cloud or AWS can quickly acknowledge that. The documentation isn’t perfect but stellar in comparison. Also backed by open source so we can all change what isn’t perfect ;)
@hasaniqbal813
@hasaniqbal813 Рік тому
It’s not very poor, but extremely poor demo, what a shame…
Durable functions in Python for Azure Functions | Azure Friday
18:19
Microsoft Azure
Переглядів 12 тис.
Build serverless APIs with Azure Functions | Azure Friday
16:35
Microsoft Azure
Переглядів 30 тис.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
0% Respect Moments 😥
00:27
LE FOOT EN VIDÉO
Переглядів 37 млн
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Переглядів 81 тис.
Calling external REST endpoints from Azure SQL Database | Azure Friday
22:15
Authoring and deploying Azure resources with Bicep | Azure Friday
35:54
Microsoft Azure
Переглядів 16 тис.
Azure Function Apps Tutorial | Introduction for serverless programming
29:19
Adam Marczak - Azure for Everyone
Переглядів 292 тис.
Automating My Life with Python: The Ultimate Guide | Code With Me
11:26
Tiff In Tech
Переглядів 740 тис.
Managing, reporting, and reducing your costs in Azure | Azure Friday
26:11
Microsoft Azure
Переглядів 11 тис.
Azure Functions for .NET Developers - Everything You Need To Know
1:12:49
Microsoft Azure Developers
Переглядів 4,7 тис.
Какой телефон лучше всего снимает? 🤯
0:42
How Neuralink Works 🧠
0:28
Zack D. Films
Переглядів 24 млн