def METHOD_NAME(self, key, data, append=False):
    if append:
        raise mlrun.errors.MLRunInvalidArgumentError(
            "Append mode not supported for Azure blob datastore"
        )
    if self.bsc:
        with self.bsc.get_blob_client(
            container=self.endpoint, blob=key[1:]
        ) as blob_client:
            # Note that append=True is not supported. If the blob already exists, this call will fail
            blob_client.upload_blob(data, overwrite=True)
    else:
        remote_path = self._convert_key_to_remote_path(key)
        if isinstance(data, bytes):
            mode = "wb"
        elif isinstance(data, str):
            mode = "w"
        else:
            raise TypeError("Data type unknown.  Unable to put in Azure!")
        with self._filesystem.open(remote_path, mode) as f:
            f.write(data)