The parameter LinuxFxVersion has an invalid value
See original GitHub issueQuestion, 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
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:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hey @eaarora-ms , In my case, everything works properly after create a new Azure App Service (Containers) from scratch.
Thanks.
Please comment to re-open the issue if you see it again.