DEPLOY AZURE LOCATION FUNCTION AT AZURE FUNCTION APP

upload and run the function in Azure

 

1. CREATE A FUNCTION APP AT AZURE

  • Lets create a function at Azure, search and go to Function app in Azure

  • Click Create and choose Plan ‘Consumption ’
  • Configure our Function App as
    • Select Resource Group from drop down
    • that name of a function app should be unique across Azure
  • Click Next Storage
    • Configure the storage account that will be used for the function.
    • Every function app requires a storage account to store the function and its parameters.
    • Give a unique name and click Review + Create button
  • Click Create
    • Azure is creating a function up for us and let's wait for that to complete the deployment.
    • Click Go to Resource once complete
  • Cross Check
    • click App Service Plan to heck the plan we chooses earlier
    • click properties under settings. 

 

 

2. Deploy our local functions to this function App

 

 

Can see your local functions using azure extension Tab > Workspace

 

Deploy your local function at function App in Azure

  • select your function want to deploy
  • Right click on “Azure functions” button and click "Deploy to Azure" Options
  • select the function where you want to deploy “deepakorderfunction”
  • Click deploy in following confirmation box
  • First it build and then deploy
  • At the end it show pop. select “Upload Settings”
    • basically uploads the contents of the local settings file to the function app.
  • Now we have our functions deployed in the function app.

 

 

3. Cross check deployment at Azure App

  • On Function App at Azure click refresh
  • we can see our both functions in function app

 


4. TEST AZURE FUNCTION AT FUNCTION APP

Open Function detail page (clicking specific function name at azure)

 

Set log type on detail page

 

click button

At this movement no auth is attached with either url so copy first url and use same at postman and click send

It show successfully hit

 

you can see log at azure on function detail page

 


Related Question