-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Azcli fails to create FrontDoor WAF Policy #5625
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
route to CXP team |
@alsastre Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update. |
To manage Azure Front Door Standard/Premium resource, use az afd CLI command. To manage Classic Azure Front Door resource, use az network front-door CLI command. |
I am not trying to manage the Azure Front Door but create WAF Policies for Front door ( |
@alsastre Thanks for clarifying. I am unable to reproduce this issue at my end. I ran the same command at my end and it ran successfully. See below: I am using the same AzCLI ( 2.43.0 ) and front-door (1.0.17) extension as your enviornment. CLI Command:
Output: Could you please run the above command again and check if that helps ? Awaiting your reply. |
@alsastre I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you had any updates on this. Awaiting your reply. |
I was able to test it today, the problem appears if you try to create the policy with So the issue should be that there should just be a nicer error message 😄 |
fixes Azure#5625 Update the help message for PolicyName Giving "-" 'hyphen' in the policy name fails. The help message should include that the " Name must begin with a letter and contain only letters and numbers."
@alsastre Thanks for getting back. We have filed the above PR to include the proper help message to the waf-policy name parameter to mention - "Name must begin with a letter and contain only letters and numbers." |
…date help message for `--policy-name` (#5658)
@navba-MSFT @yonzhan - adding a help message is nice, but it doesn't solve the root cause of the misleading error message. This should be addressed at the root, by the Azure Front Door server, to return a proper error. Can we involve them here? |
Please update error message |
This issue is still not resolved, there is no message or validation error before creating the resource that the name has to be alphanumeric. I just tried (in the portal) with dashes in the name and it fails the same way. |
Describe the bug
Command Name
az network front-door waf-policy create Extension Name: front-door. Version: 1.0.17.
az-cli fails to create the azure front-door WAF policy with the latest version.
Errors:
Debug logs (With confidential data removed):
To Reproduce:
Steps to reproduce the behaviour. Note that argument values have been redacted, as they may contain sensitive information.
az network front-door waf-policy create --name {} --resource-group {} --mode {} --sku {} --request-body-check {} --debug
Expected Behavior
Front door policy is created
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: