question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The parameter LinuxFxVersion has an invalid value

See original GitHub issue

Question, Bug, or Feature?
Type: Bug

Enter Task Name: AzureRmWebAppDeployment@4

Environment

  • Server - Azure Pipelines

  • Agent - Hosted

Issue Description

I used the YAML pipeline assistant to create this task:

- task: AzureRmWebAppDeployment@4
  inputs:
    ConnectionType: 'AzureRM'
    azureSubscription: 'XXXX'
    appType: 'webAppLinux'
    WebAppName: 'XXXX'
    packageForLinux: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
    RuntimeStack: 'DOTNETCORE|3.0'
    enableCustomDeployment: true
    DeploymentType: 'zipDeploy'

But when it runs, I get the following error:

Error: Failed to patch App Service ‘XXXX’ configuration. Error: BadRequest - The parameter LinuxFxVersion has an invalid value. (CODE: 400)

The code is being deployed to a Web App (.NET Core 3.0 stack) on a Linux App Service Plan.

Task logs

logs_71.zip

Error logs

##[debug][PATCH]https://management.azure.com/subscriptions/XXXXXXXX-7c9b-4726-9bdb-8dea951e5b6b/resourceGroups/XXXX/providers/Microsoft.Web/sites/XXXX/config/web?api-version=2016-08-01 ##[debug]Deployment Failed with Error: Error: Failed to patch App Service ‘XXXX’ configuration. Error: BadRequest - The parameter LinuxFxVersion has an invalid value. (CODE: 400) ##[debug]task result: Failed ##[error]Error: Failed to patch App Service ‘’ configuration. Error: BadRequest - The parameter LinuxFxVersion has an invalid value. (CODE: 400) ##[debug]Processed: ##vso[task.issue type=error;]Error: Failed to patch App Service ‘XXXX’ configuration. Error: BadRequest - The parameter LinuxFxVersion has an invalid value. (CODE: 400) ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Failed to patch App Service ‘XXXX’ configuration. Error: BadRequest - The parameter LinuxFxVersion has an invalid value. (CODE: 400)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
juanluelguerrecommented, Nov 26, 2019

Hey @eaarora-ms , In my case, everything works properly after create a new Azure App Service (Containers) from scratch.

Thanks.

0reactions
eaarora-mscommented, Dec 3, 2019

Please comment to re-open the issue if you see it again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"The parameter LinuxFxVersion has an invalid value" when ...
Reason: Your app service plan is not Linux, actually it's Windows. Windows host doesn't have parameter LinuxFxVersion.
Read more >
Solved: The parameter LinuxFxVersion has an invalid value ...
NET 6 runtime to a Linux App Service plan using ARM Templates or Azure Bicep? I came across two pitfalls that can both...
Read more >
Resolving "The parameter LinuxFxVersion has an invalid ...
Resolving "The parameter LinuxFxVersion has an invalid value" Error ... given that Visual Studio was having difficulty locating the web app.
Read more >
The parameter LinuxFxVersion has an invalid value.
I'm trying to update an Azure App Service using the Docker support. The deploy step fails (names abbreviated) with error]Error: Failed to ...
Read more >
the parameter linuxfxversion has an invalid value! - MSDN
I now need to host a Node JS App and therefore needs a Linux Web app. When trying to deploy one using an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found