rubrik-sdk-for-powershell
rubrik-sdk-for-powershell copied to clipboard
Export-RubrikVM doesn't connect network after export even when -disablenetwork switch is not used
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
Steps to Reproduce
No response
Context
No response
Failure Logs
No response
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