Skip to content

Commit 696e91a

Browse files
author
Larry Franks
committed
adding note about an edge scenario for outbound nsg
1 parent 8443f45 commit 696e91a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

articles/machine-learning/how-to-enable-virtual-network.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,33 @@ The NSG rule configuration in the Azure portal is shown in the following image:
169169

170170
[![The outbound NSG rules for Machine Learning Compute](./media/how-to-enable-virtual-network/limited-outbound-nsg-exp.png)](./media/how-to-enable-virtual-network/limited-outbound-nsg-exp.png#lightbox)
171171

172+
> [!NOTE]
173+
> If you plan on using default Docker images provided by Microsoft, and enabling user managed dependencies, you must also use a __Service Tag__ of __MicrosoftContainerRegistry.Region_Name__ (For example, MicrosoftContainerRegistry.EastUS).
174+
>
175+
> This configuration is needed when you have code similar to the following snippets as part of your training scripts:
176+
>
177+
> __RunConfig training__
178+
> ```python
179+
> # create a new runconfig object
180+
> run_config = RunConfiguration()
181+
>
182+
> # configure Docker
183+
> run_config.environment.docker.enabled = True
184+
> # For GPU, use DEFAULT_GPU_IMAGE
185+
> run_config.environment.docker.base_image = DEFAULT_CPU_IMAGE
186+
> run_config.environment.python.user_managed_dependencies = True
187+
> ```
188+
>
189+
> Estimator training__
190+
> ```python
191+
> est = Estimator(source_directory='.',
192+
> script_params=script_params,
193+
> compute_target='local',
194+
> entry_script='dummy_train.py',
195+
> user_managed=True)
196+
> run = exp.submit(est)
197+
> ```
198+
172199
### User-defined routes for forced tunneling
173200
174201
If you're using forced tunneling with the Machine Learning Compute, add [user-defined routes (UDRs)](https://docs.microsoft.com/azure/virtual-network/virtual-networks-udr-overview) to the subnet that contains the compute resource.

0 commit comments

Comments
 (0)