summary import { BlobContainer , StorageManagementClient } from "@msinternal/storage-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function putContainerWithObjectLevelWorm ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "res3376" ; const accountName = "sto328" ; const containerName = "container6185" ; const blobContainer = { immutableStorageWithVersioning : { enabled : true } } ; const credential = new DefaultAzureCredential ( ) ; const client = new StorageManagementClient ( credential , subscriptionId ) ; const result = await client . blobContainers . create ( resourceGroupName , accountName , containerName , blobContainer ) ; console . log ( result ) ; } putContainerWithObjectLevelWorm ( ) . catch ( console . error ) ;