arm-resource-invalid-action-verb
@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-action-verbActions must be HTTP Post or Get operations.
Use @post or @get for actions; model other HTTP verbs as normal resource operations instead.
Impact
Section titled “Impact”- Area: API, SDK
A resource action that does not use POST or GET produces an improper HTTP API and can break the C# SDK and emitters that model resource actions (service, portal).
LintDiff Equivalent
Section titled “LintDiff Equivalent”This rule corresponds to the LintDiff rule InvalidVerbUsed.
❌ Incorrect
Section titled “❌ Incorrect”@delete op getAction is ArmProviderActionAsync< { name: string; }, ArmCombinedLroHeaders, SubscriptionActionScope>;✅ Correct
Section titled “✅ Correct”op postAction is ArmProviderActionAsync< { name: string; }, ArmCombinedLroHeaders, SubscriptionActionScope>;✅ Correct
Section titled “✅ Correct”@get op getAction is ArmProviderActionSync< { name: string; }, ArmCombinedLroHeaders, SubscriptionActionScope>;Suppression
Section titled “Suppression”Suppress only when needed to match an existing API. Use the standard resource action templates and do not override the verb with @put, @patch, @delete, or @head.