Skip to content

Latest commit

 

History

History
68 lines (55 loc) · 4.75 KB

Migrating_Data_to_Azure_Cloud_Platform.md

File metadata and controls

68 lines (55 loc) · 4.75 KB

Migrating Data to Azure cloud storage

In this phase describes the details of following steps to:

  1. Create Azure storage account
  2. Create a blob container in storage account
  3. Generate Shared Access Signature to use as a credential when connecting to the storage account
  4. Load files from Github to storage account using Azure Cloud Shell
  5. (Optional)Connect Azure Storage Explorer to the storage account to browse files.

1. Create a Blob Storage Container

After loging to Azure platform, navagate to Storage Accounts to create one storage account image image image image Click on "Go to Resources"

2. Create a Blob Container

Go to container under Data Storage image

Click on +Create, provide the container name as "Lab-data" and click "Create" button. image

3. Generate SAS Token

For the container lab-data generate SAS key by clicking on "Generate SAS" image

Ater clicking button, the following page opens image

Click on "SAS Token and URL" button. image

Copy the generated SAS Key and URL for further use, which will be used for authenticating and loading data into this container. image

4. Load Azure cloud shell and run script to load files form github

The URL for the script file to run is provided in the prequisites of this page.

Open Azure cloud shell and upload the file into the cloud shell folder as shown below image

Once the file is uploaded when we execute "ls -l" we can find the uploaded file in the cloud folder as shown below image

To open the file in the terminal use code followed by the file name as shown below. image

Open the script in visual studio and place the token and hostname saved previously and repeat step four (4). when user types code followed by file name the result will be as follows. image

To Run the script type bash followed by filename as belown and the data from bithub repository gets populated into the blob container. image This will take around one hour to load the data into container. once this operation is done we can move further to load this data into Snowflake warehouse.

5. (Optional) Connect Azure Storage Explorer to the storage account to browse files

Azure Storage Explorer is a free tool that lets you manage cloud storage resources from your desktop image image Enter the "Blob SAS URL" that was generated in 4.3 above. The Display name should default to "lab-data" (unless you changed the container name). Click "Next" and then "Connect" on the next screen. image You should now see the files that were loaded into the storage account image

Prerequisite: