Support local test resources behavior with provisioner config (#3408)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
parent
e077374ea5
commit
31edf57add
@ -407,8 +407,7 @@ try {
|
||||
Write-Verbose "Location was not set. Using default location for environment: '$Location'"
|
||||
}
|
||||
|
||||
if (!$CI) {
|
||||
|
||||
if (!$CI -and $PSCmdlet.ParameterSetName -ne "Provisioner") {
|
||||
# Make sure the user is logged in to create a service principal.
|
||||
$context = Get-AzContext;
|
||||
if (!$context) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user