Skip to content

Commit d64755b

Browse files
Merge pull request #271885 from Blackmist/vnet-fixes
updates per engineering
2 parents 73ce4ae + 53c124f commit d64755b

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

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

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.subservice: enterprise-readiness
88
ms.reviewer: larryfr
99
ms.author: jhirono
1010
author: jhirono
11-
ms.date: 08/22/2023
11+
ms.date: 04/11/2024
1212
ms.topic: how-to
1313
ms.custom:
1414
- build-2023
@@ -808,12 +808,9 @@ To enable the [serverless Spark jobs](how-to-submit-spark-jobs.md) for the manag
808808

809809
## Manually provision a managed VNet
810810

811-
The managed VNet is automatically provisioned when you create a compute resource. When you rely on automatic provisioning, it can take around __30 minutes__ to create the first compute resource as it is also provisioning the network. If you configured FQDN outbound rules (only available with allow only approved mode), the first FQDN rule adds around __10 minutes__ to the provisioning time.
811+
The managed VNet is automatically provisioned when you create a compute resource. When you rely on automatic provisioning, it can take around __30 minutes__ to create the first compute resource as it is also provisioning the network. If you configured FQDN outbound rules (only available with allow only approved mode), the first FQDN rule adds around __10 minutes__ to the provisioning time. If you have a large set of outbound rules to be provisioned in the managed network, it can take longer for provisioning to complete. The increased provisioning time can cause your first compute creation, or your first managed online endpoint deployment, to time out.
812812

813-
To reduce the wait time when someone attempts to create the first compute, you can manually provision the managed VNet after creating the workspace without creating a compute resource:
814-
815-
> [!NOTE]
816-
> If your workspace is already configured for a public endpoint (for example, with an Azure Virtual Network), and has [public network access enabled](how-to-configure-private-link.md#enable-public-access), you must disable it before provisioning the managed VNet. If you don't disable public network access when provisioning the managed VNet, the private endpoints for the managed endpoint may not be created successfully.
813+
To reduce the wait time and avoid potential timeout errors, we recommend manually provisioning the managed network. Then wait until the provisioning completes before you create a compute resource or managed online endpoint deployment.
817814

818815
# [Azure CLI](#tab/azure-cli)
819816

@@ -826,6 +823,12 @@ The following example shows how to provision a managed VNet.
826823
az ml workspace provision-network -g my_resource_group -n my_workspace_name
827824
```
828825

826+
To verify that the provisioning has completed, use the following command:
827+
828+
```azurecli
829+
az ml workspace show -n my_workspace_name -g my_resource_group --query managed_network
830+
```
831+
829832
# [Python SDK](#tab/python)
830833

831834
The following example shows how to provision a managed VNet:
@@ -840,6 +843,13 @@ include_spark = True
840843
provision_network_result = ml_client.workspaces.begin_provision_network(workspace_name=ws_name, include_spark=include_spark).result()
841844
```
842845

846+
To verify that the workspace has been provisioned, use `ml_client.workspaces.get()` to get the workspace information. The `managed_network` property contains the status of the managed network.
847+
848+
```python
849+
ws = ml_client.workspaces.get()
850+
print(ws.managed_network.status)
851+
```
852+
843853
# [Azure portal](#tab/portal)
844854

845855
Use the __Azure CLI__ or __Python SDK__ tabs to learn how to manually provision the managed VNet with serverless Spark support.

0 commit comments

Comments
 (0)