Skip to content

Commit 3838c4d

Browse files
Merge pull request #283498 from fbsolo-ms1/main
Freshness update for how-to-export-delete-data.md . . .
2 parents 5c1c816 + e8696ba commit 3838c4d

14 files changed

+63
-24
lines changed

articles/machine-learning/how-to-export-delete-data.md

Lines changed: 63 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom: devx-track-python
99
author: fbsolo-ms1
1010
ms.author: franksolomon
1111
ms.reviewer: franksolomon
12-
ms.date: 08/11/2023
12+
ms.date: 08/01/2024
1313
ms.topic: how-to
1414
monikerRange: 'azureml-api-2 || azureml-api-1'
1515
---
@@ -24,11 +24,11 @@ In Azure Machine Learning, you can export or delete your workspace data with eit
2424

2525
## Control your workspace data
2626

27-
The in-product data that Azure Machine Learning stores is available for export and deletion. You can export and delete data with Azure Machine Learning studio, the CLI, and the SDK. Additionally, you can access telemetry data through the Azure Privacy portal.
27+
Azure Machine Learning stores in-product data that is available for export and deletion. You can export and delete data with Azure Machine Learning studio, the CLI, or the SDK. Additionally, you can access telemetry data through the Azure Privacy portal.
2828

2929
In Azure Machine Learning, personal data consists of user information in job history documents.
3030

31-
An Azure workspace relies on a **resource group** to hold the related resources for an Azure solution. When you create a workspace, you have the opportunity to use an existing resource group, or to create a new one. See [this page](../azure-resource-manager/management/manage-resource-groups-portal.md) to learn more about Azure resource groups.
31+
An Azure workspace relies on a **resource group** to hold the related resources for an Azure solution. When you create a workspace, you can either use an existing resource group, or you can create a new one. Visit [this resource](../azure-resource-manager/management/manage-resource-groups-portal.md) for more information about Azure resource groups.
3232

3333
## Delete high-level resources using the portal
3434

@@ -43,37 +43,76 @@ When you create a workspace, Azure creates several resources within the resource
4343
To delete these resources, select them from the list, and choose **Delete**:
4444

4545
> [!IMPORTANT]
46-
> If the resource is configured for soft delete, the data won't actually delete unless you optionally select to delete the resource permanently. For more information, see the following articles:
47-
> * [Workspace soft-deletion](concept-soft-delete.md).
48-
> * [Soft delete for blobs](../storage/blobs/soft-delete-blob-overview.md).
49-
> * [Soft delete in Azure Container Registry](../container-registry/container-registry-soft-delete-policy.md).
50-
> * [Azure log analytics workspace](../azure-monitor/logs/delete-workspace.md).
51-
> * [Azure Key Vault soft-delete](../key-vault/general/soft-delete-overview.md).
46+
> If the resource is configured for soft delete, the data won't actually delete unless you optionally select to delete the resource permanently. For more information, visit these resources:
47+
> * [Azure log analytics workspace](../azure-monitor/logs/delete-workspace.md)
48+
> * [Azure Key Vault soft-delete](../key-vault/general/soft-delete-overview.md)
49+
> * [Soft delete for blobs](../storage/blobs/soft-delete-blob-overview.md)
50+
> * [Soft delete in Azure Container Registry](../container-registry/container-registry-soft-delete-policy.md)
51+
> * [Workspace soft-deletion](concept-soft-delete.md)
5252
5353
:::image type="content" source="media/how-to-export-delete-data/delete-resource-group-resources.png" lightbox="media/how-to-export-delete-data/delete-resource-group-resources.png" alt-text="Screenshot of portal, with delete icon highlighted.":::
5454

5555
A confirmation dialog box opens, where you can confirm your choices.
5656

57-
Job history documents might contain personal user information. These documents are stored in the storage account in blob storage, in `/azureml` subfolders. You can download and delete the data from the portal.
57+
Job history documents might contain personal user information. These documents are stored in the storage account in blob storage, in `/azureml` subfolders. You can download and delete the data from the portal. First, select the **Storage accounts** Azure services in the Azure portal, as shown in this screenshot:
5858

59-
:::image type="content" source="media/how-to-export-delete-data/storage-account-folders.png" lightbox="media/how-to-export-delete-data/storage-account-folders.png" alt-text="Screenshot of the Azure Machine Learning directory in the storage account, within the portal.":::
59+
:::image type="content" source="media/how-to-export-delete-data/storage-account-main-screen.png" lightbox="media/how-to-export-delete-data/storage-account-main-screen.png" alt-text="Screenshot showing selection of Storage accounts in the Azure portal.":::
60+
61+
At the **Storage accounts** page, select the relevant storage account, as shown in this screenshot:
62+
63+
:::image type="content" source="media/how-to-export-delete-data/select-storage-account.png" lightbox="media/how-to-export-delete-data/select-storage-account.png" alt-text="Screenshot showing selection of a specific storage account.":::
64+
65+
Select **Containers** as shown in this screenshot:
66+
67+
:::image type="content" source="media/how-to-export-delete-data/select-containers.png" lightbox="media/how-to-export-delete-data/select-containers.png" alt-text="Screenshot showing selection of Containers at the storage account page.":::
68+
69+
Select a specific container, as shown in this screenshot:
70+
71+
:::image type="content" source="media/how-to-export-delete-data/select-a-container-resource.png" lightbox="media/how-to-export-delete-data/select-a-container-resource.png" alt-text="Screenshot showing selection of a specific container.":::
72+
73+
In that container, select and delete the resource or resources you wish to delete, as shown in this screenshot:
74+
75+
:::image type="content" source="media/how-to-export-delete-data/delete-a-resource.png" lightbox="media/how-to-export-delete-data/delete-a-resource.png" alt-text="Screenshot showing deletion of a specific resource.":::
6076

6177
## Export and delete machine learning resources using Azure Machine Learning studio
6278

63-
Azure Machine Learning studio provides a unified view of your machine learning resources - for example, notebooks, data assets, models, and jobs. Azure Machine Learning studio emphasizes preservation of a record of your data and experiments. You can delete computational resources - pipelines and compute resources - right in the browser. For these resources, navigate to the resource in question, and choose **Delete**.
79+
Azure Machine Learning studio provides a unified view of your machine learning resources - for example, data assets, models, notebooks, and jobs. Azure Machine Learning studio emphasizes preservation of a record of your data and experiments. You can delete computational resources - pipelines and compute resources - right in the browser. For these resources, navigate to the resource in question, and choose **Delete**.
80+
81+
You can unregister data assets and archive jobs, but these operations don't delete the data. To completely remove the data, data assets and job data require deletion at the storage level. Storage level deletion happens in the portal, as described earlier. Azure Machine Learning studio can handle individual deletion. Job deletion deletes the data of that job.
82+
83+
### Artifact and log downloads of jobs
6484

65-
You can unregister data assets and archive jobs, but these operations don't delete the data. To entirely remove the data, data assets and job data require deletion at the storage level. Storage level deletion happens in the portal, as described earlier. Azure Machine Learning studio can handle individual deletion. Job deletion deletes the data of that job.
85+
Azure Machine Learning studio can handle training artifact and log downloads from experimental jobs. At the Azure Machine Learning studio main page, select **Jobs** as shown in this screenshot:
6686

67-
Azure Machine Learning studio can handle training artifact downloads from experimental jobs. Choose the relevant **Job**. Choose **Output + logs**, and navigate to the specific artifacts you wish to download. Choose **...** and **Download**, or select **Download all**.
87+
:::image type="content" source="media/how-to-export-delete-data/azure-machine-learning-studio-select-jobs.png" lightbox="media/how-to-export-delete-data/azure-machine-learning-studio-select-jobs.png" alt-text="Screenshot showing selection of Jobs in Azure Machine Learning studio.":::
6888

69-
To download a registered model, navigate to the **Model** and choose **Download**.
89+
To show the available jobs, select the **All Jobs** tab, as shown in this screenshot:
7090

71-
:::image type="contents" source="media/how-to-export-delete-data/model-download.png" lightbox="media/how-to-export-delete-data/model-download.png" alt-text="Screenshot of studio model page with download option highlighted.":::
91+
:::image type="content" source="media/how-to-export-delete-data/select-the-all-jobs-tab.png" lightbox="media/how-to-export-delete-data/select-the-all-jobs-tab.png" alt-text="Screenshot showing selection of the All Jobs tab.":::
92+
93+
Select a specific job, as shown in this screenshot:
94+
95+
:::image type="content" source="media/how-to-export-delete-data/select-a-specific-job.png" lightbox="media/how-to-export-delete-data/select-a-specific-job.png" alt-text="Screenshot showing selection of a specific job.":::
96+
97+
Select **Download all**, as shown in this screenshot:
98+
99+
:::image type="content" source="media/how-to-export-delete-data/select-download-all.png" lightbox="media/how-to-export-delete-data/select-download-all.png" alt-text="Screenshot showing how to start the job download process.":::
100+
101+
### Download a registered model
102+
103+
To download a registered model, select **Models** to open the **Model List** in Azure Machine Learning studio, and then select a specific model, as shown in this screenshot:
104+
105+
:::image type="content" source="media/how-to-export-delete-data/select-a-specific-model.png" lightbox="media/how-to-export-delete-data/select-a-specific-model.png" alt-text="Screenshot showing selection of a specific model.":::
106+
107+
Select **Download all** to start the model download process, as shown in this screenshot:
108+
109+
:::image type="contents" source="media/how-to-export-delete-data/model-download.png" lightbox="media/how-to-export-delete-data/model-download.png" alt-text="Screenshot showing how to start the model download process.":::
72110

73111
:::moniker range="azureml-api-1"
112+
74113
## Export and delete resources using the Python SDK
75114

76-
You can download the outputs of a particular job using:
115+
You can download the outputs of a particular job using:
77116

78117
```python
79118
# Retrieved from Azure Machine Learning web UI
@@ -87,17 +126,17 @@ metrics_output_port.download('.', show_progress=True)
87126
model_output_port.download('.', show_progress=True)
88127
```
89128

90-
The following machine learning resources can be deleted using the Python SDK:
129+
You can delete these machine learning resources with the Python SDK:
91130

92-
| Type | Function Call | Notes |
131+
| Type | Function Call | Notes |
93132
| --- | --- | --- |
94-
| `Workspace` | [`delete`](/python/api/azureml-core/azureml.core.workspace.workspace#delete-delete-dependent-resources-false--no-wait-false-) | Use `delete-dependent-resources` to cascade the delete |
95-
| `Model` | [`delete`](/python/api/azureml-core/azureml.core.model%28class%29#delete--) | |
96-
| `ComputeTarget` | [`delete`](/python/api/azureml-core/azureml.core.computetarget#delete--) | |
97-
| `WebService` | [`delete`](/python/api/azureml-core/azureml.core.webservice%28class%29) | |
133+
| `Workspace` | [`delete`](/python/api/azureml-core/azureml.core.workspace(class)#azureml-core-workspace-delete) | Use `delete-dependent-resources` to cascade the delete |
134+
| `Model` | [`delete`](/python/api/azureml-core/azureml.core.workspace(class)#azureml-core-model-delete) | |
135+
| `ComputeTarget` | [`delete`](/python/api/azureml-core/azureml.core.computetarget#azureml-core-computetarget-delete) | |
136+
| `WebService` | [`delete`](/python/api/azureml-core/azureml.core.workspace(class)#azureml-core-webservice-delete) | |
98137

99138
:::moniker-end
100139

101140
## Next steps
102141

103-
Learn more about [Managing a workspace](how-to-manage-workspace.md).
142+
[Learn more about managing workspaces](how-to-manage-workspace.md)
152 KB
Loading
118 KB
Loading
-17.1 KB
Loading
131 KB
Loading
166 KB
Loading
97.4 KB
Loading
106 KB
Loading
246 KB
Loading
148 KB
Loading

0 commit comments

Comments
 (0)