Skip to content

Commit 92933be

Browse files
azure-sdkbenbp
andauthored
Support local test resources behavior with provisioner config (Azure#27527)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
1 parent 0d18ce1 commit 92933be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,7 @@ try {
407407
Write-Verbose "Location was not set. Using default location for environment: '$Location'"
408408
}
409409

410-
if (!$CI) {
411-
410+
if (!$CI -and $PSCmdlet.ParameterSetName -ne "Provisioner") {
412411
# Make sure the user is logged in to create a service principal.
413412
$context = Get-AzContext;
414413
if (!$context) {

0 commit comments

Comments
 (0)