[QUERY] Creating ContainerApp with link to Azure ContainerRegistry
See original GitHub issueLibrary 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:
- Created 2 months ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist.
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.