Search⌘ K

Deploying the API to Azure Function App

Deploy the API to Azure Function app and monitor it using Azure Application Insights.

Deploying our API

  • First of all, run the application given below, then open a new terminal by clicking “+” and enter the following command to sign in to Microsoft Azure:
Shell
az login --use-device-code
  • Now, set the context of Azure CLI to our desired subscription using the following command:
Shell
az account set -s $subscriptionId
  • And now, run the following commands to publish the Function app:

Shell
cd usercode
func azure functionapp publish $functionApp --force

And in a few minutes, our image describer API will be published in the URL below:

Shell
https://<function-app-name>.azurewebsites.net/api/imagedescriberapi

Note: Copy the ...