Upgrade to .NET 8 and fix Azure Container Services compatibility#54
Draft
Upgrade to .NET 8 and fix Azure Container Services compatibility#54
Conversation
Agent-Logs-Url: https://github.com/sayedimac/docker-app/sessions/69d2993c-b3fb-4851-8390-232392c5b552 Co-authored-by: sayedimac <25403967+sayedimac@users.noreply.github.com>
|
Copilot
AI
changed the title
[WIP] Update app and Docker components for Azure Container services
Upgrade to .NET 8 and fix Azure Container Services compatibility
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


.NET 6 reached EOL in November 2024, breaking this demo app across ACI, AKS, and ACA. Additionally, .NET 8 container images default to port 8080 (non-root user) instead of 80, requiring coordinated updates across all deployment artifacts.
App & Docker
net6.0→net8.0in.csprojsdk:8.0/aspnet:8.0; addedENV ASPNETCORE_HTTP_PORTS=8080,EXPOSE 8080Kubernetes Manifests
containerPort: 80→containerPort: 8080targetPort: 8080(external port 80 preserved)GitHub Actions Workflows
deploy_to_aca.yml/deploy_to_aci.yml: replaced references to non-existentIaC/aca.bicep/IaC/aci.bicepwith correct paths (azd/aca/modules/aca.bicep,azd/aci/modules/aci.bicep); fixed double-slash; passedcontainerPort=8080deploy_to_aci.yml: fixed ACR template path (azd/aci/modules/acr.bicep→azd/acr/modules/acr.bicep)Bicep Infrastructure
loginServer,name,adminUsername,adminPassword) usinglistCredentials(); updated API version to2023-07-01listCredentialschild resource withlistCredentials()function call; updated API versions; default port 8080; fixedcpustring→decimal typeazd/aca/main.bicep+infra.bicep: rewrote — were incorrectly deploying ACI resources via non-existentcontainer-instance.bicep; now correctly deploy Container Apps viaaca.bicepazd/aks/main.bicep+infra.bicep: rewrote — were referencing non-existentcontainer-registry.bicep/container-instance.bicep; now deploy ACR + AKS cluster via existing modules