azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

Support using an existing container registry

Open davidfowl opened this issue 1 year ago • 6 comments

Today azd up will provision a container registry as part of the ACA environment. It should be possible to use a different container registry with the container apps environment.

That would mean that we need to support setting up the managed identity with an existing container registry to make sure pulling works.

davidfowl avatar Feb 25 '24 07:02 davidfowl

@ellismg as part of AKS/ACA enhancements @wbreza has added support for referencing existing container registry

Can we leverage/re-surface it in the context of Aspire too?

rajeshkamal5050 avatar Feb 27 '24 03:02 rajeshkamal5050

This also applies to the container apps environment

davidfowl avatar Feb 27 '24 03:02 davidfowl

Adding to next semester i.e., post GA feature. cc @vhvb1989 @ellismg @davidfowl

rajeshkamal5050 avatar Mar 05 '24 17:03 rajeshkamal5050

So there'll be no way to avoid creating a container registry

davidfowl avatar Mar 05 '24 19:03 davidfowl

So there'll be no way to avoid creating a container registry

@vhvb1989 @ellismg any way to control this elegantly? or have to infra synth, modify bicep to use existing container registry?

rajeshkamal5050 avatar Mar 07 '24 06:03 rajeshkamal5050

I second this feature since otherwise a container registry will be created for each container app and this is a waste of resources and money. Is it possible to change this manually?

Trubador avatar May 26 '24 22:05 Trubador

Any movement on this issue?

onionhammer avatar Jan 28 '25 20:01 onionhammer

This should be supported with https://github.com/dotnet/aspire/issues/9005

var acr = builder.AddAzureContainerRegistry("acr").PublishAsExisting(rg, name);

builder.AddAzureContainerAppEnvironment("env")
       .WithAzureContainerRegistry(acr);

davidfowl avatar May 15 '25 08:05 davidfowl