rubrikinc / rubrik-sdk-for-powershell

Rubrik Module for PowerShell
https://build.rubrik.com/sdks/powershell/
MIT License
102 stars 87 forks source link

Export-RubrikVM doesn't connect network after export even when -disablenetwork switch is not used #838

Closed atulpatewar301 closed 2 months ago

atulpatewar301 commented 11 months ago

Current Behavior

Export-RubrikVM -id (Get-RubrikVM 'xyz'| Get-RubrikSnapshot | Sort-Object -Property Date -Descending | Select -First 1).id -server 10.0.0.0 -DatastoreId (Get-RubrikVMwareDatastore -name SharedLUN4).id -HostID (Get-RubrikVMwareHost -name 10.0.0.0).id -KeepMACAddresses -PowerOn

This is the command I'm using, without any -disablenetwork switch however it doesn't check the connected box by default after restore.

Expected Behavior

it should check the connected box by default in vmware vm settings image

Steps to Reproduce

No response

Context

No response

Failure Logs

No response

atulpatewar301 commented 11 months ago

image

mwpreston commented 2 months ago

Hi @atulpatewar301 - To export a VM with the network connected you can use the following syntax

Export-RubrikVM ...... -DisableNetwork:$false

This will export the VM and attach it to the network on power on