Skip to content

Customizing image names and tags when deploying with azd in Aspire #9932

@snavarropino

Description

@snavarropino

Hi team,

I'm deploying an API using Azure DevOps pipelines, following the workflow recommended by Aspire and using azd for infrastructure and deployment.

I noticed that the container image names follow the pattern, and I understand that I can customize those names changing my service name or modifying azule.yml file generated after I run azd init:

<name-defined-in-azure.yaml>/<service-name>-<azd-environment>

Example: tasks/api-tasks-staging

However, the image tags generated during deployment seem to follow an opaque format like:

azd-deploy-1750241083  
azd-deploy-1750235217

I would like to customize these tags so that they include meaningful identifiers such as the commit SHA or build ID, to improve traceability between commits/builds and container images.

Is there currently a way to configure how the tags are generated by azd or the Aspire tooling? If not, could support for this be considered in future releases?

Thanks for the great work on Aspire!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions