rubrik-sdk-for-powershell icon indicating copy to clipboard operation
rubrik-sdk-for-powershell copied to clipboard

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

Open atulpatewar301 opened this issue 1 year ago • 1 comments

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 avatar Oct 05 '23 09:10 atulpatewar301

image

atulpatewar301 avatar Oct 05 '23 09:10 atulpatewar301

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

mwpreston avatar Jun 13 '24 15:06 mwpreston