Check! In Serverless framework for Azure, when got an authentication error
When I had tried to use Serverless framework to deploy Faas on Azure, I got an error below.
Error
Serverless: Error logging into azure
Error — — — — — — — — — — — — — — — — — — — — — — — — —
Error: Authentication returned an empty list of subscriptions. Try another form of authentication. See the serverless-azure-functions README for more help

Reason
This error has occurred when the target directory of Azure has no subscription.
As evidence, the subscription array in the authentication cache file ( ~/.azure/slsTokenCache.json ) is empty like below.
Solutions
There are two ways.
- Remove the cache above and set your available directory as default directory of Azure account available(See below), then try it again.
- Use another authentication with using Service Principal
— See https://github.com/serverless/serverless-azure-functions#advanced-authentication
To set your default directory on Azure portal, see the following steps.

Has solved? Enjoy serverless development!