Parameters

cloneName: The name of the variation to be created. This will be included in the name of the VHDX that will be mounted on the VM and appended to the name of the databases when they will be mounted.

credential: The credentials that will be used to perform the remote operations. (VHDX differencing disk creation and assignment to the VM)

parentContent: The type of parent on which the differencing disk will be based on.

parentVersion: The version of parent on which the differencing disk will be based on.

hyperVClusterName: The name of the Hyper-V cluster on which the VM to mount the differencing disk resides. If not specified, the default value will be retrieved from the environment configuration.

useDefaultCSV: If specified, the name of the CSV volume will be retrieved from the environment configuration.

selectedCSVName: The name of the CSV volume to use to store the differencing disk.

Sample Usage

1) Logon the target SQL Server (not tested remotely, may work)
2) Go to the directory <Path to library>\VHDXSQLRefresh\Win2012\
3) With a PowerShell prompt with Administrative privileges, run the following command:

.\Add-Clone.ps1 -cloneName QA9 -credential (Get-Credential) -parentContent Contoso -parentVersion 2013-11-27 -useDefaultCSV

Last edited Nov 28, 2013 at 4:35 PM by misabel_gem, version 3