'TypeError - Cannot Read property 'AzureSubscriptionId' of undefined - unable to publish bot in Bot Framework Composer

Recently I was unable to publish my bot to Azure using publishing profile.

I was getting: TypeError - Cannot Read property 'AzureSubscriptionId' of undefined error.

The bot ran locally just fine.



Solution 1:[1]

The error was due to incorrect LUIS prediction resource specified in my publishing profile:

"luisResource":"xxxxxx"

I'm posting it here since the error message was really unhelpful and it took me a while to troubleshoot!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KRASSUSS