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
299 views
in Technique[技术] by (71.8m points)

Azure Application Gateway Redirection exclusion for specific IPs?

i'm wondering if it's possible to configure a redirection on the Application Gateway and exclude an IP range from it.

Let's say i have a website configured and i'm currently running a maintenance tasks. So i'll configure a redirection on the application to my maintenance site. But after the maintenance is finished i want to check first if everything is fine before removing the temporary redirection. So for example my IP should be able to access the "real" website and all other requests are still forwarded to the maintenance page. Is this maybe possible with the traffic manager?

I haven't found anything really helpful untill now. Has someone an idea how this might be possible to configure?

question from:https://stackoverflow.com/questions/65903118/azure-application-gateway-redirection-exclusion-for-specific-ips

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

1 Reply

0 votes
by (71.8m points)

Redirection based on specific IPs is not possible using the application gateway as far as I'm aware. But this feature is available with Azure APIM, and this is exactly the type of scenario were APIM is useful. You can set your Back-end service URL based on specific conditions (including IP filters). see link https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#SetBackendService

For a full list of APIM polices : https://docs.microsoft.com/en-us/azure/api-management/api-management-policies


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

...