Skip to content

Slash '/' in 'name:' of azure.yaml will break service packaging #4638

@crpietschmann

Description

@crpietschmann

Output from azd version
Run azd version and copy and paste the output here:

azd version 1.11.0 (commit 5b92e0687e1fa96dfc8292f4b900c0c58610b6a5)

Describe the bug
When the name: within azure.yaml contains a slash / character, it breaks the packaging of services.

error that ocurrs:

root@MacBookPro azd-react-bootstrap-dashboard # azd package api

Packaging services (azd package)

  (x) Failed: Packaging service api

ERROR: failed packaging service 'api': failed when creating zip package to deploy api: open /tmp/build5nines/azd-react-bootstrap-dashboard-api-azddeploy-1734478898.zip: no such file or directory

To Reproduce

  1. change the name: of the template in the azure.yaml file to have a slash / character in it; such as `build5nines/azd-react-bootstrap-dashboard'
  2. add a service for a web project, such as a node.js app

Expected behavior
It's expected that the service packaging complete successfully, or gives a warning that the name contains an invalid character.

root@MacBookPro azd-react-bootstrap-dashboard # azd package api     

Packaging services (azd package)

  (✓) Done: Packaging service api
  - Package Output: /tmp/build5nines-azd-react-bootstrap-dashboard-api-azddeploy-1734479080.zip

  (-) Skipped: Packaging service dashboard

Environment
Information on your environment:
* Language name and version: Node.js v23.3.0
* IDE and version : Latest VS Code
* OS: macOS

Additional context
Add any other context about the problem here.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions