Hello @OpenDental Developer ,
Thank you for submitting your question on Microsoft Q&A.
This typically points to a transient backend issue on Azure Notification Hubs rather than a misconfiguration on your side. Even though your region (West US) shows no outage in the Service Health dashboard, Notification Hubs sometimes throttle or return 503 Service Unavailable when:
- Backend load spikes (temporary service-side issue).
- High request concurrency from your app (even if you’re under limits, sudden bursts can trigger throttling).
- Template notification bugs (FCMv1 in particular has had instability with template sends).
Recommended steps to resolve the issue
Implement Retry Logic
- Wrap SendTemplateNotificationAsync() with exponential backoff retries.
- Microsoft recommends retrying on ServerBusyException or MessagingException. Example backoff: 2s → 4s → 8s → up to ~1 minute.
Check Azure Service Health (per-resource)
- In the Azure Portal → Notification Hub → Service Health → Resource Health
- This often shows localized transient issues even if the region-wide dashboard is green.
Validate Registration Payloads
- Ensure no malformed tags or template parameters.
- Known bug: very complex tag expressions or exceeding the limit (20 OR-only, 6 mixed) can cause 5xx errors.
Scale Out Usage
- If traffic is spiky, consider distributing sends (batching messages, using multiple hubs if needed).
In most cases, these 503 errors are short-lived service-side throttles and resolve after retry.