arm-resource-interface-requires-decorator
@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decoratorEach resource interface must have an @armResourceOperations decorator.
The decorator associates the interface with its ARM resource type so ARM operations can be validated against the correct resource.
Impact
Section titled “Impact”- Area: API
Without @armResourceOperations, the interface is not associated with its ARM resource type, so ARM operation validation cannot be applied and the generated operations may be incorrect.
❌ Incorrect
Section titled “❌ Incorrect”interface FooResources extends TrackedResourceOperations<FooResource, FooProperties> {}✅ Correct
Section titled “✅ Correct”@armResourceOperations(FooResource)interface FooResources extends TrackedResourceOperations<FooResource, FooProperties> {}Suppression
Section titled “Suppression”Do not suppress. Add the @armResourceOperations decorator to associate the interface with its resource.