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

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • 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
  • Věda a technologie

Komentáře • 23

  • @databach6024
    @databach6024 Před rokem +3

    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 ?

  • @the_gask6070
    @the_gask6070 Před rokem +1

    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  Před rokem

      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

  • @prathibha_sangamalla
    @prathibha_sangamalla Před rokem

    Can you please do a video on how to change the video formats in the azure blob itself.

  • @Xavwar
    @Xavwar Před rokem

    Hi Shreya. should I migrate my code from the v1 model to the v2 model?
    thanks

    • @shreyabatra1208
      @shreyabatra1208 Před 4 měsíci

      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.

  • @Amivit
    @Amivit Před rokem

    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  Před rokem

      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.

  • @user-jy8qs3lp9i
    @user-jy8qs3lp9i Před 4 měsíci

    I had timeout error very often, how should I do?

  • @tadastadux
    @tadastadux Před 4 měsíci

    is there a repo and tests avaiable please?

    • @MicrosoftAzure
      @MicrosoftAzure  Před 4 měsíci +1

      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 Před rokem

    👋🏼🇨🇴🧔🏻👍🏼🤝🏻 Saludos desde Colombia.

  • @tomlinsoncory
    @tomlinsoncory Před rokem +10

    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 Před rokem

      I hear you! However, it seems that there is now support (limited perhaps) in v2 for durable functions.

    • @shreyabatra1208
      @shreyabatra1208 Před rokem +1

      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 Před rokem

      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 Před rokem

      ​@@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 Před rokem

      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 Před rokem +2

    It’s not very poor, but extremely poor demo, what a shame…

  • @SarahTran1240
    @SarahTran1240 Před 25 dny

    This demo does not really follow a logic to deploy a function and it made the audience found difficult to understand.