MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.01k stars 21k forks source link

Need an example where the web api is an Azure Function App. #122259

Open kevinccampbell opened 1 week ago

kevinccampbell commented 1 week ago

Need an example where the web api is an Azure Function App. This is a great example for someone using an express api. There needs to be a duplicate of this that uses an Azure Function app as the web api.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

TPavanBalaji commented 1 week ago

@kevinccampbell Thanks for your feedback! We will investigate and update as appropriate.

PesalaPavan commented 1 week ago

@kevinccampbell Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

kengaderdus commented 1 week ago

@kevinccampbell Thanks for your feedback! Unfortunately, we don't have that exact sample. Checkout the Azure Function to learn whether it's the solution that suits your problem. Or do you want to build your complete API on Azure functions?

kevinccampbell commented 1 week ago

I have already built a standalone function app. I just realized that if I upgrade my static web app to standard and then link my existing function app, it automatically applies authentication to my functions, which is basically what I was looking for. I have also integrated MSAL React into my app and so far everything seems good.