question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application Gateway - Error creating rule: Either all or no rule should have the priority specified

See original GitHub issue

Related command az network application-gateway rule create

Describe the bug Attempting to create a new rule produces the following error:

ERROR: (ApplicationGatewayRequestRoutingRulePartialPriorityDefined) Either all or no rule should have the priority specified.

The CLI command does not provide the --priority flag so the priority number should be automatically generated (all other rules in the AGW have a priority already set).

To Reproduce Execute the following command:

az network application-gateway rule create `
        --gateway-name test-gateway-name `
        --name test-rule-name `
        --resource-group test-rg-name `
        --http-listener test-listener-name `
        --http-settings test-httpsetting-name `
        --address-pool test-address-pool-name

Expected behavior The priority value should be automatically generated by the service when it is not provided in the command.

Environment summary The CLI command is being executed by a ubuntu-18.04 Azure DevOps work agent.

Additional context This has only recently started failing (last couple of days).

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
necusjzcommented, Jun 7, 2022

Are you saying that it is intended to not have the same behaviour between az cli version 2.34 and 2.37 because of the service? I understand the change in the service part, what I am still confuse is why we have different response depending on our az cli version.

More specifically, the reason is 2.34 and 2.37 send requests based on different API versions:

And, as I mentioned before, the breaking change is involved since ‘2021-08-01’.

1reaction
necusjzcommented, May 11, 2022

I confirm we are observing the same behavior. but it works for CUS region and doesn’t work for EUS2

It might be related to the deployment strategy, as you known, East US 2 is one of the canary regions. Let’s wait for the service team to jump in and provide us more information. : )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure App Gateway Routing Rule Priority in PowerShell
Without the -Priority parameter I was getting the error: 1Either all or no rule should have the priority specified.
Read more >
How to change/set priority of Azure Application Gateway rule
I believe that my rule is not being executed however, because it sits lower down in the list of rules from the more...
Read more >
Azure Web Application Firewall (WAF) v2 custom rules on ...
This article provides an overview of Web Application Firewall (WAF) v2 custom rules on Azure Application Gateway.
Read more >
Deploying Azure Application Gateway - Part 1: Intro And Basic ...
I've recently spend some time with Azure Application Gateway and ... All request routing rules should have a priority defined starting from ...
Read more >
azurerm_application_gateway | Resources | hashicorp/azurerm
Changing this forces a new Application Gateway to be created. ... Disables all rules in the specified group if rules is not specified....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found