async callCliLogin()

in src/Cli/AzureCliLogin.ts [138:149]


    async callCliLogin(args: string[], methodName: string) {
        core.info(`Attempting Azure CLI login by using ${methodName}...`);
        args.unshift("login");
        if (this.loginConfig.allowNoSubscriptionsLogin) {
            args.push("--allow-no-subscriptions");
        }
        await this.executeAzCliCommand(args, true, this.loginOptions);
        if (this.loginConfig.subscriptionId) {
            await this.setSubscription();
        }
        core.info(`Azure CLI login succeeds by using ${methodName}.`);
    }