azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Adding a CDN profile rule that modifies a response header fails

Open alessandromuresan opened this issue 6 years ago • 5 comments

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)

alessandromuresan avatar Jul 06 '20 14:07 alessandromuresan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub, @1varunch1, @lsmith130.

ghost avatar Jul 06 '20 14:07 ghost

CDN

yonzhan avatar Jul 06 '20 14:07 yonzhan

Expected Action name should be "ResponseHeader".

hytao avatar Jul 24 '20 00:07 hytao

Please close the ticket

hytao avatar Jul 24 '20 00:07 hytao

Expected Action name should be "ResponseHeader".

timMSFT avatar Jul 24 '20 00:07 timMSFT