Skip to content

Commit eeaace3

Browse files
azure-sdkbenbp
andauthored
Handle multi-line string concatenation with Write-Warning (Azure#4321)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent 6976350 commit eeaace3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ try {
652652
}
653653
}
654654
catch {
655-
Write-Warning "The Object ID of the test application was unable to be queried. " + `
656-
"You may want to consider passing it explicitly with the 'TestApplicationOid` parameter."
655+
Write-Warning ("The Object ID of the test application was unable to be queried. " +
656+
"You may want to consider passing it explicitly with the 'TestApplicationOid` parameter.")
657657
throw $_.Exception
658658
}
659659

@@ -693,9 +693,9 @@ try {
693693
if ($principalOwnerAssignment.RoleDefinitionName -eq 'Owner') {
694694
Write-Verbose "Successfully assigned ownership of '$ResourceGroupName' to the Test Application '$TestApplicationId'"
695695
} else {
696-
Write-Warning "The 'Owner' role for '$ResourceGroupName' could not be assigned. " + `
697-
"You may need to manually grant 'Owner' for the resource group to the " + `
698-
"Test Application '$TestApplicationId' if it does not have subscription-level permissions."
696+
Write-Warning ("The 'Owner' role for '$ResourceGroupName' could not be assigned. " +
697+
"You may need to manually grant 'Owner' for the resource group to the " +
698+
"Test Application '$TestApplicationId' if it does not have subscription-level permissions.")
699699
}
700700
}
701701

0 commit comments

Comments
 (0)