'Azure functionapp publish Failing on 'Syncing triggers...'
I'm trying to publish an Azure function using the Azure Function Core Tools CLI.
func azure functionapp publish "<FUNCTION APP NAME>"
The process completes the build and deploy quickly but then takes 2-3 minutes 'Syncing triggers...' before failing.
This is the result:
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.85
Getting site publishing info...
Creating archive for current directory...
Uploading 4.25 MB [###############################################################################]
Upload completed successfully.
Deployment completed successfully.
Syncing triggers...
Syncing triggers...
Syncing triggers...
Syncing triggers...
Syncing triggers...
Syncing triggers...
Error calling sync triggers (BadRequest). Request ID = '<REQUEST ID GUID>'.
func --version
3.0.3904
The function is deployed to Azure (checked in the portal) but the Get Function URL button is disabled.
Any help with this gratefully received.
Solution 1:[1]
The AzureWebJobsStorage setting in local.settings.json was still configured to UseDevelopmentStorage=true.
I assume this overwrote the value in Azure when I'd previously published local settings using the -i -y switches.
The publish worked once I updated the value to the Azure Storage connection string and pushed this setting:
DefaultEndpointsProtocol=https;AccountName=<ACCOUNT NAME>;AccountKey=<ACCOUNT KEY>;EndpointSuffix=core.windows.net
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 |
