no-resource-delete-operation
@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation
Every ARM resource that provides a create operation must also provide a delete operation.
❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;}
❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>; delete is ArmResourceDeleteWithoutOkAsync<Store>; // delete operation for a different resource}
âś… Correct
Section titled “✅ Correct”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>; delete is ArmResourceDeleteWithoutOkAsync<Employee>;}