{"id":775,"date":"2024-02-13T07:53:58","date_gmt":"2024-02-13T06:53:58","guid":{"rendered":"https:\/\/www.server1.dk\/?p=775"},"modified":"2024-02-13T07:54:50","modified_gmt":"2024-02-13T06:54:50","slug":"force-all-outbound-traffic-from-azure-function-trough-firewall","status":"publish","type":"post","link":"http:\/\/www.server1.dk\/?p=775","title":{"rendered":"Force all outbound traffic from Azure Function trough Firewall"},"content":{"rendered":"\n<p>I assume that you have a HUB\/Spoke design where there is a route table, that has a default route that points all traffic to the Firewall in the hub.<\/p>\n\n\n\n<p>On the Function App you deploy in a spoke, you need to configure outbound network integration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"239\" height=\"70\" src=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image.png\" alt=\"\" class=\"wp-image-776\"\/><\/a><\/figure>\n\n\n\n<p>It is important to enable: &#8220;Outbound internet traffic&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"722\" src=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-1.png\" alt=\"\" class=\"wp-image-777\" srcset=\"http:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-1.png 564w, http:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-1-234x300.png 234w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/a><\/figure>\n\n\n\n<p>The configuration on the Function App needs the setting: &#8220;vnetRouteAllEnabled&#8221; = 1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"346\" src=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-2.png\" alt=\"\" class=\"wp-image-778\" srcset=\"http:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-2.png 645w, http:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-2-300x161.png 300w, http:\/\/www.server1.dk\/wp-content\/uploads\/2024\/02\/image-2-500x268.png 500w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I assume that you have a HUB\/Spoke design where there is a route table, that has a default route that points all traffic to the Firewall in the hub. On the Function App you deploy in a spoke, you need &hellip; <a href=\"http:\/\/www.server1.dk\/?p=775\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[72,141,140,142],"class_list":["post-775","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-azure","tag-azure-app-service","tag-azure-function","tag-azure-network"],"_links":{"self":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=775"}],"version-history":[{"count":2,"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/775\/revisions"}],"predecessor-version":[{"id":780,"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/775\/revisions\/780"}],"wp:attachment":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=775"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}