Skip to content

Commit 219cbac

Browse files
Merge pull request #275755 from Blackmist/ssh-private-ip
Ssh private ip
2 parents c931590 + 1ad1d8b commit 219cbac

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

articles/ai-studio/how-to/configure-private-link.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ If you need to configure custom DNS server without DNS forwarding, use the follo
271271
> * Compute instances can be accessed only from within the virtual network.
272272
> * The IP address for this FQDN is **not** the IP of the compute instance. Instead, use the private IP address of the workspace private endpoint (the IP of the `*.api.azureml.ms` entries.)
273273
274+
* `<instance-name>.<region>.instances.azureml.ms` - Only used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network. Not needed if you are not using a managed network or SSH connections.
275+
274276
* `<managed online endpoint name>.<region>.inference.ml.azure.com` - Used by managed online endpoints
275277

276278
To find the private IP addresses for your A records, see the [Azure Machine Learning custom DNS](../../machine-learning/how-to-custom-dns.md#find-the-ip-addresses) article.

articles/machine-learning/how-to-access-terminal.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ To access the terminal:
3737
:::image type="content" source="media/how-to-use-terminal/open-terminal-window.png" alt-text="Open terminal window":::
3838

3939
1. When a compute instance is running, the terminal window for that compute instance appears.
40-
1. When no compute instance is running, use the **Compute** section on the right to start or create a compute instance.
40+
1. When no compute instance is running, use the **Compute** section to start or create a compute instance.
4141
:::image type="content" source="media/how-to-use-terminal/start-or-create-compute.png" alt-text="Start or create a compute instance":::
4242

43-
In addition to the steps above, you can also access the terminal from:
43+
In addition to the previous steps, you can also access the terminal from:
4444

4545
* RStudio or Posit Workbench (formerly RStudio Workbench) (See [Add custom applications such as RStudio or Posit Workbench)](how-to-create-compute-instance.md?tabs=python#add-custom-applications-such-as-rstudio-or-posit-workbench)): Select the **Terminal** tab on top left.
4646
* Jupyter Lab: Select the **Terminal** tile under the **Other** heading in the Launcher tab.
4747
* Jupyter: Select **New>Terminal** on top right in the Files tab.
48-
* SSH to the machine, if you enabled SSH access when the compute instance was created.
48+
* SSH to the machine, if you enabled SSH access when the compute instance was created. If the compute instance is in a managed virtual network and doesn't have a public IP address, use the `az ml compute connect-ssh` command to connect to the compute instance.
4949

5050
## Copy and paste in the terminal
5151

@@ -55,7 +55,7 @@ In addition to the steps above, you can also access the terminal from:
5555
5656
## <a name=git></a> Use files from Git and version files
5757

58-
Access all Git operations from the terminal. All Git files and folders will be stored in your workspace file system. This storage allows you to use these files from any compute instance in your workspace.
58+
Access all Git operations from the terminal. All Git files and folders are stored in your workspace file system. This storage allows you to use these files from any compute instance in your workspace.
5959

6060
> [!NOTE]
6161
> Add your files and folders anywhere under the **~/cloudfiles/code/Users** folder so they will be visible in all your Jupyter environments.
@@ -64,7 +64,7 @@ To integrate Git with your Azure Machine Learning workspace, see [Git integrati
6464

6565
## Install packages
6666

67-
Install packages from a terminal window. Install packages into the kernel that you want to use to run your notebooks. The default kernel is **python310-sdkv2**.
67+
Install packages from a terminal window. Install packages into the kernel that you want to use to run your notebooks. The default kernel is **python310-sdkv2**.
6868

6969
Or you can install packages directly in Jupyter Notebook, RStudio, or Posit Workbench (formerly RStudio Workbench):
7070

@@ -81,13 +81,13 @@ Or you can install packages directly in Jupyter Notebook, RStudio, or Posit Work
8181
8282
To add a new Jupyter kernel to the compute instance:
8383

84-
1. Use the terminal window to create a new environment. For example, the code below creates `newenv`:
84+
1. Use the terminal window to create a new environment. For example, the following command creates `newenv`:
8585

8686
```shell
8787
conda create --name newenv
8888
```
8989

90-
1. Activate the environment. For example, after creating `newenv`:
90+
1. Activate the environment. For example, after creating `newenv`:
9191

9292
```shell
9393
conda activate newenv
@@ -105,13 +105,13 @@ Any of the [available Jupyter Kernels](https://github.com/jupyter/jupyter/wiki/J
105105

106106
To add a new R kernel to the compute instance:
107107

108-
1. Use the terminal window to create a new environment. For example, the code below creates `r_env`:
108+
1. Use the terminal window to create a new environment. For example, the following command creates `r_env`:
109109

110110
```shell
111111
conda create -n r_env r-essentials r-base
112112
```
113113

114-
1. Activate the environment. For example, after creating `r_env`:
114+
1. Activate the environment. For example, after creating `r_env`:
115115

116116
```shell
117117
conda activate r_env
@@ -135,7 +135,7 @@ To add a new R kernel to the compute instance:
135135
q()
136136
```
137137
138-
It will take a few minutes before the new R kernel is ready to use. If you get an error saying it is invalid, wait and then try again.
138+
It takes a few minutes before the new R kernel is ready to use. If you get an error saying it's invalid, wait and then try again.
139139
140140
For more information about conda, see [Using R language with Anaconda](https://docs.anaconda.com/free/anaconda/packages/using-r-language/). For more information about IRkernel, see [Native R kernel for Jupyter](https://cran.r-project.org/web/packages/IRkernel/readme/README.html).
141141
@@ -144,7 +144,7 @@ For more information about conda, see [Using R language with Anaconda](https://d
144144
> [!WARNING]
145145
> While customizing the compute instance, make sure you do not delete conda environments or jupyter kernels that you didn't create.
146146
147-
To remove an added Jupyter kernel from the compute instance, you must remove the kernelspec, and (optionally) the conda environment. You can also choose to keep the conda environment. You must remove the kernelspec, or your kernel will still be selectable and cause unexpected behavior.
147+
To remove an added Jupyter kernel from the compute instance, you must remove the kernelspec, and (optionally) the conda environment. You can also choose to keep the conda environment. You must remove the kernelspec, or your kernel is still selectable and cause unexpected behavior.
148148
149149
To remove the kernelspec:
150150
@@ -174,11 +174,11 @@ To also remove the conda environment:
174174
conda env remove -n ENV_NAME
175175
```
176176
177-
Upon refresh, the kernel list in your notebooks view should reflect the changes you have made.
177+
Upon refresh, the kernel list in your notebooks view should reflect the changes you made.
178178
179179
## Manage terminal sessions
180180
181-
Terminal sessions can stay active if terminal tabs are not properly closed. Too many active terminal sessions can impact the performance of your compute instance.
181+
Terminal sessions can stay active if terminal tabs aren't properly closed. Too many active terminal sessions can impact the performance of your compute instance.
182182
183183
Select **Manage active sessions** in the terminal toolbar to see a list of all active terminal sessions and shut down the sessions you no longer need.
184184

articles/machine-learning/how-to-custom-dns.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,23 @@ Access to a given Azure Machine Learning workspace via Private Link is done by c
7575
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.azureml.ms```
7676
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.azureml.ms```
7777
- ```<compute instance name>.<region the workspace was created in>.instances.azureml.ms```
78+
- `<compute instance name>-22.<region the workspace was created in>.instances.azureml.ms` - Used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network.
7879
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.notebooks.azure.net```
7980
- ```<managed online endpoint name>.<region>.inference.ml.azure.com``` - Used by managed online endpoints
8081

8182
**Microsoft Azure operated by 21Vianet regions**:
8283
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.ml.azure.cn```
8384
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.ml.azure.cn```
8485
- ```<compute instance name>.<region the workspace was created in>.instances.azureml.cn```
86+
- `<compute instance name>-22.<region the workspace was created in>.instances.azureml.cn` - Used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network.
8587
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.notebooks.chinacloudapi.cn```
8688
- ```<managed online endpoint name>.<region>.inference.ml.azure.cn``` - Used by managed online endpoints
8789

8890
**Azure US Government regions**:
8991
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.ml.azure.us```
9092
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.ml.azure.us```
9193
- ```<compute instance name>.<region the workspace was created in>.instances.azureml.us```
94+
- `<compute instance name>.<region the workspace was created in>.instances.azureml.us` - Used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network.
9295
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.notebooks.usgovcloudapi.net```
9396
- ```<managed online endpoint name>.<region>.inference.ml.azure.us``` - Used by managed online endpoints
9497

@@ -134,7 +137,7 @@ The following list contains the fully qualified domain names (FQDNs) used by you
134137
> [!NOTE]
135138
> * Compute instances can be accessed only from within the virtual network.
136139
> * The IP address for this FQDN is **not** the IP of the compute instance. Instead, use the private IP address of the workspace private endpoint (the IP of the `*.api.azureml.ms` entries.)
137-
140+
* `<instance-name>-22.<region>.instances.azureml.ms` - Only used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network. Not needed if you are not using a managed network or SSH connections.
138141
* `<managed online endpoint name>.<region>.inference.ml.azure.com` - Used by managed online endpoints
139142

140143
#### Microsoft Azure operated by 21Vianet region
@@ -152,6 +155,7 @@ The following FQDNs are for Microsoft Azure operated by 21Vianet regions:
152155

153156
* The IP address for this FQDN is **not** the IP of the compute instance. Instead, use the private IP address of the workspace private endpoint (the IP of the `*.api.azureml.ms` entries.)
154157

158+
* `<instance-name>-22.<region>.instances.azureml.cn` - Only used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network. Not needed if you are not using a managed network or SSH connections.
155159
* `<managed online endpoint name>.<region>.inference.ml.azure.cn` - Used by managed online endpoints
156160

157161
#### Azure US Government
@@ -167,6 +171,8 @@ The following FQDNs are for Azure US Government regions:
167171
* `<instance-name>.<region>.instances.azureml.us`
168172
> * The IP address for this FQDN is **not** the IP of the compute instance. Instead, use the private IP address of the workspace private endpoint (the IP of the `*.api.azureml.ms` entries.)
169173
174+
* `<instance-name>-22.<region>.instances.azureml.us` - Only used by the `az ml compute connect-ssh` command to connect to computes in a managed virtual network. Not needed if you are not using a managed network or SSH connections.
175+
170176
* `<managed online endpoint name>.<region>.inference.ml.azure.us` - Used by managed online endpoints
171177

172178
### Find the IP addresses

articles/machine-learning/how-to-manage-compute-instance.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ For each compute instance in a workspace that you created (or that was created f
145145
146146
* Access Jupyter, JupyterLab, RStudio on the compute instance.
147147
* SSH into compute instance. SSH access is disabled by default but can be enabled at compute instance creation time. SSH access is through public/private key mechanism. The tab gives you details for SSH connection such as IP address, username, and port number. In a virtual network deployment, disabling SSH prevents SSH access from public internet. You can still SSH from within virtual network using private IP address of compute instance node and port 22.
148+
149+
> [!TIP]
150+
> If the compute instances is in a *managed* virtual network and the public IP address is disabled, use the `az ml compute connect-ssh` command to connect to the compute instance.
151+
148152
* Select the compute name to:
149153
* View details about a specific compute instance such as IP address, and region.
150154
* Create or modify the schedule for starting and stopping the compute instance. Scroll down to the bottom of the page to edit the schedule.

articles/machine-learning/how-to-managed-network-compute.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ You can't create a compute cluster or compute instance from the Azure portal. In
158158
## Limitations
159159

160160
* Creating a compute cluster in a different region than the workspace isn't supported when using a managed virtual network.
161+
* If the compute is in a managed network and also configured for no public IP, use the `az ml compute connect-ssh` command to connect to the compute instance over SSH.
161162

162163
### Migration of compute resources
163164

articles/machine-learning/how-to-managed-network.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ The Azure Machine Learning managed VNet feature is free. However, you're charged
11041104
* Creating a compute cluster in a different region than the workspace isn't supported when using a managed VNet.
11051105
* Kubernetes and attached VMs aren't supported in an Azure Machine Learning managed VNet.
11061106
* Using FQDN outbound rules increases the cost of the managed VNet because FQDN rules use Azure Firewall. For more information, see [Pricing](#pricing).
1107+
* If your compute instance is in a managed network and is configured for no public IP, use the `az ml compute connect-ssh` command to connect to it using SSH.
11071108

11081109
### Migration of compute resources
11091110

0 commit comments

Comments
 (0)