Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
508 views
in Technique[技术] by (71.8m points)

How to assign a static public IP to Azure Function

I want to call an HTTP trigger of an Azure function by sending a post request to a static IP. This restriction comes from the fact that I bought a tracker where I can only set an IP and nothing else. It sends http POST requests to the given IP with a bytestream as load every five minutes.

I tried to configure an Azure Gateway and I also tried with an Azure Webapp. I assume it is possible with both but I don't know how and I am clicking everywhere in the Azure UI without success. I was wondering if I am missing a straight forward way to do it. I hope it is not to vague of a question.

question from:https://stackoverflow.com/questions/65938688/how-to-assign-a-static-public-ip-to-azure-function

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Deploying an Azure function in an App Service Environment is currently the only way to have a static inbound and outbound IP for your function.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-faq#how-do-i-set-a-static-ip-in-functions

https://docs.microsoft.com/en-us/azure/azure-functions/ip-addresses#dedicated-ip-addresses

Yes, the Application Gateway v2 SKU supports static public IP addresses.

https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-faq#does-application-gateway-support-static-ip

You can choose Application Gateway Dynamic or Static IP during the resource creation. enter image description here https://docs.microsoft.com/en-us/azure/application-gateway/quick-create-portal


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...