Skip to content

Commit 7877f73

Browse files
authored
Merge pull request #121527 from J-Silvestre/main
Main
2 parents 8f6fe7e + 6e1c344 commit 7877f73

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

articles/machine-learning/how-to-package-models.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,21 +230,21 @@ You can create model packages in Azure Machine Learning, using the Azure CLI or
230230

231231
## Package a model that has dependencies in private Python feeds
232232

233-
Model packages can resolve Python dependencies that are available in private feeds. To use this capability, you need to create a connection from your workspace to the feed and specify the credentials. The following Python code shows how you can configure the workspace where you're running the package operation.
233+
Model packages can resolve Python dependencies that are available in private feeds. To use this capability, you need to create a connection from your workspace to the feed and specify the PAT token configuration. The following Python code shows how you can configure the workspace where you're running the package operation.
234234

235235
```python
236236
from azure.ai.ml.entities import WorkspaceConnection
237-
from azure.ai.ml.entities import SasTokenConfiguration
237+
from azure.ai.ml.entities import PatTokenConfiguration
238238

239239
# fetching secrets from env var to secure access, these secrets can be set outside or source code
240-
python_feed_sas = os.environ["PYTHON_FEED_SAS"]
240+
git_pat = os.environ["GIT_PAT"]
241241

242-
credentials = SasTokenConfiguration(sas_token=python_feed_sas)
242+
credentials = PatTokenConfiguration(pat=git_pat)
243243

244244
ws_connection = WorkspaceConnection(
245-
name="<connection_name>",
246-
target="<python_feed_url>",
247-
type="python_feed",
245+
name="<workspace_connection_name>",
246+
target="<git_url>",
247+
type="git",
248248
credentials=credentials,
249249
)
250250

articles/machine-learning/how-to-secure-workspace-vnet.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,12 @@ Azure Container Registry can be configured to use a private endpoint. Use the fo
311311
312312
---
313313
314+
> [!TIP]
315+
> If you have configured your image build compute to use a compute cluster and want to reverse this decision, execute the same command but leave the image-build-compute reference empty:
316+
> ```azurecli
317+
> az ml workspace update --name myworkspace --resource-group myresourcegroup --image-build-compute ''
318+
> ```
319+
314320
> [!TIP]
315321
> When ACR is behind a VNet, you can also [disable public access](../container-registry/container-registry-access-selected-networks.md#disable-public-network-access) to it.
316322

0 commit comments

Comments
 (0)