In the past, I tested this with this desired properties:
{
"properties.desired": {
"deviceAutoDeleteProperties": {
"deleteOn": true,
"deleteAfterMinutes": 5,
"retainWhileUploading": true
},
"deviceToCloudUploadProperties": {
"uploadOn": true,
"uploadOrder": "OldestFirst",
"cloudStorageConnectionString": "DefaultEndpointsProtocol=https;AccountName=blobtestnestorage;AccountKey=[key of storage in the cloud];EndpointSuffix=core.windows.net",
"storageContainersForUpload": {
"updatedblockblobcontainer": {
"target": "uploaded"
}
},
"deleteAfterUpload": true
}
}
}
See also this blog for an example where telemetry is generated and sent to a storage account container in the cloud.
The target container is named 'uploaded'.
If you want to have the container name changed, you will have to actively change the module twin using eg. an Azure Function which is triggered in some way. This is limited to one container for one module.
Although untested, perhaps you could experiment with a dynamic path behind one container too?