{"id":251823,"date":"2024-12-23T05:00:24","date_gmt":"2024-12-23T13:00:24","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=251823"},"modified":"2024-12-16T12:06:43","modified_gmt":"2024-12-16T20:06:43","slug":"security-updates-to-azure-publishing-from-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/security-updates-to-azure-publishing-from-visual-studio\/","title":{"rendered":"Security updates to Azure publishing from Visual Studio"},"content":{"rendered":"<p>Visual Studio 2022 introduces a new feature to improve the security of publishing applications to Azure App Service. This feature is designed to disable Basic Authentication and enable integrated security for a more secure publishing process.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251824\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/word-image-251823-1.png\" alt=\"Disabling basic Auth\" width=\"1200\" height=\"480\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/word-image-251823-1.png 1200w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/word-image-251823-1-300x120.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/word-image-251823-1-1024x410.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/word-image-251823-1-768x307.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>Basic Authentication has been identified as a less secure method for managing app deployments. Visual Studio 2022 addresses this issue by offering you an option to disable Basic Authentication, which enhances security by using integrated authentication.<\/p>\n<h2>The problem with Basic Authentication<\/h2>\n<p>Basic Authentication involves sending user credentials in a format that is not highly secure, making it vulnerable to interception. This poses a risk to the integrity of applications.<\/p>\n<h2>Secure publishing with integrated authentication<\/h2>\n<p>The new feature in Visual Studio 2022 disables Basic Authentication and enables integrated security for publishing to Azure App Service. This ensures that publishing credentials is handled securely, reducing the risks associated with Basic Authentication.<\/p>\n<p>When publishing to an Azure App Service that has Basic Authentication enabled (which is <strong>not<\/strong> recommended), users will see the <strong>Turn on Basic Authentication<\/strong> option, and it will be unchecked by default. Customers who need to retain Basic Authentication can check the box, but given the recommendation is to disable Basic Authentication it\u2019s unchecked by default, so you <strong>start<\/strong> secure if this is the first time you\u2019re publishing or, you <strong>get<\/strong> secure once you go through the publishing process after you update Visual Studio.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251825\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica.png\" alt=\"publishing a new app service (basic auth available)\" width=\"804\" height=\"564\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica.png 804w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica-300x210.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica-768x539.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>If you\u2019ve created the Web App recently via the portal or this or any future version of Visual Studio, Basic Authentication will be disabled by default. For any Web App that\u2019s already got Basic Authentication disabled, we circumvent inadvertently making the Web App less secure by disabling the checkbox altogether, so you <strong>stay<\/strong> secure.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251826\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica-1.png\" alt=\"publishing a new app service (basic auth not available)\" width=\"804\" height=\"564\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica-1.png 804w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica-1-300x210.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/12\/a-screenshot-of-a-computer-description-automatica-1-768x539.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>This feature improves the overall security of the publishing process, ensuring that sensitive credentials are not exposed. It also simplifies the process by defaulting to a more secure option, reducing the need for manual security configurations. If, at any point, you need to re-enable Basic Authentication, this is always possible in the Azure Portal.<\/p>\n<h2>Conclusion<\/h2>\n<p>We deeply appreciate your invaluable feedback, which plays a crucial role in enhancing Visual Studio. Thank you for being a vital part of our community.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2022 introduces a new feature to improve the security of publishing applications to Azure App Service. This feature is designed to disable Basic Authentication and enable integrated security for a more secure publishing process. Basic Authentication has been identified as a less secure method for managing app deployments. Visual Studio 2022 addresses this [&hellip;]<\/p>\n","protected":false},"author":2046,"featured_media":251824,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6903,6869,1412,155],"tags":[6589,380],"class_list":["post-251823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administration","category-reliability","category-development","category-visual-studio","tag-authentication","tag-azure-app-services"],"acf":[],"blog_post_summary":"<p>Visual Studio 2022 introduces a new feature to improve the security of publishing applications to Azure App Service. This feature is designed to disable Basic Authentication and enable integrated security for a more secure publishing process. Basic Authentication has been identified as a less secure method for managing app deployments. Visual Studio 2022 addresses this [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/251823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/2046"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=251823"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/251823\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/251824"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=251823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=251823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=251823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}