Deploying the API to Azure Function App
Deploy the API to Azure Function app and monitor it using Azure Application Insights.
We'll cover the following...
We'll cover the following...
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:
az login --use-device-code
- Now, set the context of Azure CLI to our desired subscription using the following command:
az account set -s $subscriptionId
And now, run the following commands to publish the Function app:
cd usercodefunc azure functionapp publish $functionApp --force
And in a few minutes, our image describer API will be published in the URL below:
https://<function-app-name>.azurewebsites.net/api/imagedescriberapi
Note: Copy the ...