Skip to content

mark-as-lro-ineffective

Id
@azure-tools/typespec-client-generator-core/mark-as-lro-ineffective

Severity: error

This diagnostic is issued when @markAsLro is applied to an operation that already has real LRO metadata.

  • Area: LRO SDK metadata. Blocks or rejects a redundant legacy LRO marker when the operation already has real long-running-operation metadata.
  • Not affected: Existing LRO polling metadata remains the source of generated behavior.

TCGC reports:

@markAsLro decorator is ineffective since this operation already returns real LRO metadata. Please remove the @markAsLro decorator.

Remove @markAsLro from operations that are already modeled as long-running operations.