When creating new volumes (Copy Volume) from a Protection Group snapshot, the naming convention is the devil in the details. By not using the correct name of the Protection Group snapshot source, The creation of the volume will fail. Below is an example using the Everpure PowerShell SDK.
# Connect to FlashArray.
$f = New-PfaArray -EndPoint 10.0.0.1 -Credentials (Get-Credential) -IgnoreCertificateError
# OPTIONAL -- Used to illustrate all of the volume snapshots.
# Get all the volume snapshots, this will include PGroups.
Get-PfaAllVolumeSnapshots -Array $f | ft -a
# Pick a specific Pgroup snapshot. Name of snapshot is FLASHARRAYNAME:PGROUPNAME.SNAPSHOT_NAME
$PgroupSnapSource = Get-PfaVolumeSnapshots -Array $f -volumename 'solutions-lab-bfs-405-c09-20:z-nightly-replica-to-PureTEC.157.arvnd-Boot-Lun-05'
# Create a volume from the Pgroup source.
New-PfaVolume -Array $f -Source $PgroupSnapSource.name -VolumeName 'barkz-test'
# Validate the volume has been created.
Get-PfaVolume -Array $f -Name 'barkz-test'
Output example:
source serial created name size
------ ------ ------- ---- ---- 161061273600
old-Mike-Bootlun-04-2016tp5 73E940225A2A52BB0002CEF0 2020-08-04T23:47:25Z old-Mike-Bootlun-04-2016tp5.Mike-Bootlun-Rep 161061273600
.......LOTS OF SNAPSHOTS......
Barkz-Bootlun-03-WS2016-DC-GUI-3 73E940225A2A52BB0003D19D 2020-10-19T17:39:00Z z-nightly-replica-to-PureTEC.157.Barkz-Bootlun-03-WS2016-DC-GUI-3 161061273600
Barkz-Bootlun-04-WS2016-DC-GUI-4 73E940225A2A52BB0003D19E 2020-10-19T17:39:00Z z-nightly-replica-to-PureTEC.157.Barkz-Bootlun-04-WS2016-DC-GUI-4 161061273600
Barkz-Bootlun-02-WS2016-DC-GUI-2 73E940225A2A52BB0003D19F 2020-10-19T17:39:00Z z-nightly-replica-to-PureTEC.157.Barkz-Bootlun-02-WS2016-DC-GUI-2 161061273600
Barkz-Bootlun-05-WS2016-DC-GUI-5 73E940225A2A52BB0003D1A0 2020-10-19T17:39:00Z z-nightly-replica-to-PureTEC.157.Barkz-Bootlun-05-WS2016-DC-GUI-5 161061273600
source : arvnd-Boot-Lun-05
serial : 73E940225A2A52BB0003D1A7
created : 2020-10-19T17:39:00Z
name : barkz-test2
size : 75161927680
name : barkz-test2
created : 2020-10-19T17:39:00Z
source : arvnd-Boot-Lun-05
time_remaining :
serial : 73E940225A2A52BB0003D1A7
size : 75161927680