Azure managed domain, I get 429 TooManyRequests throttling causing send failure.

Stelios 20 Reputation points
2026-11-25T05:59:45.23+00:00

Between 2026-11-25T04:55:57Z and subsequent retry cycles, repeatedly attempted outbound email sends through my sceduled app , received 429 TooManyRequests responses.

The impact appears isolated to the background email worker path. Normal web requests and other dependencies remained healthy. I tried to sent 10 emails per hour, well below the Azure Managed Domain limit. (100 / hour).

Evidence observed

  • Worker logs show:
    • ACS throttled (429 TooManyRequests)
      • Retry-After='0'
        • “Pausing sends until …”
          • “ACS send failed or paused; stopping this run, will retry next cycle”
          • Impact-window dependency call at 2026-11-25T04:55:09Z failed against the ACS email endpoint with 429
          • Next retry at 2026-11-25T05:02:13Z failed the same way
          • Retries recur approximately every 7 minutes, aligned with the worker’s next cycle
          • Only one app instance was active in the impact window: a159d600e5d3
  • Other signals do not indicate a broader outage:
  • GET /EmailApprovals/Index returned 200
  • SQL, OpenStreetMap, and credits API checks were successful
    • App Service checks showed no relevant change or health event The impact appears isolated to the background email worker path. Normal web requests and other dependencies remained healthy.
Azure Communication Services
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-25T06:00:58.31+00:00

    An Azure-managed ACS Email domain is limited to 5 sends per minute and 10 per hour per subscription, so the supported production resolution is to move the worker to a verified custom domain; managed-domain limits cannot be increased.^1^

    Why the worker is receiving 429

    The 100-per-hour limit applies to a custom domain, not an Azure-managed domain:

    Domain type Per minute Per hour Scope Increase available
    Azure-managed 5 10 Per subscription No
    Verified custom 30 100 Per subscription Yes

    Sending 10 messages per hour therefore operates exactly at the managed-domain ceiling, without headroom for:

    • a rolling-window boundary;
    • another sender using the same subscription quota;
    • failed or retried requests accruing against usage limits.

    ACS explicitly advises against immediate retries because requests continue to accrue against usage limits.^1^ A single active App Service instance rules out duplicate workers on that app, but not other ACS resources or senders consuming the same subscription-scoped allowance.

    Retry-After: 0 should not be treated as permission to retry immediately. Your seven-minute scheduler is already avoiding an immediate retry, but if the subscription remains at its rolling hourly limit, another attempt can still return 429.

    Immediate mitigation

    Until the domain is migrated:

    1. Stop new attempts long enough for the hourly quota window to replenish. Continuing every seven minutes can prolong throttling because those attempts also count toward service usage.
    2. Resume below both limits, with headroom—for example, one send every 7–10 minutes, rather than releasing ten near an hourly boundary.
    3. Serialize sends across every worker or application using ACS Email in that subscription.
    4. On 429:
      • honor a positive Retry-After;
      • if it is missing, zero, or invalid, apply bounded exponential backoff with jitter;
      • persist the message for a later run rather than retrying inside the same run.

    The ACS SDK retries throttled requests by default. If the worker already controls scheduling, disable or intercept SDK-level 429 retries so that SDK retries and worker retries do not stack. Microsoft documents adding a pipeline policy that surfaces 429 to the application.^2^

    For .NET, the documented pattern is:

    using Azure.Core.Pipeline;
    
    public sealed class Catch429Policy : HttpPipelineSynchronousPolicy
    {
        public override void OnReceivedResponse(HttpMessage message)
        {
            if (message.Response.Status == 429)
                throw new InvalidOperationException("ACS Email throttled");
    
            base.OnReceivedResponse(message);
        }
    }
    
    var options = new EmailClientOptions();
    options.AddPolicy(new Catch429Policy(), HttpPipelinePosition.PerRetry);
    var client = new EmailClient(connectionString, options);
    

    Catch that exception at the queue/worker boundary and reschedule the item; do not discard it.

    Production resolution

    Azure-managed domains are intended for testing. For production workloads and higher limits:

    1. In the Azure portal, open the Email Communication Services resource.
    2. Create and verify a custom domain.
    3. Configure its required DNS records and link it to the Communication Services resource.
    4. Change the worker’s sender address to the custom domain.
    5. Ramp traffic gradually while monitoring failures and sender reputation.
    6. If 30/minute or 100/hour is insufficient, submit an email quota increase request. Higher quotas are available only for verified custom domains.^3^

    If 429 continues below the managed-domain limit

    Collect ACS-specific evidence rather than repeating the App Service and dependency health checks already completed:

    1. On the Communication Services resource, open Monitoring → Diagnostic settings.
    2. Send these categories to Log Analytics:
      • Email Service Send Mail logs
      • Email Service Delivery Status Update Logs
      • Email Service User Engagement Logs
    3. Correlate all send attempts across the subscription around 2026-11-25T04:55Z, including successful calls and SDK retries. Send-mail logs expose request trends, recipient counts, size, traffic source, and correlation data.^4^
    4. Record the email operation/message IDs, UTC timestamps, response headers, ACS resource, region, sender domain, and SDK/version. The operation ID is the identifier Microsoft Support uses to investigate Send Email requests.^5^
    5. If no other sends explain the quota and 429 continues after a full quiet window, open Azure portal → Help + support → Create a support request and provide that evidence. A quota request will not raise an Azure-managed-domain limit, but Support can investigate persistent throttling that does not match the documented consumption.

    References

    1. Service limits for Azure Communication Services
    2. Throw an exception when email sending tier limit is reached (programming-language-javascript)
    3. Quota increase for email domains
    4. Email logs
    5. Troubleshooting in Azure Communication Services
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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