sparse-intern-71089
09/27/2023, 2:02 PMmodern-quill-17695
09/28/2023, 1:06 PM_ = new ContainerApp("my-app", new ContainerAppArgs{
Template = new TemplateArgs
{
Containers = new[]
{
new ContainerArgs
{
Image = $"my-image-url",
Name = "image-name"
}
},
}
});
Note that you separately need to make sure the ACA instance has the permissions to pull from the container registry.gorgeous-vegetable-27176
09/28/2023, 1:28 PMmodern-quill-17695
09/28/2023, 1:38 PMmy-image-version
with the specific version you want to use. Assuming you're using the Azure Container Registry, it'll be something like <http://myregistry.azurecr.io/my-repo/my-image:111|myregistry.azurecr.io/my-repo/my-image:111>
and then change that to the next version like <http://myregistry.azurecr.io/my-repo/my-image:222|myregistry.azurecr.io/my-repo/my-image:222>
.
You'll have to do some extra work to pass that version to Pulumi. In the past when I've done this we had our CI/CD pipeline push the image to the container registry, then the pipeline did a text replace inside the Pulumi Stack config to set the version we just pushed, then the Pulumi app had to pull that from config to generate the URL to the container registry. It's a hassle, but Pulumi doesn't have a way to pass in parameters when it runs.