You can centralize endpoints in the Mirage PowerCLI.

Procedure

  1. Run the Connect-MirageServer cmdlet to connect to the Mirage server.

    Connect-MirageServer ServerIPAddress Username Password -TrustUnknownCertificate

    ServerIPAddress is the IP address of the Mirage server, and Username and Password are the log-in credentials of the privileged user for the Mirage server.

  2. Select a Mirage policy for the CVD.
    1. Run the Get-MiragePolicy cmdlet to retrieve the Mirage policies, and note the name of the Mirage policy to assign to the CVD.
    2. Run the $policy = Get-MiragePolicy 'PolicyName'| Select-Object -First 1 command

      policy is the name you select for this variable, and PolicyName is the name of the Mirage policy that you selected for the CVD.

  3. Select a Mirage volume for the CVD.
    1. Run the Get-MirageVolume cmdlet to retrieve the Mirage volumes, and note the name of the Mirage volume to assign to the CVD.
    2. Run the $volume = Get-MirageVolume 'VolumeName' | Select-Object -First 1 command

      volume is the name you select for this variable, and VolumeName is the name of the volume that you selected for the CVD.

  4. Designate one or more pending devices for the CVD.
    1. Run the Get-MiragePendingDevice cmdlet to retrieve the pending devices, and note the names of the pending devices to assign to the CVD.
    2. Assign the pending devices to the $device variable.

    Option

    Action

    Assign one pending device to the CVD

    Run the $device = Get-MiragePendingDevice | Select-Object -First 1 command to retrieve the pending device.

    Assign one or more pending device to the CVD

    Run the $device = Get-MiragePendingDevice DeviceFilters command.

    DeviceFilters are the filters for the devices to include in the CVD, to retrieve the pending devices.

  5. Create a CVD.

    Option

    Action

    Create new CVD using a variable

    Run the $cvd = $device | New-MirageCVD -Policy $policy -Volume $volume command.

    Create new CVD without using a variable

    Run the New-MirageCVD -Policy $policy -Volume $volume -Device $device command.

    If volume is not specified, the volume for the new CVD is selected automatically.

    If you create a CVD using a variable, you can reuse the variable in other Mirage PowerCLI procedures.

Results

The new CVD is created.