question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUERY] Creating ContainerApp with link to Azure ContainerRegistry

See original GitHub issue

Library name and version

Azure.ResourceManager.AppContainers 1.0.3 & Azure.ResourceManager.ContainerRegistry 1.1.0

Query/Question

There seems to be a little confusion here on how Azure.ResourceManager.AppContainers and Azure.ResourceManager.ContainerRegistry work together.

Heres some proto code to show what I’m talking about.

//so we load our container registry
var registries = await arm.GetContainerRegistriesAsync();
//then we select the first registry
var registry = registries.First();
//then create a new container app configuration
var appConfig = new ContainerAppConfiguration()
{
    Ingress =
        {
            AllowInsecure = false,
            TargetPort = service.dockerProfile.InternalPort,
            ExposedPort = service.dockerProfile.ExternalPort,
            Transport = Azure.ResourceManager.AppContainers.Models.ContainerAppIngressTransportMethod.Http,
            External = service.dockerProfile.ExternalPort is not null
        },
    Registries =
    {
        //It is unclear how to use the above registry here
    }
};

var container = await arm.CreateContainerApp(service.containerAppName, new(Azure.Core.AzureLocation.SouthCentralUS)
{
    EnvironmentId = environment.Id,
    Configuration = appConfig
});

If someone can answer this I’d be happy to throw up some documentation so its not asked again. I couldnt find any documentation on this.

Environment

No response

Issue Analytics

  • State:open
  • Created 2 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Aug 4, 2023

Thank you for your feedback. Tagging and routing to the team member best able to assist.

0reactions
github-actions[bot]commented, Aug 16, 2023

Hi @Arcalise08. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial: Build and deploy your app to Azure Container Apps
The az containerapp up command is a fast and convenient way to build and deploy your app to Azure Container Apps using a...
Read more >
Deploy an existing container image with the command line
Deploy an existing container image to Azure Container Apps with the Azure CLI or PowerShell.
Read more >
az containerapp
Create one or more Container Apps in a new or existing Container App Environment from a Compose specification. Commands to manage containerapp connections....
Read more >
az containerapp registry
Show details of a container registry. az containerapp registry list. List container registries configured in a container app. Azure CLI
Read more >
Tutorial: Build and run a custom image in Azure App Service
A step-by-step guide to build a custom Linux or Windows image, push the image to Azure Container Registry, and then deploy that image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found