Adding a CDN profile rule that modifies a response header fails
Describe the bug
Trying to add a CDN profile rule that modifies a response header fails with validation error: Parameter 'DeliveryRuleAction.name' can not be None
To Reproduce Run the command below. You will need to create a resource group, cdn profile and cdn endpoint beforehand.
az cdn endpoint rule add --name cdn-endpoint-name --profile-name cdn-profile-name --resource-group resource-group-name --order 1 --rule-name cors1 --match-variable RequestHeader --selector Origin --match-values https://mydomain.com --operator Equal --transform Lowercase --action-name ModifyResponseHeader --header-action Overwrite --header-name "Access-Control-Allow-Origin" --header-value https://mydomain.com
Expected behavior Should create a new rule
Environment summary MSI on Windows (running the command from PowerShell)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub, @1varunch1, @lsmith130.
CDN
Expected Action name should be "ResponseHeader".
Please close the ticket
Expected Action name should be "ResponseHeader".