{"id":20,"date":"2020-06-30T15:21:00","date_gmt":"2020-06-30T15:21:00","guid":{"rendered":""},"modified":"2021-10-02T12:05:10","modified_gmt":"2021-10-02T10:05:10","slug":"how-to-ping-in-azure-console","status":"publish","type":"post","link":"http:\/\/panahy.nl\/index.php\/2020\/06\/30\/how-to-ping-in-azure-console\/","title":{"rendered":"How to Ping in Azure Console"},"content":{"rendered":"<p>Source: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/app-service\/web-sites-integrate-with-vnet\">https:\/\/docs.microsoft.com\/en-us\/azure\/app-service\/web-sites-integrate-with-vnet<\/a><\/p>\n<h3 style=\"text-align: left;\">Tools<\/h3>\n<div><span style=\"background-color: white; color: #172b4d; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\">The tools\u00a0<\/span><strong style=\"background-color: white; color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\" data-renderer-mark=\"true\">ping<\/strong><span style=\"background-color: white; color: #172b4d; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\">,\u00a0<\/span><strong style=\"background-color: white; color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\" data-renderer-mark=\"true\">nslookup<\/strong><span style=\"background-color: white; color: #172b4d; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\">, and\u00a0<\/span><strong style=\"background-color: white; color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\" data-renderer-mark=\"true\">tracert<\/strong><span style=\"background-color: white; color: #172b4d; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\">\u00a0won&#8217;t work through the console because of security constraints. To fill the void, two separate tools are added. To test DNS functionality, we added a tool named\u00a0<\/span><strong style=\"background-color: white; color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\" data-renderer-mark=\"true\">nameresolver.exe<\/strong><span style=\"background-color: white; color: #172b4d; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\">. The syntax is:<\/span><\/div>\n<div><span style=\"background-color: white; color: #172b4d; font-size: 16px; letter-spacing: -0.08px; white-space: pre-wrap;\">\u00a0<\/span><\/div>\n<div><span style=\"background-color: #f4f5f7; color: #172b4d; font-family: SFMono-Medium, 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace; font-size: 14px; white-space: pre;\">nameresolver.exe hostname [optional: DNS Server]<\/span><\/div>\n<div><\/div>\n<div>\n<p style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px;\" data-renderer-start-pos=\"381\">You can use nameresolver to check the hostnames that your app depends on. This way you can test if you have anything misconfigured with your DNS or perhaps don&#8217;t have access to your DNS server. You can see the DNS server that your app uses in the console by looking at the environmental variables WEBSITE_DNS_SERVER and WEBSITE_DNS_ALT_SERVER.<\/p>\n<p style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px;\" data-renderer-start-pos=\"726\">You can use the next tool to test for TCP connectivity to a host and port combination. This tool is called\u00a0<strong data-renderer-mark=\"true\">tcpping<\/strong>\u00a0and the syntax is:<\/p>\n<p style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px;\" data-renderer-start-pos=\"726\"><span style=\"background-color: #f4f5f7; font-family: SFMono-Medium, 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace; font-size: 14px; letter-spacing: normal; white-space: pre;\">tcpping.exe hostname [optional: port]<\/span><\/p>\n<p style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px;\" data-renderer-start-pos=\"900\">The\u00a0<strong data-renderer-mark=\"true\">tcpping<\/strong>\u00a0utility tells you if you can reach a specific host and port. It can show success only if there&#8217;s an application listening at the host and port combination, and there&#8217;s network access from your app to the specified host and port.<\/p>\n<p style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px;\" data-renderer-start-pos=\"1142\">Additional debug steps include:<\/p>\n<ul style=\"box-sizing: border-box; display: flow-root; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, 'Droid Sans', 'Helvetica Neue', sans-serif; letter-spacing: normal; margin: 12px 0px 0px; padding: 0px 0px 0px 24px;\" data-indent-level=\"1\">\n<li>\n<p style=\"font-size: 1em; letter-spacing: -0.005em; line-height: 1.714; margin: 0px; padding: 0px;\" data-renderer-start-pos=\"1177\">Connect to a VM in your virtual network and attempt to reach your resource host:port from there. To test for TCP access, use the PowerShell command\u00a0<strong data-renderer-mark=\"true\">test-netconnection<\/strong>. The syntax is:<\/p>\n<div style=\"clear: both; display: grid; grid-template-columns: minmax(0px, 1fr); margin: 0.75rem 0px 0px; max-width: 100%; overflow-wrap: normal; padding: 0px; position: relative;\">\n<div style=\"margin: 0px; padding: 0px;\">\n<div style=\"margin: 0px; padding: 0px;\"><\/div>\n<\/div>\n<p><span style=\"background: #f4f5f7; border-radius: 3px; display: flex; font-size: 12px; grid-column: 1 \/ auto; line-height: 1.66667; overflow-x: auto; white-space: pre;\"><code style=\"background-color: #ebecf0; color: #8993a4; flex-shrink: 0; font-family: SFMono-Medium, 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace; font-size: 14px; line-height: 1.42857; padding: 8px; text-align: right; user-select: none;\"><span style=\"opacity: 1;\">1 <\/span><\/code><code style=\"font-family: SFMono-Medium, 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace; line-height: 1.66667; padding: 8px;\">test-netconnection hostname [optional: -Port]<\/code><\/span><\/p>\n<\/div>\n<\/li>\n<li style=\"margin-top: 4px;\">\n<p style=\"font-size: 1em; letter-spacing: -0.005em; line-height: 1.714; margin: 0px; padding: 0px;\" data-renderer-start-pos=\"1410\">Bring up an application on a VM and test access to that host and port from the console from your app by using\u00a0<strong data-renderer-mark=\"true\">tcpping<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/docs.microsoft.com\/en-us\/azure\/app-service\/web-sites-integrate-with-vnet Tools The tools\u00a0ping,\u00a0nslookup, and\u00a0tracert\u00a0won&#8217;t work through the console because of security constraints. To fill the void, two separate tools are added. To test DNS functionality, we added a tool named\u00a0nameresolver.exe. The syntax is: \u00a0 nameresolver.exe hostname [optional: DNS Server] You can use nameresolver to check the hostnames that your app depends on. This &hellip; <a href=\"http:\/\/panahy.nl\/index.php\/2020\/06\/30\/how-to-ping-in-azure-console\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Ping in Azure Console&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,17,16,6],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Pouya Panahy","author_link":"http:\/\/panahy.nl\/index.php\/author\/pouya\/"},"uagb_comment_info":0,"uagb_excerpt":"Source: https:\/\/docs.microsoft.com\/en-us\/azure\/app-service\/web-sites-integrate-with-vnet Tools The tools\u00a0ping,\u00a0nslookup, and\u00a0tracert\u00a0won&#8217;t work through the console because of security constraints. To fill the void, two separate tools are added. To test DNS functionality, we added a tool named\u00a0nameresolver.exe. The syntax is: \u00a0 nameresolver.exe hostname [optional: DNS Server] You can use nameresolver to check the hostnames that your app depends on. This&hellip;","_links":{"self":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":4,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":198,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions\/198"}],"wp:attachment":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}