def METHOD_NAME(cmd, publisher_id, offer_id, sku, term):
    from azure.mgmt.marketplaceordering.models import OfferType
    return cf_vm_image_term(cmd.cli_ctx).create(offer_type=OfferType.VIRTUALMACHINE, publisher_id=publisher_id, offer_id=offer_id, plan_id=sku, parameters=term)