def METHOD_NAME(self, rfc1123_date, content_length):
    # Build the API signature
    string_to_hash = "\n".join([
        "POST",
        str(content_length),
        self.content_type,
        'x-ms-date:' + rfc1123_date,
        self.resource
    ])
    return base64.b64encode(
        hmac.new(
            self._decoded_shared_key,
            string_to_hash.encode("utf-8"),
            digestmod=hashlib.sha256).digest()
    )