-
Notifications
You must be signed in to change notification settings - Fork 3.5k
'az functionapp deploy' with zip file sends wrong content-type #33688
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botFunctionsaz functionappaz functionappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Description
Activity
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botFunctionsaz functionappaz functionappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
When deploying a zip file from 'az functionapp deploy' it sends the content type as
application/octet-streamwhich causes azure to return a HTTP 415 "Unsupported Media Type". It should sendapplication/zip.Related command
az functionapp deploy --resource-group XXX --name XXX --src-path XXX.zipErrors
An error occurred during deployment. Status Code: 415, Please visit …/api/deployments/latest to get more information about your deployment
Issue script & Debug output
Expected behavior
Zip gets deployed
Environment Summary
azure-cli 2.87.0
core 2.87.0
telemetry 1.1.0
Extensions:
ssh 2.0.6
Dependencies:
msal 1.36.0
azure-mgmt-resource 24.0.0
Python location '/usr/local/Cellar/azure-cli/2.87.0/libexec/bin/python'
Config directory '/Users/…/.azure'
Extensions directory '/Users/…/.azure/cliextensions'
Python (Darwin) 3.13.14 (main, Jun 10 2026, 12:24:04) [Clang 17.0.0 (clang-1700.6.4.2)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
This patch fixes it: