title: How to upload a large string in an Azure Blob?
body: <p>Right now I'm trying to figure out how to work with Azure, and now I'm stuck in a problem while storing my data in the storage account.
  I have three strings and want to store each of them in a separate blob. With the first two, my code works fine, but the third one causes some retries and ends with a timeout.
  My code is running within an Azure function.</p>
  <p>Here is a minimal example:</p>
  <pre><code>from azure.storage.blob import BlobClient
  
  blob_client = BlobClient.from_connection_string(
      conn_str.      = '&lt;STORAGE_ACCOUNT_CONNECTION_STRING&gt;',
      container_name = '&lt;CONTAINER_NAME&gt;',
      blob_name.     = '&lt;NAME_OF_BLOB&gt;',
  )
  
  dic_blob_props = blob_client.upload_blob(
      data      = '&lt;INFORMATION_THAT_SHOULD_GO_TO_THE_BLOB&gt;', 
      blob_type = &quot;BlockBlob&quot;, 
      overwrite = True,
  )
  </code></pre>
  <p>The for the first two strings everything works fine but the third fails. The strings have the following length:</p>
  <pre><code>len(s_1) = 1246209
  len(s_2) = 8794086
  len(s_3) = 24518001
  </code></pre>
  <p>Most likely it is because the third string is too long, but there must be a way to save it, right?
  I have already tried to set the timeout time within the <code>.upload_blob</code> method by <code>timeout=600</code>, but this has not changed the result at all, nor the time until a new attempt to write is made.</p>
  <p>The error is:</p>
  <pre><code>Exception: ServiceResponseError: ('Connection aborted.', timeout('The write operation timed out'))
  </code></pre>
  <p>If you have any ideas on the problem pleast let me know :-)</p>