Facing Issue while creating Tcp Backend setting through Azure CLI.

Rohith 40 Reputation points
2024-09-20T12:31:28.3166667+00:00

Dear Team,

I am encountering an issue while attempting to create a TCP listener in the Azure Application Gateway using the Azure CLI. According to the Azure documentation, TCP listener creation is supported; however, I am receiving an error message indicating that the backend HTTP settings do not support the TCP protocol.

Details:

  • Error Message: (ApplicationGatewayBackendHttpSettingsProtocolNotSupported) BackendHttpSettings /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/applicationGateways/test-dev-agw/backendHttpSettingsCollection/backend-setting-tcp does not support protocol Tcp. Supported protocols are: Http and Https.
  • Command Used: az network application-gateway http-settings create --gateway-name test-dev-agw --name backend-setting-tcp --port 5223 --resource-group test-rg --cookie-based-affinity Disabled --protocol Tcp --timeout 20

According to the Azure documentation, TCP listener creation is supported; however, I am receiving an error message indicating that the backend HTTP settings do not support the TCP protocol.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,071 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,531 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 26,111 Reputation points Microsoft Employee
    2024-09-20T22:58:43.78+00:00

    @Rohith

    Thank you for reaching out.

    I understand you are facing an issue creating a Tcp Backend setting through Azure CLI for your Application Gateway.

    I was able to reproduce this issue on my end and below is the solution which worked for me.

    I successfully was able to create a TCP Backend setting through Azure CLI command above.

    User's image

    User's image

    I understand the documentation for az network application-gateway http-settings create states protocol property TCP is supported which is incorrect. I have filled a bug for this on the AZ CLI repository here the team will update the document appropriately.

    Hope this helps! Please let me know if you have any questions. Thank you!


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

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