Failed to fetch Kudu App Settings. Internal Server Error (CODE: 500)
See original GitHub issueType: Bug
Enter Task Name: Azure/functions-action@v1
Environment
- Server - Github actions
Issue Description
My app was working for months and I recently tried to update it and got this error.
I have searched the 'net high and low and have found similar errors, but nothing that matches this. None of the suggestions in those Issues/SO posts have helped. Examples:
Here’s my Action log:
Run Azure/functions-action@v1
with:
app-name: porscheoptioncodes
slot-name: production
package: Api/output
publish-profile: ***
respect-pom-xml: false
respect-funcignore: false
scm-do-build-during-deployment: false
enable-oryx-build: false
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: Api
DOTNET_VERSION: 3.1.301
DOTNET_ROOT: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet
Successfully parsed SCM credential from old publish-profile format.
Using SCM credential for authentication, GitHub Action will not perform resource validation.
Error: Execution Exception (state: ValidateAzureResource) (step: Invocation)
Error: When request Azure resource at ValidateAzureResource, Get Function App Settings : Failed to acquire app settings from https://<scmsite>/api/settings with publish-profile
Error: Failed to fetch Kudu App Settings.
Internal Server Error (CODE: 500)
Error: Error: Failed to fetch Kudu App Settings.
Internal Server Error (CODE: 500)
at Kudu.<anonymous> (D:\a\_actions\Azure\functions-action\v1\node_modules\azure-actions-appservice-rest\Kudu\azure-app-kudu-service.js:62:23)
at Generator.next (<anonymous>)
at fulfilled (D:\a\_actions\Azure\functions-action\v1\node_modules\azure-actions-appservice-rest\Kudu\azure-app-kudu-service.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: Deployment Failed!
My yaml:
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'porscheoptioncodes'
slot-name: 'production'
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_xxx}}
My PublishSettings file which is stored in:
<publishData>
<publishProfile profileName="PorscheOptionCodes - Web Deploy"
publishMethod="MSDeploy"
publishUrl="porscheoptioncodes.scm.azurewebsites.net:443"
msdeploySite="PorscheOptionCodes"
userName="$PorscheOptionCodes"
userPWD="<pwd>"
destinationAppUrl="http://porscheoptioncodes.azurewebsites.net"
SQLServerDBConnectionString=""
mySQLDBConnectionString=""
hostingProviderForumLink=""
controlPanelLink="http://windows.azure.com"
webSystem="WebSites">
<databases />
</publishProfile>
...
</publishData>
I went to the Azure Portal/Deployment Center and did Disconnect
and reconnected, having it re-generate the workflow file.
After doing this, I found I had to change 'AZURE_FUNCTIONAPP_PACKAGE_PATHfrom
.to
Api` (because that’s what my client for this function expects).
So now my .yml is:
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy dotnet core app to Azure Function App - PorscheOptionCodes
on:
push:
branches:
- master
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'Api' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '3.1.301' # set this to the dotnet version to use
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v2
- name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: 'Resolve Project Dependencies Using Dotnet'
shell: pwsh
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --configuration Release --output ./output
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'PorscheOptionCodes'
slot-name: 'production'
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_xyz }}
The same error occurs.
I’m at my wits end. As I note this was working for months (last working commit was last September). Something changed between then on the Azure side that broke this, I believe.
Happy to be proven wrong, but I don’t know how to dive deeper to figure it out.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9
Top GitHub Comments
Same here, my deploy workflow was working 6 days ago and now it’s broken. I did not change anything on the workflow file or Azure
This is the error I’m seeing.
Eventually tracked out problem down to a mixture of the blob storage account not having table permission and not being public endpoint. If we have to swap to private endpoint, we’ll have to get a private build agent.