Skip to content

Commit a5618df

Browse files
authored
Merge pull request #285358 from sdwheeler/sdw-w300629-faq-dns
Add FAQ for supporting Private DNS
2 parents 1a8d8ba + 0bff08c commit a5618df

File tree

3 files changed

+65
-2
lines changed

3 files changed

+65
-2
lines changed

articles/cloud-shell/faq-troubleshooting.md

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: This article answers common questions and explains how to troubleshoot Cloud Shell issues.
33
ms.contributor: jahelmic
4-
ms.date: 08/14/2024
4+
ms.date: 08/22/2024
55
ms.topic: troubleshooting
66
tags: azure-resource-manager
77
ms.custom: has-azure-ad-ps-ref
@@ -119,6 +119,65 @@ command that requires elevated permissions.
119119
- `*.console.azure.com`
120120
- `*.servicebus.windows.net`
121121

122+
### Accessing Cloud Shell from VNET Isolation with a Private DNS Zone - Failed to request a terminal
123+
124+
- **Details**: Cloud Shell uses Azure Relay for terminal connections. Cloud Shell can fail to
125+
request a terminal due to DNS resolution problems. This failure can be caused when you launch a
126+
nonisolated Cloud Shell session from within a VNet-isolated environment that includes a private
127+
DNS Zone for the servicebus domain.
128+
129+
- **Resolution**: There are two ways to resolve this problem. You can follow the instructions in
130+
[Deploy Cloud Shell in a virtual network][01]. Or, you can add a DNS record for the Azure Relay
131+
instance that Cloud Shell uses.
132+
133+
The following steps show you how to identify the DNS name of the Cloud Shell instance and how to
134+
create a DNS record for that name.
135+
136+
1. Try to start Cloud Shell using your web browser. Use the browser's Developer Tools to find the
137+
Azure Relay instance name. In Microsoft Edge or Google Chrome, hit the <kbd>F12</kbd> key to
138+
open the Developer Tools. Select the **Network** tab. Find the **Search** box in the top right
139+
corner. Search for `terminals?` to find the request for a Cloud Shell terminal. Select the one
140+
of the request entries found by the search. In the **Headers** tab, find the hostname in the
141+
**Request URL**. The name is similar to
142+
`ccon-prod-<region-name>-aci-XX.servicebus.windows.net`.
143+
144+
The following screenshot shows the Developer Tools in Microsoft Edge for a successful request
145+
for a terminal. The hostname is `ccon-prod-southcentalus-aci-02.servicebus.windows.net`. In
146+
your case, the request should be unsuccessful, but you can find the hostname you need to
147+
resolve.
148+
149+
[![Screenshot of the browser developer tools.](media/faq-troubleshooting/devtools-small.png)](media/faq-troubleshooting/devtools-large.png#lightbox)
150+
151+
1. From a host outside of your private network, run the `nslookup` command to find the IP address
152+
of the hostname as found in the previous step.
153+
154+
```bash
155+
nslookup ccon-prod-southcentalus-aci-02.servicebus.windows.net
156+
```
157+
158+
The results should look similar to the following example:
159+
160+
```Output
161+
Server: 168.63.129.16
162+
Address: 168.63.129.16#53
163+
164+
Non-authoritative answer:
165+
ccon-prod-southcentralus-aci-02.servicebus.windows.net canonical name = ns-sb2-prod-sn3-012.cloudapp.net.
166+
Name: ns-sb2-prod-sn3-012.cloudapp.net
167+
Address: 40.84.152.91
168+
```
169+
170+
1. Add an A record for the public IP in the Private DNS Zone of the VNET isolated setup. For this
171+
example, the DNS record would have the following properties:
172+
173+
- Name: ccon-prod-southcentralus-aci-02
174+
- Type: A
175+
- TTL: 1 hour
176+
- IP Address: 40.84.152.91
177+
178+
For more information about creating DNS records in a private DNS zone, see
179+
[Manage DNS record sets and records with Azure DNS][02].
180+
122181
## Managing Cloud Shell
123182

124183
### Manage personal data
@@ -168,4 +227,8 @@ Use the following steps to delete your user settings.
168227
entry point is `ux.console.azure.us`; there's no corresponding `shell.azure.us`.
169228
- **Resolution**: Restrict access to `ux.console.azure.com` or `ux.console.azure.us` from your
170229
network. The Cloud Shell icon still exists in the Azure portal, but you can't connect to the
171-
service.
230+
service.
231+
232+
<!-- link references -->
233+
[01]: /azure/cloud-shell/vnet/overview
234+
[02]: /azure/dns/dns-operations-recordsets-portal
56.8 KB
Loading
86.8 KB
Loading

0 commit comments

Comments
 (0)