Skip to content

Commit 8410a96

Browse files
Merge pull request #241807 from Blackmist/v1-v2-checkup
verifying & cleaning up v2->v1 links
2 parents 901830b + a1753da commit 8410a96

7 files changed

+25
-13
lines changed

articles/machine-learning/concept-soft-delete.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.author: deeikele
1111
author: deeikele
1212
ms.reviewer: larryfr
1313
ms.date: 11/07/2022
14-
monikerRange: 'azureml-api-2'
14+
monikerRange: 'azureml-api-2 || azureml-api-1'
1515
#Customer intent: As an IT pro, understand how to enable data protection capabilities, to protect against accidental deletion.
1616
---
1717

@@ -61,11 +61,17 @@ During the retention period, soft deleted workspaces can be recovered or permane
6161

6262
The default deletion behavior when deleting a workspace is soft delete. Optionally, you may override the soft delete behavior by permanently deleting your workspace. Permanently deleting a workspace ensures workspace data is immediately deleted. Use this option to meet related compliance requirements, or whenever you require a workspace name to be reused immediately after deletion. This may be useful in dev/test scenarios where you want to create and later delete a workspace.
6363

64-
When deleting a workspace from the Azure Portal, check __Delete the workspace permanently__. You can permanently delete only one workspace at a time, and not using a batch operation.
64+
When deleting a workspace from the Azure portal, check __Delete the workspace permanently__. You can permanently delete only one workspace at a time, and not using a batch operation.
6565

6666
:::image type="content" source="./media/concept-soft-delete/soft-delete-permanently-delete.png" alt-text="Screenshot of the delete workspace form in the portal.":::
6767

68-
If you are using the [Azure Machine Learning SDK or CLI](https://learn.microsoft.com/python/api/azure-ai-ml/azure.ai.ml.operations.workspaceoperations#azure-ai-ml-operations-workspaceoperations-begin-delete), you can set the `permanently_delete` flag.
68+
:::moniker range="azureml-api-1"
69+
> [!TIP]
70+
> The v1 SDK and CLI don't provide functionality to override the default soft-delete behavior. To override the default behavior from SDK or CLI, use the the v2 versions. For more information, see the [CLI & SDK v2](concept-v2.md) article or the [v2 version of this article](concept-soft-delete.md?view=azureml-api-2&preserve-view=true#deleting-a-workspace).
71+
72+
:::moniker-end
73+
:::moniker range="azureml-api-2"
74+
If you are using the [Azure Machine Learning SDK or CLI](/python/api/azure-ai-ml/azure.ai.ml.operations.workspaceoperations#azure-ai-ml-operations-workspaceoperations-begin-delete), you can set the `permanently_delete` flag.
6975

7076
```python
7177
from azure.ai.ml import MLClient
@@ -85,6 +91,8 @@ result = ml_client.workspaces.begin_delete(
8591

8692
print(result)
8793
```
94+
:::moniker-end
95+
8896
Once permanently deleted, workspace data can no longer be recovered. Permanent deletion of workspace data is also triggered when the soft delete retention period expires.
8997

9098
## Manage soft deleted workspaces

articles/machine-learning/how-to-manage-kubernetes-instance-types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ code_configuration:
195195
instance_type: <instance type name>
196196
environment:
197197
conda_file: file:./model/conda.yml
198-
image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1
198+
image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:latest
199199
```
200200

201201
#### [Python SDK](#tab/select-instancetype-to-modeldeployment-with-sdk)
@@ -208,7 +208,7 @@ from azure.ai.ml import KubernetesOnlineDeployment,Model,Environment,CodeConfigu
208208
model = Model(path="./model/sklearn_mnist_model.pkl")
209209
env = Environment(
210210
conda_file="./model/conda.yml",
211-
image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1",
211+
image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:latest",
212212
)
213213
214214
# define the deployment
@@ -248,7 +248,7 @@ code_configuration:
248248
scoring_script: score.py
249249
environment:
250250
conda_file: file:./model/conda.yml
251-
image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1
251+
image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:latest
252252
resources:
253253
requests:
254254
cpu: "0.1"
@@ -274,7 +274,7 @@ from azure.ai.ml import (
274274
model = Model(path="./model/sklearn_mnist_model.pkl")
275275
env = Environment(
276276
conda_file="./model/conda.yml",
277-
image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1",
277+
image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:latest",
278278
)
279279
280280
requests = ResourceSettings(cpu="0.1", memory="0.2G")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: osomorog
88
ms.reviewer: larryfr
99
ms.service: machine-learning
1010
ms.subservice: mlops
11-
ms.date: 04/15/2022
11+
ms.date: 06/16/2023
1212
ms.topic: conceptual
1313
ms.custom: cli-v2, sdk-v2, event-tier1-build-2022, ignite-2022, devx-track-azurecli
1414
---

articles/machine-learning/how-to-manage-workspace-cli.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.subservice: core
88
ms.author: deeikele
99
author: deeikele
1010
ms.reviewer: larryfr
11-
ms.date: 08/12/2022
11+
ms.date: 06/16/2023
1212
ms.topic: how-to
1313
ms.custom: devx-track-azurecli, cliv2, event-tier1-build-2022
1414
---
@@ -334,7 +334,8 @@ az group delete -g <resource-group-name>
334334

335335
For more information, see the [az ml workspace delete](/cli/azure/ml/workspace#az-ml-workspace-delete) documentation.
336336

337-
If you accidentally deleted your workspace, are still able to retrieve your notebooks. For more information, see the [workspace deletion](./v1/how-to-high-availability-machine-learning.md#workspace-deletion) section of the disaster recovery article.
337+
> [!TIP]
338+
> The default behavior for Azure Machine Learning is to _soft delete_ the workspace. This means that the workspace is not immediately deleted, but instead is marked for deletion. For more information, see [Soft delete](./concept-soft-delete.md).
338339
339340
## Troubleshooting
340341

articles/machine-learning/how-to-manage-workspace.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ When you no longer need a workspace, delete it.
306306

307307
[!INCLUDE [machine-learning-delete-workspace](../../includes/machine-learning-delete-workspace.md)]
308308

309-
If you accidentally deleted your workspace, you may still be able to retrieve your notebooks. For details, see [Failover for business continuity and disaster recovery](./v1/how-to-high-availability-machine-learning.md#workspace-deletion).
309+
> [!TIP]
310+
> The default behavior for Azure Machine Learning is to _soft delete_ the workspace. This means that the workspace is not immediately deleted, but instead is marked for deletion. For more information, see [Soft delete](./concept-soft-delete.md).
310311

311312
# [Python SDK](#tab/python)
312313

articles/machine-learning/v1/how-to-manage-workspace-cli.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ You can also delete the resource group, which deletes the workspace and all othe
264264
az group delete -g <resource-group-name>
265265
```
266266

267-
If you accidentally deleted your workspace, are still able to retrieve your notebooks. For more information, see the [workspace deletion](how-to-high-availability-machine-learning.md#workspace-deletion) section of the disaster recovery article.
267+
> [!TIP]
268+
> The default behavior for Azure Machine Learning is to _soft delete_ the workspace. This means that the workspace is not immediately deleted, but instead is marked for deletion. For more information, see [Soft delete](../concept-soft-delete.md).
268269
269270
## Troubleshooting
270271

articles/machine-learning/v1/how-to-manage-workspace.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ When you no longer need a workspace, delete it.
248248

249249
[!INCLUDE [machine-learning-delete-workspace](../../../includes/machine-learning-delete-workspace.md)]
250250

251-
If you accidentally deleted your workspace, you may still be able to retrieve your notebooks. For details, see [Failover for business continuity and disaster recovery](how-to-high-availability-machine-learning.md#workspace-deletion).
251+
> [!TIP]
252+
> The default behavior for Azure Machine Learning is to _soft delete_ the workspace. This means that the workspace is not immediately deleted, but instead is marked for deletion. For more information, see [Soft delete](../concept-soft-delete.md).
252253

253254

254255
Delete the workspace `ws`:

0 commit comments

Comments
 (0)