List all available networks in Virtual Machine Cloud Powershell RRS feed

  • Question

  • Hi!

    I'm trying to automate Network assignment to an Add-on.
    I have figured out how to add a network to an addon with the cmdlet: Add-MgmtSvcQuotaSetting
    I can fx. use use the GUIDs from another Addon, to copy the same ones. Looks like this: 
    Networks <Networks><Network Id = "ecd424fb-194f-428a-abe3-8f9eb9686186" StampId="7a13bc11-fa52-49dc-8685-275983eba9a9"/><Network Id = "4a1cb5a5-8a71-4e76-b608-d20cb7172a68" StampId="7a13bc11-fa52-49dc-8685-275983eba9a9"/></Networks> 

    How do I get the Network ID from a specific Virtual Network in SCVMM, so i can generate the XML needed to add it in WAP?

    Thanks! <3


    Monday, February 4, 2019 2:50 PM


  • Okay, i figured it out.

    StampId is always the same. (I think)

    And i can find ID with: Get-SCVMNetwork | ? id -eq $id

    Tuesday, February 5, 2019 8:12 AM