(1.4) Moving Data to your Storage Account
This is part of a series of articles called Azure Challenges. You can refer to the Intro Page to understand more about how the challenges work.
To start, please download AzCopy using the link below:
Select your Storage Account
Select the Containers option
Select the + Container to create a new one.
Give it a name and select Create
Select your Container and select the 3 dots to open more options.
Inside the More options menu select Generate SAS.
Inside Generate SAS select the required permission and select Generate SAS token and URL.
inside the Generate SAS copy the Blob SAS URL
SAS token is a string that you generate on the client side. The SAS token is not tracked by Azure Storage in any way. You can create an unlimited number of SAS tokens on the client side. After you create a SAS, you can distribute it to client applications that require access to resources in your storage account.
Client applications provide the SAS URI to Azure Storage as part of a request. Then, the service checks the SAS parameters and the signature to verify that it is valid. If the service verifies that the signature is valid, then the request is authorized. Otherwise, the request is declined with error code 403 (Forbidden).
More info at:
now you can go to the Command prompt and use the azcopy command inside the azcopy directory extracted from the downloaded file.
COMMAND TO COPY THE FILE FROM THE LOCAL MACHINE TO YOUR BLOB STORAGE (CLOUD)
azcopy copy "SOURCE FILE" "BLOB SAS URL" - recursive=true
IN THE EXAMPLE BELOW WE ARE COPYING THE FILE NOTICE.TXT THAT IS PART OF THE AZCOPY SOLUTION.
azcopy copy "NOTICE.txt" "https://storageaccountcaio.blob.core.windows.net/my-container?sp=racwdl&st=2021-05-20T17:13:48Z&se=2021-05-21T01:13:48Z&spr=https&sv=2020-02-10&sr=c&sig=guJgeD7PaUOgMSXXXXXXXoA47deMk46bCRHh0%3D" - recursive=true
Now we can check if the file was copied to the Storage Account. Select your Storage account and select Storage Explorer.
You will see the file available in your storage account.
Important considerations about storage strategy:
More info about Storage Accounts athe
The architecture so far…
This is the end of the Challenge#1.
You can go to the Intro Page and start the next Challenge.