Hello Devs!
This blog will be a source of help for many Devs who are working on Azure Blog Storage account.
We normally use azure blob storage account to hold thing that need to be further processed and stored on cloud.
Scenario:
We have been asked to
* Upload file to azure
* Download file from azure
"We will be using Share File Management technique"
Case #1 : Uploading File to Azure
Note: Here we are using PurchParameter table to extract urls and other folder related details
you can use your own folder name to access the azure blob folder
Further, Credential details have already been extracted i.e vault key,authorization key and has been stored in our custom table and extracted from d365 through azure parameters
storageCredentials = new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(SystemParameters::find().CMTStorageAccountName, purchParameters.CMTTankKeyVaultSecret);
Or alternatively,
CloudStorageAccount storageAccount =
CloudStorageAccount.Parse("connection string of the storage account");
Case #2 : Downloading File to Azure
Note: Here we are using PurchParameter table to extract urls and other folder related details
you can use your own folder name to access the azure blob folder
Further, Credential details have already been extracted i.e vault key,authorization key and has been stored in our custom table and extracted from d365 through azure parameters
storageCredentials = new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(SystemParameters::find().CMTStorageAccountName, purchParameters.CMTTankKeyVaultSecret);
This blog will be a source of help for many Devs who are working on Azure Blog Storage account.
We normally use azure blob storage account to hold thing that need to be further processed and stored on cloud.
Scenario:
We have been asked to
* Upload file to azure
* Download file from azure
"We will be using Share File Management technique"
Case #1 : Uploading File to Azure
Note: Here we are using PurchParameter table to extract urls and other folder related details
you can use your own folder name to access the azure blob folder
Further, Credential details have already been extracted i.e vault key,authorization key and has been stored in our custom table and extracted from d365 through azure parameters
storageCredentials = new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(SystemParameters::find().CMTStorageAccountName, purchParameters.CMTTankKeyVaultSecret);
Or alternatively,
CloudStorageAccount storageAccount =
CloudStorageAccount.Parse("connection string of the storage account");
Case #2 : Downloading File to Azure
Note: Here we are using PurchParameter table to extract urls and other folder related details
you can use your own folder name to access the azure blob folder
Further, Credential details have already been extracted i.e vault key,authorization key and has been stored in our custom table and extracted from d365 through azure parameters
storageCredentials = new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(SystemParameters::find().CMTStorageAccountName, purchParameters.CMTTankKeyVaultSecret);
That's great to hear. Thankyou!
ReplyDelete