mirror of
https://github.com/azure/login.git
synced 2026-06-08 10:47:06 +00:00
Update main.js
This commit is contained in:
parent
b4fcf5d07d
commit
f001fbb0b9
1 changed files with 1 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ function main() {
|
|||
throw new Error("Not all values are present in the creds object. Ensure subscriptionId is supplied.");
|
||||
}
|
||||
// Attempting Az cli login
|
||||
console.log(`ak - clientId: ${servicePrincipalId}`);
|
||||
if (allowNoSubscriptionsLogin) {
|
||||
yield executeAzCliCommand(`login --allow-no-subscriptions --service-principal -u "${servicePrincipalId}" -p "${servicePrincipalKey}" --tenant "${tenantId}"`, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue