none
Rename a File Share Snapshot with Runbook written in powershell RRS feed

  • Pregunta

  • Hello,

    I'm creating a script written in PowerShell for a Runbook. That script generates a snapshot from File Share automatically every day. I want to rename the snapshots that the script creates, but I have not seen any way to do it.

    To create the snapshot, I use the method that you show in this article: https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-powershell

    Can you help me?

    Thanks you,

    Àlex Ollé

    viernes, 23 de noviembre de 2018 8:48

Todas las respuestas

  • Hello Àlex Ollé

    Thank you for raising your query in the MSDN forums. I recommend you to enter the following link where you can find a possible solution to your problem.

    https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-item?view=powershell-6

    https://docs.microsoft.com/en-us/azure/storage/files/storage-snapshots-files

    Thanks for using the MSDN forums.

    Pablo Rubio
     ____

    Please remember to "Mark as an answer" the answers that have solved your problem, it is a common way of recognizing those who have helped, and it makes it easier for other visitors to find the solution later.

    Microsoft offers this service for free, in order to help users and expanding the database of knowledge related to Microsoft products and technologies.

    This content is provided "as is" and does not imply any responsibility on the part of Microsoft.

    lunes, 26 de noviembre de 2018 17:29
    Moderador
  • Hola Pablo Rubio

    Gracias por responderme. He probado la solución que me has ofrecido (rename-item), pero este cmdlet requiere de un "-Path", el cual de un archivo share no se como obtenerlo, ya que la unica información que nos ofrecen es el uri.

    Espero su respuesta.

    Gracias

    Àlex Ollé

    miércoles, 28 de noviembre de 2018 12:50