Skip to content

Commit bf1634c

Browse files
Merge pull request #276762 from Blackmist/255251-dns
hub/project
2 parents 59a5c5d + ccb584b commit bf1634c

File tree

1 file changed

+51
-6
lines changed

1 file changed

+51
-6
lines changed

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

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ When using an Azure Machine Learning workspace with a private endpoint, there ar
4141
- An Azure Virtual Network that uses [your own DNS server](../virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances.md#name-resolution-that-uses-your-own-dns-server).
4242

4343
:::moniker range="azureml-api-2"
44-
- An Azure Machine Learning workspace with a private endpoint. For more information, see [Create an Azure Machine Learning workspace](how-to-manage-workspace.md).
44+
- An Azure Machine Learning workspace with a private endpoint, including hub workspaces such as those used by Azure AI Studio. For more information, see [Create an Azure Machine Learning workspace](how-to-manage-workspace.md).
45+
46+
- If your workspace resources are secured with an __Azure Virtual network__, familiarity with the [Network isolation during training & inference](./how-to-network-security-overview.md) article.
4547
:::moniker-end
4648
:::moniker range="azureml-api-1"
4749
- An Azure Machine Learning workspace with a private endpoint. For more information, see [Create an Azure Machine Learning workspace](./v1/how-to-manage-workspace.md).
48-
:::moniker-end
49-
5050
- Familiarity with using [Network isolation during training & inference](./how-to-network-security-overview.md).
51+
:::moniker-end
5152

5253
- Familiarity with [Azure Private Endpoint DNS zone configuration](../private-link/private-endpoint-dns.md)
5354

@@ -71,6 +72,9 @@ Another option is to modify the `hosts` file on the client that is connecting to
7172

7273
Access to a given Azure Machine Learning workspace via Private Link is done by communicating with the following Fully Qualified Domains (called the workspace FQDNs) listed below:
7374

75+
> [!IMPORTANT]
76+
> If you are using a hub workspace (including Azure AI Studio hub), then you will have addtional entries for each project workspace created from the hub.
77+
7478
**Azure Public regions**:
7579
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.azureml.ms```
7680
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.azureml.ms```
@@ -79,6 +83,12 @@ Access to a given Azure Machine Learning workspace via Private Link is done by c
7983
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.notebooks.azure.net```
8084
- ```<managed online endpoint name>.<region>.inference.ml.azure.com``` - Used by managed online endpoints
8185

86+
> [!TIP]
87+
> If you are using a hub workspace, there are also the following FQDNs _for each project workspace created from the hub workspace_:
88+
> - ```<project workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.azureml.ms```
89+
> - ```<project workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.azureml.ms```
90+
> - ```ml-<project workspacename, truncated>-<region>-<project workspace globally-unique identifier>.<region>.notebooks.azure.net```
91+
8292
**Microsoft Azure operated by 21Vianet regions**:
8393
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.ml.azure.cn```
8494
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.ml.azure.cn```
@@ -87,6 +97,12 @@ Access to a given Azure Machine Learning workspace via Private Link is done by c
8797
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.notebooks.chinacloudapi.cn```
8898
- ```<managed online endpoint name>.<region>.inference.ml.azure.cn``` - Used by managed online endpoints
8999

100+
> [!TIP]
101+
> If you are using a hub workspace, there are also the following FQDNs _for each project workspace created from the hub workspace_:
102+
> - ```<project workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.ml.azure.cn```
103+
> - ```<project workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.ml.azure.cn```
104+
> - ```ml-<project workspace name, truncated>-<region>-<project workspace globally-unique identifier>.<region>.notebooks.chinacloudapi.cn```
105+
90106
**Azure US Government regions**:
91107
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.ml.azure.us```
92108
- ```<per-workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.ml.azure.us```
@@ -95,6 +111,12 @@ Access to a given Azure Machine Learning workspace via Private Link is done by c
95111
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.notebooks.usgovcloudapi.net```
96112
- ```<managed online endpoint name>.<region>.inference.ml.azure.us``` - Used by managed online endpoints
97113

114+
> [!TIP]
115+
> If you are using a hub workspace, there are also the following FQDNs _for each project workspace created from the hub workspace_:
116+
> - ```<project workspace globally-unique identifier>.workspace.<region the workspace was created in>.api.ml.azure.us```
117+
> - ```<project workspace globally-unique identifier>.workspace.<region the workspace was created in>.cert.api.ml.azure.us```
118+
> - ```ml-<project workspace name, truncated>-<region>-<project workspace globally-unique identifier>.<region>.notebooks.usgovcloudapi.net```
119+
98120
The Fully Qualified Domains resolve to the following Canonical Names (CNAMEs) called the workspace Private Link FQDNs:
99121

100122
**Azure Public regions**:
@@ -112,7 +134,7 @@ The Fully Qualified Domains resolve to the following Canonical Names (CNAMEs) ca
112134
- ```ml-<workspace-name, truncated>-<region>-<per-workspace globally-unique identifier>.<region>.privatelink.notebooks.usgovcloudapi.net```
113135
- ```<managed online endpoint name>.<per-workspace globally-unique identifier>.inference.<region>.privatelink.api.ml.azure.us``` - Used by managed online endpoints
114136

115-
The FQDNs resolve to the IP addresses of the Azure Machine Learning workspace in that region. However, resolution of the workspace Private Link FQDNs can be overridden by using a custom DNS server hosted in the virtual network. For an example of this architecture, see the [custom DNS server hosted in a vnet](#example-custom-dns-server-hosted-in-vnet) example.
137+
The FQDNs resolve to the IP addresses of the Azure Machine Learning workspace in that region. However, resolution of the workspace Private Link FQDNs can be overridden by using a custom DNS server hosted in the virtual network. For an example of this architecture, see the [custom DNS server hosted in a vnet](#example-custom-dns-server-hosted-in-vnet) example. For hub and project workspaces, the FQDNs of all project workspaces resolve to the IP address of the hub workspace.
116138

117139
[!INCLUDE [machine-learning-add-dns-records](includes/machine-learning-add-dns-records.md)]
118140

@@ -126,7 +148,7 @@ This section discusses which Fully Qualified Domains to create A records for in
126148

127149
The following list contains the fully qualified domain names (FQDNs) used by your workspace if it is in the Azure Public Cloud:
128150

129-
* `<workspace-GUID>.workspace.<region>.cert.api.azureml.ms`
151+
* `<workspace-GUID>.workspace.<region>.cert.api.azureml.ms`
130152
* `<workspace-GUID>.workspace.<region>.api.azureml.ms`
131153
* `ml-<workspace-name, truncated>-<region>-<workspace-guid>.<region>.notebooks.azure.net`
132154

@@ -140,6 +162,9 @@ The following list contains the fully qualified domain names (FQDNs) used by you
140162
* `<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.
141163
* `<managed online endpoint name>.<region>.inference.ml.azure.com` - Used by managed online endpoints
142164

165+
> [!TIP]
166+
> If you are using hub and project workspaces, each project workspace has its own set of additional FQDNs. For more information, see the [workspace DNS resolution](#workspace-dns-resolution-path) section.
167+
143168
#### Microsoft Azure operated by 21Vianet region
144169

145170
The following FQDNs are for Microsoft Azure operated by 21Vianet regions:
@@ -158,6 +183,9 @@ The following FQDNs are for Microsoft Azure operated by 21Vianet regions:
158183
* `<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.
159184
* `<managed online endpoint name>.<region>.inference.ml.azure.cn` - Used by managed online endpoints
160185

186+
> [!TIP]
187+
> If you are using hub and project workspaces, each project workspace has its own set of additional FQDNs. For more information, see the [workspace DNS resolution](#workspace-dns-resolution-path) section.
188+
161189
#### Azure US Government
162190

163191
The following FQDNs are for Azure US Government regions:
@@ -175,6 +203,9 @@ The following FQDNs are for Azure US Government regions:
175203

176204
* `<managed online endpoint name>.<region>.inference.ml.azure.us` - Used by managed online endpoints
177205

206+
> [!TIP]
207+
> If you are using hub and project workspaces, each project workspace has its own set of additional FQDNs. For more information, see the [workspace DNS resolution](#workspace-dns-resolution-path) section.
208+
178209
### Find the IP addresses
179210

180211
To find the internal IP addresses for the FQDNs in the VNet, use one of the following methods:
@@ -190,7 +221,7 @@ To find the internal IP addresses for the FQDNs in the VNet, use one of the foll
190221
az network private-endpoint show --name <endpoint> --resource-group <resource-group> --query 'networkInterfaces[*].id' --output table
191222
```
192223
193-
1. To get the IP address and FQDN information, use the following command. Replace `<resource-id>` with the ID from the previous step:
224+
1. To get the IP address and FQDN information for the workspace or hub workspace, use the following command. Replace `<resource-id>` with the ID from the previous step:
194225
195226
```azurecli
196227
az network nic show --ids <resource-id> --query 'ipConfigurations[*].{IPAddress: privateIpAddress, FQDNs: privateLinkConnectionProperties.fqdns}'
@@ -221,6 +252,20 @@ To find the internal IP addresses for the FQDNs in the VNet, use one of the foll
221252
}
222253
]
223254
```
255+
256+
1. If you're using a hub workspace, use the following steps _for each_ project workspace that was created from the hub:
257+
258+
1. To get the project workspace ID, use the following command:
259+
260+
```azurecli
261+
az ml workspace show --name <project-workspace-name> --resource-group <resource-group> --query 'discovery_url'
262+
```
263+
264+
The value returned will follow the format `https://<project-workspace-id>.workspace.<region>.api.azureml.ms/mlflow/<version>/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.MachineLearningServices/workspaces/<project-workspace-name>`.
265+
266+
1. Take the FQDNs returned from the hub workspace that end in `workspace.<region>.api.azureml.ms` and `workspace.<region>.cert.api.azureml.ms`. Replace the GUID value at the beginning of these FQDNs with the project workspace ID. These FQDNs are in addition to the hub workspace FQDNs.
267+
1. Take the FQDN returned from the hub workspace that follows the format in `<workspace-name>-<region>-<GUID>.<region>.notebooks.azure.net`. Replace the GUID value with the project workspace ID. Replace the hub workspace name with the project workspace name. You may need to truncate the workspace name to keep this entry at 63 characters or less. This FQDN is in addition to the hub workspace FQDN.
268+
224269
# [Azure PowerShell](#tab/azure-powershell)
225270
226271
```azurepowershell

0 commit comments

Comments
 (0)