Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support deployment of containers to App Service #1608

Open
pamelafox opened this issue Feb 23, 2023 · 3 comments
Open

Support deployment of containers to App Service #1608

pamelafox opened this issue Feb 23, 2023 · 3 comments
Labels
Milestone

Comments

@pamelafox
Copy link
Member

I'd like to use AZD to deploy to Azure App Service BYOC, as shown in this article:
https://foldr.uk/azure-bicep-app-service-custom-container

Should it be possible? It requires passing the image URL as the runtime version of the App Service app.

I've started down the path of creating a template, but want to check here before I bang my head against a wall too much.

@ghost ghost added the needs-triage For new issues label Feb 23, 2023
@weikanglim
Copy link
Contributor

@pamelafox

I'm guessing the deploy flow for App Service BYOC would look like:

  1. A dockerfile needs to be built, and uploaded to a container registry.
  2. After that, a bicep deployment needs to occur to update the linuxFxVersion to point to the latest image.

Unfortunately, azd makes an assumption that appservice hosts will work through zipdeploy by building and zipping the code artifact, which would be inconsistent with the deployment flow above. So I don't think targeting an appservice will work.

In many ways, the deployment flow is very, very close to containerapp targets. I suspect as a PoC (and as an informing decision to how azd could support it), you could use an existing azd project that targets a containerapp, and simply add the bicep definition for service plan + app service to the bicep module targeted by the containerapp service. This will end up deploying the container to both container app AND also app service, and you should see that the app service works as normal.

@weikanglim weikanglim added discuss and removed needs-triage For new issues labels Feb 24, 2023
@rajeshkamal5050 rajeshkamal5050 added this to the Backlog milestone Mar 2, 2023
@weikanglim weikanglim changed the title [Issue] Possible to deploy Azure App Service BYOC? Support deployment of containers to App Service Mar 2, 2023
@kurt-mueller-osumc
Copy link

kurt-mueller-osumc commented Mar 7, 2024

@weikanglim Could I do this for a function app where I bring my own container?

Similar to what you were describing, right now I build and push the function app image to a private azure container registry and then the function app detects the new image, pulls it, and deploys it as a container.

@aaronpowell
Copy link
Contributor

aaronpowell commented Jun 4, 2024

I made a start on this last year but shifting priorities meant I wasn't able to get it through to completion. PR #2776 might be a good starting point for someone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants