Enable HTTPS for ACI Windows container

Clive Wickham 1 Reputation point
2022-07-28T16:40:51.063+00:00

I'm struggling to work out how I might enable HTTPS for a Windows container hosted on ACI. I thought a sidecar (Nginx or Caddy) sounded like a good way forward, but unfortunately multi-container groups are not supported for Windows containers. Also, deployment of Windows containers into a virtual network isn't supported either, so I don't know if that rules out using Application Gateway as an option? Sadly, Container Apps doesn't support Windows containers either. Can anyone recommend a viable way forward?

Many thanks in advance.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
636 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. rafalzak 3,216 Reputation points
    2022-08-30T08:18:47.143+00:00

    @ CliveW-1898,

    What if you create container registry and deploy container into App Services - it should allow you to use HTTPS for your container:
    https://learn.microsoft.com/en-us/azure/app-service/quickstart-custom-container?tabs=dotnet&pivots=container-windows-azure-portal

    1 person found this answer helpful.

  2. KarishmaTiwari-MSFT 18,442 Reputation points Microsoft Employee
    2022-08-03T02:09:54.917+00:00

    @Clive Wickham
    Apologies on delay on this, I was checking it internally.

    This article shows one way to expose a static, public IP address for a container group by using an Azure application gateway. Follow these steps when you need a static entry point for an external-facing containerized app that runs in Azure Container Instances.
    As long as the application gateway runs and the container group exposes a stable private IP address in the network's delegated subnet, the container group is accessible at this public IP address. Please check if this is something that might help your scenario.

    I am checking with ACI product group to see if we have any ETA for - Windows container in ACI support virtual network and multiple-container groups in the near future. I will share it here when I have an update.

    Let me know if you have further questions.

    0 comments No comments

  3. Clive Wickham 1 Reputation point
    2022-08-10T15:55:10.16+00:00

    Thanks for your reply @KarishmaTiwari-MSFT

    I followed the steps in the article ("Expose a static IP address for a container group") you provided a link to. Unfortunately, the az container create statement failed (with --os-type Windows parameter supplied), presumably because of the limitation I previously mentioned, detailed here: "At this time, deployments with Windows container groups are not supported in an Azure virtual network deployment."

    When I removed the --vnet and --subnet parameters, the az container create command succeeded, but this obviously means that the container group isn't part of the virtual network which makes this approach unworkable.

    Are the ACI product group able to provide an ETA for Windows container support in a virtual network deployment? And for Windows multiple-container groups?

    In the meantime, is there a viable way forward today using alternative Azure services?

    Many thanks.

    0 comments No comments