Skip to content

Commit

Permalink
Handle multi-line string concatenation with Write-Warning (Azure#19930)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Broderick Phillips <[email protected]>
  • Loading branch information
azure-sdk and benbp authored Feb 2, 2023
1 parent be68206 commit 5053f65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@ try {
}
}
catch {
Write-Warning "The Object ID of the test application was unable to be queried. " + `
"You may want to consider passing it explicitly with the 'TestApplicationOid` parameter."
Write-Warning ("The Object ID of the test application was unable to be queried. " +
"You may want to consider passing it explicitly with the 'TestApplicationOid` parameter.")
throw $_.Exception
}

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

Expand Down

0 comments on commit 5053f65

Please sign in to comment.