azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Misleading Error Message - Storage Account Invalid but Error Message complains about Remote build

Open DylanMsft opened this issue 3 years ago • 0 comments

I was recently working with an Azure customer who was unable to publish their function because the name of their storage account was incorrect. The error message that function core tools provided was about remote build instead. This lead to troubleshooting the wrong issue.

Eventually, the customer was able to diagnose the issue by adding the setting WEBSITE_CONTENTAZUREFILECONNECTIONSTRING.

When adding this app setting via the portal, an active check is done whether the storage account can be reached.

The error message from functions core tools could have given something more useful than it did to cause the customer to run that check earlier:


func azure functionapp publish {FunctionName}

Getting site publishing info...

Remote build is a new feature added to function apps.

Your function app {AppName} does not support remote build as it was created before August 1st, 2019.

Please use '--build local' or '--build-native-deps'.

For more information, please visit [https://aka.ms/remotebuild]


Does not give much to suggest that the issue is with an invalid storage account.

DylanMsft avatar Aug 22 '22 22:08 DylanMsft