I want to rename a blob file in Azure storage explorer. It's in a folder of a specific blob container.I'm using python.
I used this code.
sourceFileName = abc.xlsx
destinationFileName = xyz.xlsx
sourcePath = 'cloudops-resources/outputs/'
destinationPath = 'cloudops-resources/outputs/'
blob_url = blob_service.make_blob_url(sourcePath,sourceFileName)
blob_service.copy_blob(destinationPath, destinationFileName, blob_url)
But there is no blob_service module in the azure.storage.blob.I tried using BlockBlobService as well.But those can't be imported.
I referred to this and I tried using these codes as well.
Can someone please tell me how to rename an already existing blob using python?