code: def upload_file_to_container(block_blob_client, container_name, file_path):
      
      blob_name = os.path.basename(file_path)
  
      _log.info('Uploading file {} to container [{}]...'.format(file_path, container_name))
  
      block_blob_client.create_blob_from_path(container_name,
                                              blob_name,
                                              file_path)
  
      sas_token = block_blob_client.generate_blob_shared_access_signature(
          container_name,
          blob_name,
          permission=azureblob.BlobPermissions.READ,
          expiry=datetime.datetime.utcnow() + datetime.timedelta(hours=2))
  
      sas_url = block_blob_client.make_blob_url(container_name,
                                                blob_name,
                                                sas_token=sas_token)
  
      return batchmodels.ResourceFile(http_url=sas_url, file_path=blob_name)
docs: Uploads a local file to an Azure Blob storage container.
  
      :param block_blob_client: A blob service client.
      :type block_blob_client: `azure.storage.blob.BlockBlobService`
      :param str container_name: The name of the Azure Blob storage container.
      :param str file_path: The local path to the file.
      :rtype: `azure.batch.models.ResourceFile`
      :return: A ResourceFile initialized with a SAS URL appropriate for Batch
      tasks.