Skip to content

Commit

Permalink
added storage back
Browse files Browse the repository at this point in the history
  • Loading branch information
John Deutscher committed Apr 17, 2017
1 parent 96afcd4 commit 124a77e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 103-aspera-ingest/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
"AzureWebJobsDashboard": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageName'), ';AccountKey=', listKeys(variables('storageAccountid'), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value)]",
"AMSAccount": "[variables('mediaServiceName')]",
"AMSKey": "[listKeys(variables('mediaServiceName'),'2015-10-01').primaryKey]",
"MediaServicesStorageAccountName": "[variables('storageName')]",
"MediaServicesStorageAccountKey": "[listKeys(variables('storageAccountid'),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value]",
"StorageConnection": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageName'), ';AccountKey=', listKeys(variables('storageAccountid'),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value)]"
}
}
Expand Down
4 changes: 3 additions & 1 deletion 103-aspera-ingest/ingest-asset-encode/run.csx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ using Microsoft.WindowsAzure.Storage.Auth;
// Read values from the App.config file.
private static readonly string _mediaServicesAccountName = Environment.GetEnvironmentVariable("AMSAccount");
private static readonly string _mediaServicesAccountKey = Environment.GetEnvironmentVariable("AMSKey");
static string _storageAccountName = Environment.GetEnvironmentVariable("MediaServicesStorageAccountName");
static string _storageAccountKey = Environment.GetEnvironmentVariable("MediaServicesStorageAccountKey");


private static CloudStorageAccount _destinationStorageAccount = null;
Expand Down Expand Up @@ -123,7 +125,7 @@ public static void Run(CloudBlockBlob inputBlob, string fileName, string fileExt
}
log.Info("Deleting the source asset from the input container");
inputBlob.DeleteIfExists();

log.Info("Aspera Ingest and Adaptive Bitrate Encode Complete!");

}
Expand Down

0 comments on commit 124a77e

Please sign in to comment.