def vm_snapshot_create(vm_name, kwargs=None, call=None):
    '''
    Creates a new virtual machine snapshot from the provided VM.

    .. versionadded:: 2016.3.0

    vm_name
        The name of the VM from which to create the snapshot.

    snapshot_name
        The name of the snapshot to be created.

    CLI Example:

    .. code-block:: bash

        salt-cloud -a vm_snapshot_create my-vm snapshot_name=my-new-snapshot
    '''
    if call != 'action':
        raise SaltCloudSystemExit(
            'The vm_snapshot_create action must be called with -a or --action.'
        )

    if kwargs is None:
        kwargs = {}

    snapshot_name = kwargs.get('snapshot_name', None)
    if snapshot_name is None:
        raise SaltCloudSystemExit(
            'The vm_snapshot_create function requires a \'snapshot_name\' to be provided.'
        )

    server, user, password = _get_xml_rpc()
    auth = ':'.join([user, password])
    vm_id = int(get_vm_id(kwargs={'name': vm_name}))
    response = server.one.vm.snapshotcreate(auth, vm_id, snapshot_name)

    data = {
        'action': 'vm.snapshotcreate',
        'snapshot_created': response[0],
        'snapshot_id': response[1],
        'error_code': response[2],
    }

    return data
Creates a new virtual machine snapshot from the provided VM.

    .. versionadded:: 2016.3.0

    vm_name
        The name of the VM from which to create the snapshot.

    snapshot_name
        The name of the snapshot to be created.

    CLI Example:

    .. code-block:: bash

        salt-cloud -a vm_snapshot_create my-vm snapshot_name=my-new-snapshot