title: Azure App Service with Container not respecting docker-compose syntax for port forwarding with udp
body: <p>BLUF: How do I get port-forwarding with the UDP protocol in a docker-compose app within an azure app service.</p>
  <p>Please read this entirely before responding. The docker documentation's port forwarding works fine ... until I try it in an azure app service.</p>
  <p>I have a docker-compose file that I use in an azure app service. This works:</p>
  <pre><code>    ports:
        - &quot;2456-2458:2456-2458&quot;
  </code></pre>
  <p>This does not.</p>
  <pre><code>    ports:
        - &quot;2456-2458:2456-2458/udp&quot;
  </code></pre>
  <p>I have tried listing them out</p>
  <pre><code>    ports:
        - &quot;2456:2456/udp&quot;
        - &quot;2457:2457/udp&quot;
        - &quot;2458:2458/udp&quot;
  </code></pre>
  <p>And I have tried with no quotations, single quotations, and double quotations.</p>
  <p>According to the docker-compose documentation, /udp should work. According to others' githubs, there's works. But when I run it, my container logs show this:</p>
  <pre><code>2021-02-22T18:10:09.297Z INFO  - Starting multi-container app..
  2021-02-22T18:10:09.298Z ERROR - Exception in multi-container config parsing: Exception: System.FormatException, Msg: Input string was not in a correct format.
  2021-02-22T18:10:09.300Z ERROR - Start multi-container app failed
  2021-02-22T18:10:09.303Z INFO  - Stopping site valheim because it failed during startup.
  </code></pre>
  <p>I've read a lot of blogs and articles to try and figure this out, but no one seems to have an issue. The only difference I see is I am using an app service. So I have to ask, has anyone gotten the udp protocol to work with their app service, and if so, can you share the syntax? Their tutorial and documentation use ports, port forwarding, but never the udp protocol. So it's not apples to apples.</p>