locked
Renaming a folder in Azure Power Shell RRS feed

  • Question

  • Hi Everyone,

    I have been searching a way to rename a directory inside a container in the VSTS build steps. There are some utilities like Powershell and Azure Powershell available. Does anyone have a script to do that?

    • Changed type vikranth s Thursday, September 1, 2016 2:44 PM Question
    Wednesday, August 31, 2016 9:08 PM

All replies

  • Hi,

    Thank you for posting here!

    As blob storage does not support direct rename functionality, you'd need to copy each one to a new blob, and then delete the old one when the copy operation is complete. Renaming does no currently preserve snapshot data, renaming a large item or folder with lots of items may take a while. you can use Microsoft Azure Storage Explorer tool to change file name.

    Regards,

    Vikranth S.


    Kindly click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread. And Vote as Helpful.

    • Proposed as answer by Bhushan Gawale Thursday, September 1, 2016 3:44 PM
    Thursday, September 1, 2016 2:54 PM