def METHOD_NAME(cmd,
                     snapshot_name,
                     name=None,
                     connection_string=None,
                     auth_mode='key',
                     endpoint=None):
    client = _get_snapshot_client(cmd, name, connection_string, auth_mode, endpoint)
    try:
        return client.METHOD_NAME(snapshot_name)
    except HttpResponseError as exception:
        if exception.status_code == StatusCodes.NOT_FOUND:
            raise ResourceNotFoundError("No snapshot with name '{}' was found.".format(snapshot_name))
        raise AzureResponseError(str(exception))
    except Exception as exception:
        raise CLIError("Failed to archive snapshot. {}".format(str(exception)))