Azure / Azure/azure-functions-core-tools

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

Open
#3,132 0 comments 0 reactions 0 assignees View on GitHub
Deployment
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `func azure functionapp publish {FunctionName}` and compare the reported remote-build error with the storage account configuration, including `WEBSITE_CONTENTAZUREFILECONNECTIONSTRING`. Done means an invalid or unreachable storage account produces an actionable message that directs troubleshooting toward the storage account instead of remote build.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.