Skip to content

Commit ea6daff

Browse files
committed
Fix en-dash parameter errors and logic bugs across demo scripts
1 parent c0e6379 commit ea6daff

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

demos-sdk2/ActiveDR/ActiveDR Full Failover.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ProductionSQLServerSession = New-PSSession -ComputerName $ProductionSQLServer
5252

5353
# Connect to FlashArray
5454
$Credential = Get-Credential
55-
$FlashArray = Connect-Pfa2Array -Endpoint $DRArrayName -Credential $Credential -IgnoreCertificateError
55+
$FlashArray = Connect-Pfa2Array -Endpoint $ProductionArrayName -Credential $Credential -IgnoreCertificateError
5656

5757

5858

demos-sdk2/ActiveDR/SQL Server FCI + ActiveDR/ActiveDR-FCI-Testing.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $SourcePodName = "PodNameOnSourceArray"
8383

8484

8585
# set Pure credentials
86-
$PureCred = Get-Credentials
86+
$PureCred = Get-Credential
8787

8888

8989

demos-sdk2/Multi-Array Snapshot/Multi-Array Snapshot.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ $SqlInstance = Connect-DbaInstance -SqlInstance $TargetSQLServer -TrustServerCer
6161

6262
# Connect to the FlashArrays' REST APIs
6363
$Credential = Get-Credential
64-
$FlashArray1 = Connect-Pfa2Array EndPoint $ArrayName1 -Credential $Credential -IgnoreCertificateError
65-
$FlashArray2 = Connect-Pfa2Array EndPoint $ArrayName2 -Credential $Credential -IgnoreCertificateError
64+
$FlashArray1 = Connect-Pfa2Array -EndPoint $ArrayName1 -Credential $Credential -IgnoreCertificateError
65+
$FlashArray2 = Connect-Pfa2Array -EndPoint $ArrayName2 -Credential $Credential -IgnoreCertificateError
6666

6767

6868

demos-sdk2/Point in Time Recovery/Point in Time Recovery.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Get-DbaDatabase -SqlInstance $SqlInstance -Database $DbName |
5656

5757
# Connect to the FlashArray's REST API
5858
$Credential = Get-Credential
59-
$FlashArray = Connect-Pfa2Array EndPoint $ArrayName -Credential $Credential -IgnoreCertificateError
59+
$FlashArray = Connect-Pfa2Array -EndPoint $ArrayName -Credential $Credential -IgnoreCertificateError
6060

6161

6262

demos-sdk2/Protection Group Database Refresh Between FlashArrays/Protection Group Database Refresh Between FlashArrays.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ $Credential = Get-Credential
5353

5454

5555
# Connect to the source FlashArray's REST API
56-
$SourceFlashArray = Connect-Pfa2Array EndPoint $TargetArrayName -Credential $Credential -IgnoreCertificateError
56+
$SourceFlashArray = Connect-Pfa2Array -EndPoint $SourceArrayName -Credential $Credential -IgnoreCertificateError
5757

5858

5959

6060
# Take a snapshot of the Protection Group and replicate it to the target array
61-
$Snapshot = New-Pfa2ProtectionGroupSnapshot -Array $FlashArray -SourceName $ProtectionGroupName -ForReplication $true -ReplicateNow $true
61+
$Snapshot = New-Pfa2ProtectionGroupSnapshot -Array $SourceFlashArray -SourceName $ProtectionGroupName -ForReplication $true -ReplicateNow $true
6262

6363

6464

@@ -80,7 +80,7 @@ Invoke-Command -Session $TargetSession -ScriptBlock { Get-Disk | Where-Object {
8080

8181

8282
# Connect to the target FlashArray's REST API
83-
$TargetFlashArray = Connect-Pfa2Array EndPoint $TargetArrayName -Credential $Credential -IgnoreCertificateError
83+
$TargetFlashArray = Connect-Pfa2Array -EndPoint $TargetArrayName -Credential $Credential -IgnoreCertificateError
8484

8585

8686

demos-sdk2/Protection Group Database Refresh/Protection Group Database Refresh.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Invoke-Command -Session $TargetSession -ScriptBlock { Get-Disk | Where-Object {
6464

6565

6666
# Connect to the FlashArray's REST API
67-
$FlashArray = Connect-Pfa2Array EndPoint $ArrayName -Credential $Credential -IgnoreCertificateError
67+
$FlashArray = Connect-Pfa2Array -EndPoint $ArrayName -Credential $Credential -IgnoreCertificateError
6868

6969

7070

demos-sdk2/Seeding an Availability Group/Seeding an Availability Group.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $SqlInstanceSecondary = Connect-DbaInstance -SqlInstance $SecondarySqlServer -Tr
6363

6464
# Connect to the FlashArray with for the AG Primary
6565
$Credential = Get-Credential
66-
$FlashArrayPrimary = Connect-Pfa2Array EndPoint $PrimaryArrayName -Credential $Credential -IgnoreCertificateError
66+
$FlashArrayPrimary = Connect-Pfa2Array -EndPoint $PrimaryArrayName -Credential $Credential -IgnoreCertificateError
6767

6868

6969

@@ -89,7 +89,7 @@ Invoke-DbaQuery -SqlInstance $SqlInstancePrimary -Query $Query -Verbose
8989

9090

9191
# Connect to the FlashArray's REST API where the secondary's data is located
92-
$FlashArraySecondary = Connect-Pfa2Array EndPoint $SecondaryArrayName -Credential $Credential -IgnoreCertificateError
92+
$FlashArraySecondary = Connect-Pfa2Array -EndPoint $SecondaryArrayName -Credential $Credential -IgnoreCertificateError
9393

9494

9595
# This is a loop that will block until the snapshot has completed replicating between the two arrays.

demos-sdk2/Volume Database Refresh/Volume Database Refresh.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Invoke-Command -Session $TargetSession -ScriptBlock { Get-Disk | Where-Object {
6060

6161

6262
# Connect to the FlashArray's REST API
63-
$FlashArray = Connect-Pfa2Array EndPoint $ArrayName -Credential $Credential -IgnoreCertificateError
63+
$FlashArray = Connect-Pfa2Array -EndPoint $ArrayName -Credential $Credential -IgnoreCertificateError
6464

6565

6666

0 commit comments

Comments
 (0)