79246580

Date: 2024-12-03 07:14:50
Score: 2
Natty:
Report link

Check below steps to call an Azure Function with Angular app deployed in an Azure App Service.

In API app registration you need to add a scope. enter image description here

In your angular app registration, add API permission that you've created earlier. enter image description here

enter image description here

Thanks to @Pshul for clear explanation, I've referred this doc for the code.

After deploying your angular app to Azure web app, make sure you add the web app URL to app registration. enter image description here

Make sure you enable CORS in your Function app

enter image description here

enter image description here

Please refer this MSdoc for better understanding about adding an Azure Function App as an API in Azure API Management.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Pshul
  • Low reputation (0.5):
Posted by: Sirra Sneha