CloudStorageAccount
storageAccount =
CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue("StorageConnectionString"));
CloudBlobClient
blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer
container = blobClient.GetContainerReference(“IPSSubmitted_EmployeeCode”);
container.CreateIfNotExist();
container.SetPermissions(newBlobContainerPermissions
{ PublicAccess = BlobContainerPublicAccessType.Blob });
CloudBlob
blob = container.GetBlobReference(internalName);
if
(fileStream != null)
{
blob.UploadFromStream(fileStream);
blobUri = blob.Uri.ToString();
}