Skip to content

lro-location-header

-
@azure-tools/typespec-azure-resource-manager/lro-location-header

Long-running (LRO) operations with 202 responses must have a “Location” response header.

@armResourceOperations
interface Employees {
delete is ArmResourceDeleteWithoutOkAsync<Employee, EmployeeProperties, LroHeaders = {}>;
}
@armResourceOperations
interface Employees {
delete is ArmResourceDeleteWithoutOkAsync<Employee, EmployeeProperties>;
}

Impacts the API: this corresponds to the LintDiff rule LroLocationHeader and causes an RPC violation. Ask the author to use standard Async templates. Accept a suppression only when allowed by RPC guidelines.