Automation

 View Only
  • 1.  how to rename vm tag- Assigned tag

    Posted Jun 08, 2023 12:44 AM

    Hi Team,

    How to rename vm tag- assigned tag on multiple vm via script.

     

    inderraw_1-1686185040136.png

     



  • 2.  RE: how to rename vm tag- Assigned tag

    Posted Jun 20, 2023 11:57 AM

    You can rename a tag with the Set-Tag cmdlet.

    Get-Tag -Name 'external' | Set-Tag -Name 'NewName'


  • 3.  RE: how to rename vm tag- Assigned tag

    Posted Jul 12, 2023 05:48 AM

    Thanks,

    but how to rename vm tag-Assinged tag for multiple vm via script.

     



  • 4.  RE: how to rename vm tag- Assigned tag

    Posted Jul 12, 2023 05:56 AM

    how to rename vm tag- Assigned tag for multiple vm specific vm list.



  • 5.  RE: how to rename vm tag- Assigned tag

    Posted Jul 12, 2023 06:04 AM

    Read the list and then use a loop over all the VMs.



  • 6.  RE: how to rename vm tag- Assigned tag

    Posted Jul 13, 2023 01:27 AM

    I mean can we import excel sheet with number of vm list to rename vm tag.



  • 7.  RE: how to rename vm tag- Assigned tag

    Posted Jul 13, 2023 05:00 AM

    Yes, you can.
    If it is a CSV you can use Import-Csv.
    If it is an XLSX you can use the Import-Excel cmdlet from the ImportExcel module.



  • 8.  RE: how to rename vm tag- Assigned tag

    Posted Jul 13, 2023 06:00 AM

    can you help me with this script import vm in csv format and then rename tag.



  • 9.  RE: how to rename vm tag- Assigned tag

    Posted Jul 13, 2023 08:47 AM

    So in the end you don't want to know how to code this, you just want a script.
    Seen your past history where you don't seem to reply to threads you started, I'm going to pass on that.