question

MITRADebarthaGECoreTechCyber-2843 avatar image
0 Votes"
MITRADebarthaGECoreTechCyber-2843 asked ·

How to call an azure web app externally?

Hi,
I have made an azure web app which sends email to outlook.
So, In the email html body there will be one hyperlink which will call another azure web app.
How to configure that in the hyperlink and call another azure web app ?
FYI, The azure web app is written in python flask.

Any suggestion will help.

Thanks in advance.

azure-webappsazure-api-management
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

let me know for any suggestion

0 Votes 0 ·

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ·

Hi @MITRADebarthaGECoreTechCyber-2843,


There's nothing to it my friend. I'm not sure if you flask app is the email app itself or if it's sending the request, but it really doesn't matter. What you would do though is create an endpoint on your email generator app that will respond to HTTP request, a post. Something like


 @app.route('/send',methods = ['POST'])
 def login():
    mailbody = request.form['body']
    // send email 
    return 200

and from your other app, you would simple send an HTTP POST request to https://youemailapp.azurewebsites.net/send.


Let me know if that helps or if you have any blockers.


· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your reply, actually the email flask app is working fine. I have query with the other flask app. My requirement is that there will be an email body which will contain a hyperlink. If, user clicks on that link it will call azure web app. So, my question is now that can I make that azure web app accessible by simply providing the App URL similar to "https://<appname>.azurewebsites.net" in the hyperlink ? or i need to configure it in any other way ?
Thanks in advance

0 Votes 0 ·
ryanchill avatar image ryanchill MITRADebarthaGECoreTechCyber-2843 ·

Correct, all you need to do provide the link to your other web app https://<yourotherapp>.azurewebsites.net.

0 Votes 0 ·

thank you.. can you please help me in this question as well. I dont know how to achieve this one https://docs.microsoft.com/en-us/answers/questions/37657/how-will-i-use-host-html-on-azure-web-app-and-use.html

1 Vote 1 ·