Update main.js

This commit is contained in:
aksm-ms 2020-11-16 17:48:14 +05:30 committed by GitHub
commit f001fbb0b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}