Could you please provide steps to reproduce and screenshots so that we can work out what's wrong? Thanks @ahmelsayed
I have
Azure Functions Core Tools (1.0.6)
Function Runtime Version: 1.0.11351.0
in the directory of the local Function App I issue a
func azure login -u [email protected] -w password
with my _MS Account_ owning the Azure subscription
I get
Sequence contains no elements
with an AAD account (directory linked to the same subscription) it works
Having the same problem, if I use func azure login -u [email protected] -w password it always returns Sequence contains no elements.
Trying to automate the deployment process and I can't see a different way to do this.
I received the error when trying to publish an Azure Function project from a Mac.
After reading the comments, I tried to login first
$ func azure login -u [email protected]
password: *********
Subscription Current
------------ -------
Visual Studio Ultimate with MSDN (xxxxxxx-c000-4bd1-84b3-xxxxxxxxx) True
and then I can publish successfully. Not sure how it resolves the issue, but anyway I can move on.
I have the same error.
Steps (1.x):
func azure login - interactive login func azure functionapp list- Sequence contains no elements Another stpes:
func azure login -u [email protected] -p ** - "Sequence contains no elements" Do you have any workarounds?
I think it's related to MFA, because when I use interactive login, it doesn't ask me for a security code.
@lextm Really thanks to saving my few hours. this is work.
See https://github.com/Azure/azure-powershell/issues/3108
About using Live Accounts. An incomplete feature, in my opinion.
Most helpful comment
Having the same problem, if I use
func azure login -u [email protected] -w passwordit always returnsSequence contains no elements.Trying to automate the deployment process and I can't see a different way to do this.