The Export-RubrikVM cmdlet is used to restore a snapshot from a protected VM, copying all data to a given datastore and running the VM in an existing vSphere environment.
This will mount the snapshot with an id of 7acdf6cd-2c9f-4661-bd29-b67d86ace70b to the specified host and datastore
EXAMPLE 2
This will retreive the latest snapshot from the given VM 'server01' and export to the specified host and datastore.
PARAMETERS
-id
Rubrik id of the snapshot to export
-DatastoreId
Rubrik id of the vSphere datastore to store exported VM. (Use "Invoke-RubrikRESTCall -Endpoint 'vmware/datastore' -Method 'GET' -api 'internal'" to retrieve a list of available VMware datastores)
-HostID
ID of host for the export to use (Use "Invoke-RubrikRESTCall -Endpoint 'vmware/host' -Method 'GET' -api '1'" to retrieve a list of available VMware hosts.)
-VMName
Name of the exported VM
-DisableNetwork
Whether the network should be disabled upon restoration. This should be set true to avoid ip conflict if source VM still exists.
-RemoveNetworkDevices
Whether to remove network interfaces from the restored virtual machine. Default is false.
-KeepMACAddresses
Whether to assign MAC addresses from source virtual machine to exported virtual machine. Default is false.
-UnregisterVM
Whether the newly restored virtual machine is unregistered from vCenter. Default is false.
-PowerOn
Whether the VM should be powered on after restoration. Default is true.
-RecoverTags
Whether to recover vSphere tags
-Server
Rubrik server IP or FQDN
-api
API version
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
-Confirm
Prompts you for confirmation before running the cmdlet.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Written by Mike Preston for community usage Twitter: @mwpreston GitHub: mwpreston