Support local test resources behavior with provisioner config (#3408)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2022-03-09 14:04:26 -08:00 committed by GitHub
parent e077374ea5
commit 31edf57add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {