Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying 'disabled' for '--endpoint-status' creates an endpoint in the 'Enabled' state #6502

Closed
nwohlgemuth opened this issue Jun 5, 2018 · 0 comments · Fixed by #6517
Closed
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Network az network vnet/lb/nic/dns/etc...
Milestone

Comments

@nwohlgemuth
Copy link

Describe the bug
The '--endpoint-status' argument value of 'az network traffic-manager endpoint create' is case sensitive and does not behave the way one would expect. If 'Disabled' is specified as the value, the new endpoint has 'Disabled' as the status. If 'disabled' is specified, the new endpoint has 'Enabled' as the status.

To Reproduce
Create a new traffic manager endpoint using 'az network traffic-manager endpoint create' and specify '--endpoint-status disabled' as one of the arguments. Observe that the newly created endpoint is in the 'Enabled' state even though 'disabled' was requested.

Expected behavior
Specifying an invalid value for the endpoint status such as 'invalid' will cause the Azure CLI to print the message that the only valid values are 'Enabled' and 'Disabled'. But the CLI will accept 'disabled' as a value but then treat it as if it was actually 'Enabled'. Either the CLI should reject 'disabled' as invalid or it should accept it and treat it as 'Disabled'.

Environment summary
Azure CLI 2.0.33 on both Windows and Linux

@tjprescott tjprescott added bug This issue requires a change to an existing behavior in the product in order to be resolved. Network az network vnet/lb/nic/dns/etc... labels Jun 5, 2018
@tjprescott tjprescott self-assigned this Jun 5, 2018
@tjprescott tjprescott added this to the Sprint 39 milestone Jun 5, 2018
tjprescott added a commit that referenced this issue Jun 7, 2018
@haroldrandom haroldrandom added bug This issue requires a change to an existing behavior in the product in order to be resolved. Network az network vnet/lb/nic/dns/etc... labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Network az network vnet/lb/nic/dns/etc...
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants