Returns a connection object pointing to the endpoint
        associated to the received resource.

def connect(cls, resource):
        """Returns a connection object pointing to the endpoint
        associated to the received resource.
        """
        from azure import storage as azure_storage
        file_info = cls.parse_remote(resource)
        return azure_storage.BlobService(file_info.storage)