Unable to create a Managed Certificate for a public Container App and fails without any error or stack trace

Lars Gjestang 5 Reputation points
2025-07-29T10:04:50.54+00:00

We received an email from Microsoft regards the new limitations for creating or renewing managed certificates. However, already 2 weeks ago this change seems to have affected both us and our customers (using the same application from Marketplace) and results in failure when trying to add a custom domain.

This is the Ingress for the Container App that needs to be mapped with a custom domain:

User's image

(FYI: The default is Transport=HTTP/1 and Insecure connection=Not allowed but the screenshot was just one of the tests after the defaults failed)

When following the guide to add a custom domain ("Managed Certificate", Subdomain, Adding CNAME and TXT to DNS provider) - the same method we have used on many clients upon now without issues - will succesfully validate the DNS records but no longer be able to create a managed certificated (which typically took 1-2 minutes before the changes in July). Checking the certificate status had the Certificate status "Pending" for over an hour
User's image

And after 1,5-2 hours the status changed to "Failed":

User's image

From all the threads and blog posts from Microsoft regards to the certificate updates we can't find any reason why this suddenly won't work anymore. In "actvity log" I am just getting a long list of "Read Managed Certificate in Managed Environment" with status "Running" - example:

"correlationId": "0ddb1cf5-6a58-444e-b2a5-09edc0d32ca7"

And here is the Corr Id, stilling with status "Running" even after the main status is "Failed":

"correlationId": "4e7ee1f0-934b-43d9-a3cc-3b9fbf40a67c"
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
{count} vote

1 answer

Sort by: Most helpful
  1. Lars Gjestang 5 Reputation points
    2025-08-05T08:47:53.4733333+00:00

    Another colleague opened a support ticket with Microsoft Team about same topic but we identified the issue ourself after some troubleshooting.

    To answer this thread:
    The Container App is Public (Ingress:Enabled, Traffic:Accept from Anywhere, IP Restrictions: Allow ALL). However it is part of a Container App Environment that was using a Network Security Group which limited the external access to ports that weren't specified to be opened. For the Managed Certificate to work it needs to ping with a HTTP (port 80) request. Once that was enabled the certificate was created within a few minutes and rest of application worked fine using Network Security Group.

    We found the Blog post and requirements from Microsoft to quite vague and should be improved to include this requirement.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.