Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure App Service deploy updating App Service Configuration linuxFxVersion settings to the wrong value #19286

Closed
salhidev opened this issue Nov 15, 2023 · 3 comments

Comments

@salhidev
Copy link

salhidev commented Nov 15, 2023

Issue Description

The Azure App Service deploy task updating the App Service Configuration settings to a wrong value:
Trying to update App Service Configuration settings. Data: {"linuxFxVersion":"6.0 (DOTNETCORE|6.0)","appCommandLine":"dotnet MyService.dll"}
image

This results to setting the stack in the app service configurations from .NET to nothing selected. Which breaks the app service.
Looking at the change log I see this :

image

Operation system

Linux

Relevant log output

2023-11-14T23:00:54.5617566Z Task         : Azure App Service deploy
2023-11-14T23:00:54.5617825Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2023-11-14T23:00:54.5618665Z Version      : 4.230.7
2023-11-14T23:00:54.5618800Z Author       : Microsoft Corporation
2023-11-14T23:00:54.5619039Z Help         : https://aka.ms/azureappservicetroubleshooting
2023-11-14T23:00:54.5619378Z ==============================================================================
2023-11-14T23:00:55.3020523Z Got service connection details for Azure App Service:'MyService'
2023-11-14T23:00:57.2136133Z Package deployment using ZIP Deploy initiated.
2023-11-14T23:01:10.2150529Z Deploy logs can be viewed at https://MyService.scm.azurewebsites.net/api/deployments/c3c0a30a-7d66-49b4-a4c9-e8279f5c8af7/log
2023-11-14T23:01:10.2153697Z Successfully deployed web package to App Service.
2023-11-14T23:01:10.4577113Z Trying to update App Service Configuration settings. Data: {"linuxFxVersion":"6.0 (DOTNETCORE|6.0)","appCommandLine":"dotnet MyService.dll"}
2023-11-14T23:01:21.9195733Z Updated App Service Configuration settings.
2023-11-14T23:01:23.2122568Z Successfully added release annotation to the Application Insight : lisva-test
2023-11-14T23:01:24.7590363Z Successfully updated deployment History at https://test2-lisva-MyService.scm.azurewebsites.net/api/deployments/96581700002883216
2023-11-14T23:01:26.0557174Z App Service Application URL: http://MyService.azurewebsites.net
2023-11-14T23:01:26.3798227Z ##[section]Finishing: MyService Deploy
2023-11-14T23:01:26.3913628Z ##[section]Starting: Finalize Job
2023-11-14T23:01:26.3949813Z Cleaning up task key
2023-11-14T23:01:26.3951281Z Start cleaning up orphan processes.
2023-11-14T23:01:26.4291874Z ##[section]Finishing: Finalize Job
2023-11-14T23:01:26.4364926Z ##[section]Finishing: Run on agent

Looking at the template, the linuxFxVersion value should be :
"linuxFxVersion": "DOTNETCORE|6.0"
And Not
"linuxFxVersion": "6.0 (DOTNETCORE|6.0)"

@v-mohithgc
Copy link
Contributor

v-mohithgc commented Nov 16, 2023

Hi @salhidev , was this task working fine before(2-3 weeks back) with the same configuration? if so can you let me know the task version used in success run (eg 4.229.0)

@salhidev
Copy link
Author

@v-mohithgc the problem happens sporadically, I don't see any pattern.

Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants