def upload_file_to_container(block_blob_client, container_name, file_path):
blob_name = os.path.basename(file_path)<EOL>_log.info('<STR_LIT>'.format(file_path, container_name))<EOL>block_blob_client.create_blob_from_path(container_name,<EOL>blob_name,<EOL>file_path)<EOL>sas_token = block_blob_client.generate_blob_shared_access_signature(<EOL>container_name,<EOL>blob_name,<EOL>permission=azureblob.BlobPermissions.READ,<EOL>expiry=datetime.datetime.utcnow() + datetime.timedelta(hours=<NUM_LIT:2>))<EOL>sas_url = block_blob_client.make_blob_url(container_name,<EOL>blob_name,<EOL>sas_token=sas_token)<EOL>return batchmodels.ResourceFile(http_url=sas_url, file_path=blob_name)<EOL>
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.