{"id":3281,"date":"2024-09-07T09:40:33","date_gmt":"2024-09-07T08:40:33","guid":{"rendered":"https:\/\/mortenknudsen.net\/?p=3281"},"modified":"2024-09-07T09:46:52","modified_gmt":"2024-09-07T08:46:52","slug":"no-internet-on-azure-vm-in-new-vnet-subnet","status":"publish","type":"post","link":"https:\/\/mortenknudsen.net\/?p=3281","title":{"rendered":"&#8220;No Internet access&#8221; on Azure VM in new VNET Subnet"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Struggling to get internet access from a newly deployed VM in Azure on a new subnet, then check if VM is connected to a subnet, where &#8220;Enable private subnet (no default outbound access)&#8221; is enabled. This feature is by default Enabled, when new subnets are created on a VNET  &#8211; and it cannot be disabled right now, once it was enabled when subnet was created.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"178\" src=\"https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image.png\" alt=\"\" class=\"wp-image-3282\" srcset=\"https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image.png 838w, https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-300x64.png 300w, https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-768x163.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">On September 30, 2025, default outbound access for new deployments will be retired. For more information, see the\u00a0<a href=\"https:\/\/azure.microsoft.com\/updates\/default-outbound-access-for-vms-in-azure-will-be-retired-transition-to-a-new-method-of-internet-access\/\">official announcement<\/a>.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Private subnet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Private subnets enhance security by not providing default outbound access. To enable outbound connectivity for virtual machines to access the internet, it is necessary to explicitly grant outbound access. A NAT gateway is the recommended way to provide outbound connectivity for virtual machines in the subnet.&nbsp;Learn more<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable private subnet (no default outbound access)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"1024\" src=\"https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-1-878x1024.png\" alt=\"\" class=\"wp-image-3283\" srcset=\"https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-1-878x1024.png 878w, https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-1-257x300.png 257w, https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-1-768x895.png 768w, https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/image-1.png 911w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More info about default outbound access<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/virtual-network\/ip-services\/default-outbound-access\">https:\/\/learn.microsoft.com\/en-us\/azure\/virtual-network\/ip-services\/default-outbound-access<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Struggling to get internet access from a newly deployed VM in Azure on a new subnet, then check if VM &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"&#8220;No Internet access&#8221; on Azure VM in new VNET Subnet\" class=\"read-more button\" href=\"https:\/\/mortenknudsen.net\/?p=3281#more-3281\" aria-label=\"Read more about &#8220;No Internet access&#8221; on Azure VM in new VNET Subnet\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":3284,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-3281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","infinite-scroll-item","resize-featured-image"],"featured_image_src":"https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/2024-09-07_10-19-17.png","author_info":{"display_name":"Morten Knudsen","author_link":"https:\/\/mortenknudsen.net\/?author=1"},"jetpack_featured_media_url":"https:\/\/mortenknudsen.net\/wp-content\/uploads\/2024\/09\/2024-09-07_10-19-17.png","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/posts\/3281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3281"}],"version-history":[{"count":2,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/posts\/3281\/revisions"}],"predecessor-version":[{"id":3287,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/posts\/3281\/revisions\/3287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=\/wp\/v2\/media\/3284"}],"wp:attachment":[{"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mortenknudsen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}