Using Console
Using CLI
<subscription_id>
with the ID of the subscription that you want to use.
<scope>
with the scope where you want to enable Blob Storage Lifecycle Management. This can be a resource group, subscription, or management group.
Using Python
pip install azure-storage-blob
.Step 2: Import the necessary libraries in your Python script.set_blob_lifecycle()
method of the container client object. The policy should be defined in a JSON format.