def METHOD_NAME(self, name, content):
    """
    Use the Azure Storage service to write ``content`` to a remote file
    (called ``name``).
    """
    content.open()
    content_type = None
    if hasattr(content.file, 'content_type'):
        content_type = content.file.content_type
    else:
        content_type = mimetypes.guess_type(name)[0]
    cache_control = self.get_cache_control(
        self.container,
        name,
        content_type
    )
    self._get_service().create_blob_from_stream(
        container_name=self.container,
        blob_name=name,
        stream=content,
        content_settings=ContentSettings(
            content_type=content_type,
            cache_control=cache_control,
        ),
    )
    content.close()
    return name