{"id":73,"date":"2015-03-16T08:17:00","date_gmt":"2015-03-16T08:17:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/azuregov\/2015\/03\/16\/connect-visual-studio-to-ms-azure-government\/"},"modified":"2015-03-16T08:17:00","modified_gmt":"2015-03-16T08:17:00","slug":"connect-visual-studio-to-ms-azure-government","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azuregov\/connect-visual-studio-to-ms-azure-government\/","title":{"rendered":"Connect Visual Studio to MS Azure Government"},"content":{"rendered":"<p><em>Update: <\/em><\/p>\n<p><i>For the latest documentation on <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-government\/documentation-government-get-started-connect-with-vs\">connecting via Visual Studio<\/a><\/i><em>.\u00a0<\/em><\/p>\n<p><em>Check out the <a href=\"https:\/\/blogs.msdn.microsoft.com\/azuregov\/2017\/04\/05\/introducing-the-azure-environment-selector-visual-studio-extension\/\">Azure Environment Selector for VS 2017<\/a>!<\/em><\/p>\n<p>The Visual Studio (VS) IDE is a powerful development tool. Coupled with the massive list of development tools it provides, Visual Studio also allows servers to be managed.\u00a0 This capability provides an end-to-end development and test experience, with the power to provision infrastructure and services at the fingertips of the developer.<\/p>\n<p>MS Azure Government (MAG) is a completely isolated environment and as such requires\u00a0unique Azure endpoints in order to mange\u00a0the services offered there. MAG requires a management certificate to authenticate requests to the service management API behind the scenes in VS. The <strong>Publish Settings File<\/strong> contains both the unique endpoints and the management certificate. The following steps are similar across the various flavors of VS 2012, VS 2013 Community, and VS 2015 Preview.<\/p>\n<ol>\n<li>Open the<strong> Management Portal<\/strong> for MS Azure Government and download the <strong>Publish Settings File<\/strong> for your subscription.\n<ol>\n<li>Link: <a href=\"https:\/\/manage.windowsazure.us\/publishsettings\/index\">https:\/\/manage.windowsazure.us\/publishsettings\/index<\/a><\/li>\n<\/ol>\n<\/li>\n<li>Once your <strong>Publish Settings File<\/strong> is downloaded, in Visual Studio, right click on the <strong>Server Explorer<\/strong> and select <strong>Manage Subscriptions<\/strong>.\n<ol>\n<li>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" width=\"340\" height=\"252\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/5670.2image.jpg\" border=\"0\" \/><\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>Navigate to the <strong>Certificates<\/strong> T<strong>ab<\/strong> and click the <strong>Import Button<\/strong>.\n<ol>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/7563.3image.jpg\"><img decoding=\"async\" width=\"378\" height=\"263\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/7563.3image.jpg\" border=\"0\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>In the <strong>Import Microsoft Azure Subscriptions<\/strong> D<strong>ialog<\/strong>, browse to the location on disk where you saved the<strong> Publish Settings File<\/strong> in Step 1 and click the <strong>Import<\/strong> B<strong>utton<\/strong>.\n<ol>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/1817.4image.jpg\"><img decoding=\"async\" width=\"424\" height=\"183\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/1817.4image.jpg\" border=\"0\" \/><\/a><\/li>\n<li>NOTE: The publish settings file provides the management endpoint for each subscription (in a property called the ServiceManagementUrl)<\/li>\n<\/ol>\n<\/li>\n<li>Verify that the MS Azure Government Regions populate on the <strong>Regions Tab<\/strong>\n<ol>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/3527.5image.jpg\"><img decoding=\"async\" width=\"417\" height=\"214\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/43\/2019\/03\/3527.5image.jpg\" border=\"0\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Well, that&#8217;s it.\u00a0\u00a0Happy provisioning your Azure Government\u00a0infrastructure and services via the Visual Studio IDE!<\/p>\n<p>Steve K.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: For the latest documentation on connecting via Visual Studio.\u00a0 Check out the Azure Environment Selector for VS 2017! The Visual Studio (VS) IDE is a powerful development tool. Coupled with the massive list of development tools it provides, Visual Studio also allows servers to be managed.\u00a0 This capability provides an end-to-end development and test [&hellip;]<\/p>\n","protected":false},"author":1756,"featured_media":20423,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[75,95,316,345,353,583],"class_list":["post-73","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azuregov","tag-azure","tag-azure-government","tag-government-cloud","tag-ide","tag-integration","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>Update: For the latest documentation on connecting via Visual Studio.\u00a0 Check out the Azure Environment Selector for VS 2017! The Visual Studio (VS) IDE is a powerful development tool. Coupled with the massive list of development tools it provides, Visual Studio also allows servers to be managed.\u00a0 This capability provides an end-to-end development and test [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/users\/1756"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/media\/20423"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azuregov\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}