os name/version: Windows 10 / 10.0.19042 Build 19042
[ ] browser
name/version: Chrome
Describe the bug
When trying to use the loginWithUsernamePasswordWithAuthResponse or any login other than interactive the result is always an HTTP 503 error.
To Reproduce
Steps to reproduce the behavior: I put a sample code below run with "node file.js" command.
const msRestNodeAuth = require('@azure/ms-rest-nodeauth');
const { SubscriptionClient, SubscriptionModels, SubscriptionMappers } = require('@azure/arm-subscriptions');
msRestNodeAuth.loginWithUsernamePasswordWithAuthResponse('email@domain.com', "Password", { domain: "TheTenantID-UUID" }).then(
// msRestNodeAuth.interactiveLogin().then(
function (creds) {
const client = new SubscriptionClient(creds);
client.subscriptions.list().then(
function (subs) {
subs.forEach(
function (sub) {
console.log(Subscription "${sub.displayName}" SubscriptionID: ${sub.subscriptionId} State: ${sub.state});
}
);
}
);
}
).catch(
function (err) {
console.log(ERROR: ${err.message} Stack: ${err.stack})
}
);
Expected behavior
Login to Azure. Then I want to list the subscriptions and then all the resource groups and resources in it.
Interactive login works and lists the subscriptions.
Package Version: 3.0.6
To Reproduce Steps to reproduce the behavior: I put a sample code below run with "node file.js" command. const msRestNodeAuth = require('@azure/ms-rest-nodeauth'); const { SubscriptionClient, SubscriptionModels, SubscriptionMappers } = require('@azure/arm-subscriptions');
msRestNodeAuth.loginWithUsernamePasswordWithAuthResponse('email@domain.com', "Password", { domain: "TheTenantID-UUID" }).then( // msRestNodeAuth.interactiveLogin().then( function (creds) { const client = new SubscriptionClient(creds); client.subscriptions.list().then( function (subs) { subs.forEach( function (sub) { console.log(
Subscription "${sub.displayName}" SubscriptionID: ${sub.subscriptionId} State: ${sub.state}
); } ); } ); } ).catch( function (err) { console.log(ERROR: ${err.message} Stack: ${err.stack}
) } );Expected behavior Login to Azure. Then I want to list the subscriptions and then all the resource groups and resources in it. Interactive login works and lists the subscriptions.
Screenshots
Service Unavailable
HTTP Error 503. The service is unavailable.