File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Utils/azuretools-core/src/com/microsoft/azuretools/sdkmanage Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ public Mono<AuthMethodDetails> restoreSignIn(AuthMethodDetails authMethodDetails
153153 AuthConfiguration auth = new AuthConfiguration ();
154154 auth .setType (AuthType .SERVICE_PRINCIPAL );
155155 auth .setClient (authMethodDetails .getClientId ());
156- auth .setTenant (authMethodDetails .getTenantId ());
156+ if (CollectionUtils .isNotEmpty (authMethodDetails .getTenantIds ())) {
157+ auth .setTenant (authMethodDetails .getTenantIds ().get (0 ));
158+ } else {
159+ auth .setTenant (authMethodDetails .getTenantId ());
160+ }
161+
157162 auth .setEnvironment (Azure .az (AzureCloud .class ).get ());
158163 if (StringUtils .isNotBlank (authMethodDetails .getCertificate ())) {
159164 auth .setCertificate (authMethodDetails .getCertificate ());
You can’t perform that action at this time.
0 commit comments