Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

TypeError when on free-trial/pay-as-you-go subscription #250

Open
@medikoo

Description

@medikoo

When trying to deploy service when being logged in to Free Trial or Pay-As-You-Go subscription, the deployment crahes with:

Type Error ---------------------------------------------
 
  TypeError: Cannot read property 'id' of undefined
    at AzureLoginPlugin.login (/Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/login/azureLoginPlugin.js:37:192)

As we learned through testing, the workaround for that is to set manually azureSubId, azureServicePrincipalTenantId, azureServicePrincipalClientId and azureServicePrincipalPassword env variables.

Still it'll be good that plugin either handles that transparently, or exposes clear instructions to user (with what values what env vars needs to be assigned), instead of throwing non informative TypeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv1issues found on v1.x or feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions