def send_data_to_blob_cloud(self, data, blob_name): from azure.storage.blob.baseblobservice import _get_path blob_service = BlockBlobService(account_name=ACCOUNT_NAME, sas_token=SAS_TOKEN) blob_service.create_blob_from_stream( CONTAINER_NAME, blob_name, data, content_settings=ContentSettings( content_type='application/zip', content_disposition='attachment; filename="nch-outfile.zip"')) return '{}://{}{}'.format(blob_service.protocol, blob_service._get_host(), _get_path(CONTAINER_NAME, blob_name))