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

az webapp deploy does not auto-detect zip file type if there are more than one '.'s in the file name #25497

Closed
AlainSchoorl opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
app-service-deployment Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-triage This is a new issue that needs to be triaged to the appropriate team. Web Apps az webapp

Comments

@AlainSchoorl
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az webapp deploy

Warnings:

Deployment type: static. To override deployment type, please specify the --type parameter. Possible values: war, jar, ear, zip, startup, script, static

Errors:

An error occured during deployment. Status Code: 400, Details: "Path must be defined for type=static"

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Have a webapp that can be deployed to in Azure
  • Create a zip that can be deployed to that web app
  • Name that zip test.example.zip
  • az webapp deploy -n {webAppName} -g {resourceGroupName} --src-path test.example.zip

Expected Behavior

The command should automatically detect that the file is a zip and use deployment type "zip" instead of deployment type "static".

Environment Summary

Windows-10-10.0.19044-SP0
Python 3.10.8
Installer: MSI

azure-cli 2.45.0

Extensions:
azure-devops 0.26.0

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Additional Context

The command works for a file named example.zip, it appears to not work when more '.'s are added to the file name.

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Web Apps az webapp CXP Attention This issue is handled by CXP team. Auto-Assign Auto assign by bot app-service-deployment labels Feb 17, 2023
@ghost ghost assigned btardif Feb 17, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 17, 2023

route to CXP team

@btardif btardif assigned jvano and unassigned btardif Jun 14, 2023
@btardif btardif added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jun 14, 2023
@btardif btardif added this to the July 2023 (2023-08-01) milestone Jun 14, 2023
@btardif btardif assigned dannysongg and unassigned jvano Jun 19, 2023
avgale pushed a commit to avgale/azure-cli that referenced this issue Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-service-deployment Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-triage This is a new issue that needs to be triaged to the appropriate team. Web Apps az webapp
Projects
None yet
Development

No branches or pull requests

5 participants