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.
- Since Azure Application Gateway TCP/TLS proxy is in preview I am assuming you have already registered for this feature as shown here.
- As you are creating a TCP backend setting the correct command to run here will be az network application-gateway settings create
I successfully was able to create a TCP Backend setting through Azure CLI command above.
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.