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.

❌ Incorrect

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

βœ… Correct

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