Blog Directory logo  Blog Directory
  •  Login
  • Register
  • Submit a Blog in Featured for only $10 with PaypalFeatured BlogsBlog Listing
    Member - { Blog Details }

    hero image

    blog address: https://www.techmobius.com/technical-blog/methods-and-steps-to-deploy-azurefunction-app-on-azure-portal/

    keywords:

    member since: Sep 12, 2023 | Viewed: 419

    Methods And Steps To Deploy Microsoft Azure Function App On Azure

    Category: Business

    How to create a function app and get it running locally? Let’s start with creating a sample function app which does OCR of an image and returns the content. Before we start, install Azure functions core tools and Azure CLI. Step 1: Run the following command to create a local function app project called OcrTestFunctionProj.The –docker option will generate a Dockerfile that we can edit to install custom libraries and dependencies in the Azure functions app where the container will be deployed. func init OcrTestFunctionProj –worker-runtime python –docker Step 2: Navigate into the OcrTestFunctionProj folder and edit the Dockerfile to look like this: Step 3: Add a function to the project using the following command. The –name option specifies a unique name for the function and –template specifies the trigger. In out case we want our function to run in response to an HTTP Trigger. func new –name HttpOcrFunc –template ‘HTTP trigger’ Step 4: Add a requirements.txt file inside the project file and add pytesseract and pillow so these are automatically installed once we take it for deployment. Step 5: Test the new function by running the following command the project root folder. func start Navigate to the HttpOcrfunc endpoint URL in the terminal output and if there is a response with “This HTTP trigger function executed successfully…”, then we are all set go. Step 6: Edit the OcrTestFunctionProj/HttpOcrFunc/__init__.py file and add the following code. Step 7: Save this file and run the func start command again, we can see the ocr output on the screen. This is how a function app is created and is running locally. Next we will have to get it running on the cloud. How to deploy your created function app on azure portal? Check the following before you move forward: Do you have an azure portal account, if not create one. Do you have a Docker hub account, if not create one. Docker hub Account creation Docker hub ( https://hub.docker.com/ )account creation is pretty straight forward like any other website, sign up with a username, email ID and Password. After creation remember the docker ID (username) to access the files inside the hub.



    { More Related Blogs }
    © 2025, Blog Directory
     | 
    Google Pagerank: 
    PRchecker.info
     | 
    Support
               Submit a Blog
               Submit a Blog
    Best Astrologer in Munirabad Project Area | Genuine

    Business

    Best Astrologer in Munirabad P...


    Dec 22, 2022
    Home Health Aide Attendant Audrain County

    Business

    Home Health Aide Attendant Aud...


    Oct 16, 2022
    Best Astrologer in Holalkere | Genuine Astrologer

    Business

    Best Astrologer in Holalkere |...


    Dec 20, 2022
    How to Generate 3x More Leads and Optimize for Organic Revenue With SEO?

    Business

    How to Generate 3x More Leads ...


    Apr 23, 2021
    Top HR Application Software Bahrain

    Business

    Top HR Application Software Ba...


    Jun 28, 2024
    Bridging the Talent Gap : Strategies for Overcoming the Skills Mismatch in Hiring

    Business

    Bridging the Talent Gap : Stra...


    May 16, 2024