An Azure service that provides an event-driven serverless compute platform.
Hi @Joe K ,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It looks like you’ve run into the site-scoped certificate limit on a Flex Consumption function app. In the Flex Consumption (Linux) hosting model, all certificates you bind including free App Service Managed Certificates (ASMC) count toward a per-app limit of three private certificates. Since you successfully created ASMCs for your first three domains, any additional ASMCs will fail with that “pending managed certificate failed unexpectedly” error once you hit the cap.
Here’s what you can do:
- Clean up existing certificates
- In the Azure portal, go to your Function App → Settings → Certificates.
- You’ll see up to three “Private certificates” listed (this includes your ASMCs).
- Remove any certificates you no longer need to free up slots.
- Recreate the ASMC
- Once you have fewer than three private certificates, go back to Settings → Custom domains.
- Select Add custom domain, choose App Service Managed Certificate, and bind the certificate. It should now issue successfully.
- Consider longer-term options If you need more than three managed certificates on one app, you can:
- Consolidate subdomains under a single wildcard certificate (purchased or via a front-end like Azure Front Door).
- Spread domains across multiple function apps.
- Migrate to an App Service Plan where site-scoped certificate limits don’t apply.
- (Optional) Double-check DNS and public accessibility • Ensure your CNAME or A records and the “asuid” CNAME for domain validation are correct and propagated. • Confirm there are no IP restrictions or private endpoints blocking DigiCert’s HTTP token validation.
Hope that helps you get past the cap and bind your next domain without a hitch!
References:
Note: This content was drafted with the help of an AI system.