Skip to main content
Version: Latest (Core: 0.57.x, Azure: 0.43.x)

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>;
}