Making the initial upload
Configure your storage connection string
On your local computer, create a text file that contains the Connection String and upload it to the workspace:
Sign in to the Azure portal.
Go to your storage account (dws###acronymdata).
In the left hand panel, go to Access Key (under Settings).
Copy the connection string belonging to key1 (see screenshot below).
Save the string in a .txt file and upload to your workspace through the DRE portal.
In your virtual machine, find the connection key .txt file and run the following code in a command window:
Now make sure to permanently remove the connection key .txt file by selecting it in your file explorer and pressing shift+del (this bypasses the bin).
Restart any open program that will be using Blob.
All further instructions below take place in the VM, unless stated otherwise
Install the Azure Blob storage client library for Python package
Search for and right-click Anaconda Prompt, choose run as administrator
Run the following commands:
Upload one file
Open Jupyter notebooks
Create new folder data
Create new notebook blob-initial-upload
Tip: You can run the cells below one by one and inspect the outcome to learn more about their functionality.
Set up the framework
Get the connection string
Upload initial blob to your container
In the code below, replace <container_name> with the name of your blob container.
List the blobs in your container
Your blob is now also visible in your container in the DRE portal: