Manage imported data assets (preview)

APPLIES TO: Azure CLI ml extension v2 (current) Python SDK azure-ai-ml v2 (current)

In this article, you learn how to manage imported data assets from a life-cycle perspective. You'll learn how to modify or update auto delete settings on the data assets imported into a managed datastore (workspacemanagedstore) that Microsoft manages for the customer.

Note

Auto delete settings capability, or lifecycle management, is currently offered only through the imported data assets in managed datastore, also known as workspacemanagedstore.

Important

This feature is currently in public preview. This preview version is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities.

For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Modifying auto delete settings

You can change the auto delete setting value or condition as shown in these code samples:

> az ml data update -n <my_imported_ds> -v <version_number> --set auto_delete_setting.value='45d'

> az ml data update -n <my_imported_ds> -v <version_number> --set auto_delete_setting.condition='created_greater_than'

Deleting/removing auto delete settings

If you don't want a specific data asset version to become part of life-cycle management, you can remove a previously configured auto delete setting.

> az ml data update -n <my_imported_ds> -v <version_number> --remove auto_delete_setting

Query on the configured auto delete settings

This Azure CLI code sample shows the data assets with certain conditions, or with values configured in the auto delete settings:

> az ml data list --query '[?auto_delete_setting.\"condition\"==''created_greater_than'']'

> az ml data list --query '[?auto_delete_setting.\"value\"==''30d'']'

Next steps