Error 503 "Service Unavailable" when Using Azure Communications Services in Logic Apps

Gustavo Fechine 0 Reputation points
2023-06-14T19:13:06.8266667+00:00

The setup

I have two Azure Logic Apps that utilize the "Send email (Preview)" action from the "Azure Communications Services Email" connector to send emails to users of a basic service that I have developed. One of the Logic Apps is in Brazil South Azure region to enhance latency for my users, while the other one is situated in the East US 2 region because it offers cost benefits and already exhibits a high response time, making latency less of a concern.

The problem

When I initially configured both logic apps last year, they functioned properly. However, in recent weeks, I've observed that the logic app in the Brazil South location consistently fails. Upon investigation, I discovered that the issue stems from the "Send email (Preview)" action. During each execution, the action encounters a failure and returns a "ServiceUnavailable" status code of 503, accompanied by the following response body:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta content='text/html; charset=utf-8' http-equiv='content-type'/><style type='text/css'>body {font-family:Arial; margin-left:40px; }img  { border:0 none; }#content { margin-left: auto; margin-right: auto }#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }#message p  { font-size: 13px; color: #000000; margin: 7px 0px 0px0px}#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style><title>Service unavailable</title></head><body><div id='content'><div id='message'><h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p></div><div id='errorref'><span>06QeKZAAAAAA9/BnbzpPCRZXXZ0lvghZgUklPMDNFREdFMDcxOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=</span></div></div></body></html>

When I place this body in a html file an open it, I get the following page:Captura de tela 2023-06-14 161625

The peculiar thing is that the logic app in the East US 2 region is functioning without any problems. Personally, I am unsure about how to resolve this issue and would appreciate assistance in finding a solution. It's crucial for the logic app located in Brazil South to stay there to maintain low latency for the users.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
684 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,854 questions
{count} votes