Model validation rule "LRO_RESPONSE_HEADER" does not check for the Operation-Location header
I have authored a long-running operation that is getting flagged even though I have specified that it returns the Operation-Location header.
The rule that is being triggered has the following description:
Long running operation must return location header or azure-AsyncOperation header in response when this operation is annotated with x-ms-long-running-operation:true.
However, according to the latest Azure REST API Guidelines
✅ DO return the status monitor URL in the Operation-Location response header.
In other words, validation should check and accept either one of the following headers: Location, Azure-AsyncOperation, or Operation-Location.
@joseharriaga , it looks like the header requirement is changed in above document and ARM RPC that states that PATCH/DELETE/POST LRO must return Location header.