Azure / Azure/azure-cli

Documentation bug for az network application-gateway http-settings create for TCP protocol

Open
#29,947 1 comment 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Azure CLI Team Network potential-pruning question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Currently documentation for [az network application-gateway http-settings create](https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/http-settings?view=azure-cli-latest#az-network-application-gateway-http-settings-create) states that --protocol property can have a value Tcp which is incorrect.

![image](https://github.com/user-attachments/assets/cec48f27-d1c3-46a1-9ddd-d6b10969ada1)

If we set-up the --protocol property as Tcp it will end up in error as shown below

![image](https://github.com/user-attachments/assets/5563feac-c11c-4277-b1fb-40f6ec53d4c5)

The correct command to use here will be [az network application-gateway settings create](https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/settings?view=azure-cli-latest#az-network-application-gateway-settings-create) which successfully creates a backend setting with protocol as TCP

![image](https://github.com/user-attachments/assets/330235b3-1a24-4752-8793-e7bcc20a7903)

![image](https://github.com/user-attachments/assets/f509137b-4dd9-43f5-8f0e-1c7e47d28d11)

### Related command

---

### Errors

---

### Issue script & Debug output

---

### Expected behavior

---

### Environment Summary

AZ CLI Latest

### Additional context

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.