Skip to content

arm-resource-invalid-action-verb

-
@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-action-verb

For ARM http operations, the action verb must be @post or @get. Any other action verb is flagged as incorrect.

❌ Incorrect

@delete op getAction is ArmProviderActionAsync<
{
name: string;
},
ArmCombinedLroHeaders,
SubscriptionActionScope
>;

✅ Correct

op postAction is ArmProviderActionAsync<
{
name: string;
},
ArmCombinedLroHeaders,
SubscriptionActionScope
>;

✅ Correct

@get op getAction is ArmProviderActionSync<
{
name: string;
},
ArmCombinedLroHeaders,
SubscriptionActionScope
>;