An Azure service that identifies anomalies and defects early with time-series detection.
Hi Robert S
Tenant has been unblocked from product group yesterday.
Thank you for providing inputs during the course of investigation.
Attached case summary for reference.
Issue
Customer is encountering the following error during inference calls:
{'error': {'code': 'Forbidden', 'message': 'Your resource has been temporarily blocked because we detected unusual behavior.'}}
Changed to
"400 bad deployment error" post subscription was reactivated at customer
Done for customer
Reviewed backend for subscription activity - Suggested to reactivate the subscription
Took details as needed for security team
Escalated to engineering team for review and unblock.
Additional Recommendations to Avoid This Error
It is triggered by Azure Trust & Safety systems when usage patterns are detected as potentially abusive or anomalous (e.g., high-frequency requests, retry storms, or policy-sensitive content). [learn.microsoft.com]
Control Request Rate
- Avoid sudden spikes or burst traffic patterns.
- Implement client-side rate limiting to ensure steady request flow.
- High-frequency calls can trigger abuse detection systems. [learn.microsoft.com]
Fix Retry Logic
- Avoid aggressive retry loops.
- Implement exponential backoff with limited retries (2–3 max).
- Add random delay (jitter) between retries to prevent rapid repeated calls. [learn.microsoft.com]
Limit Concurrency
- Cap parallel requests (avoid bulk parallel execution like large batch
Promise.all()calls). - Ensure controlled concurrency (recommended ≤5–10 simultaneous calls).
- Excessive parallelism may be flagged as abnormal behavior. [learn.microsoft.com]
Validate and Sanitize Inputs
- Ensure prompts comply with Azure OpenAI content policies.
- Avoid unsafe, borderline, or ambiguous content that may trigger safety checks. [learn.microsoft.com]
Optimize Request Size
- Avoid unusually large payloads (prompt size, max tokens, tool payloads).
- Keep request sizes within reasonable limits to prevent anomalous detection. [learn.microsoft.com]
Monitor Usage Patterns
- Use Azure Monitor to track:
- Request rate spikes
- Token consumption patterns
- Identify and smooth out abnormal usage trends. [learn.microsoft.com]
Implement Resiliency Controls
- Add circuit breaker pattern to stop requests when repeated failures occur
- Use queue-based or throttled request processing
- Prevent cascading retries during failure scenarios
Important Note
- Once triggered, the block is enforced by the platform and typically requires cooldown or manual review via Azure Support. [learn.microsoft.com]
- Creating new deployments/resources may not bypass the block if the behavior persists. [learn.microsoft.com]
Please upvote this comment to help other users on same context.
Thank you.