From eadab036008f3330617ebcbfb60ef0f0c1b49f8a Mon Sep 17 00:00:00 2001 From: Joel Hulen Date: Tue, 25 Aug 2020 11:39:58 -0400 Subject: [PATCH] Update Deploy-LabEnvironment.ps1 Update SAS key --- Setup/Scripts/Deploy-LabEnvironment.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Setup/Scripts/Deploy-LabEnvironment.ps1 b/Setup/Scripts/Deploy-LabEnvironment.ps1 index a53ae62..d85c326 100644 --- a/Setup/Scripts/Deploy-LabEnvironment.ps1 +++ b/Setup/Scripts/Deploy-LabEnvironment.ps1 @@ -37,7 +37,8 @@ Select-AzureRmSubscription -SubscriptionId $subscriptionId #New-AzureStorageContainer -Name $destContainerName -Permission Off $storageKey = (Get-AzureRmStorageAccountKey -Name $storageAccountName -ResourceGroupName $resourceGroupInstanceName).Value[0] # $sourceSAS = "'?sv=2017-04-17&ss=b&srt=co&sp=rl&se=2019-12-31T18:29:33Z&st=2017-09-18T10:29:33Z&spr=https&sig=bw1EJflDFx9NuvLRdBGql8RU%2FC9oz92Dz8Xs76cftJM%3D'" -$sourceSAS = "?sv=2017-04-17&ss=b&srt=co&sp=rl&se=2019-12-31T18:29:33Z&st=2017-09-18T10:29:33Z&spr=https&sig=bw1EJflDFx9NuvLRdBGql8RU%2FC9oz92Dz8Xs76cftJM%3D" +# $sourceSAS = "?sv=2017-04-17&ss=b&srt=co&sp=rl&se=2019-12-31T18:29:33Z&st=2017-09-18T10:29:33Z&spr=https&sig=bw1EJflDFx9NuvLRdBGql8RU%2FC9oz92Dz8Xs76cftJM%3D" +$sourceSAS = "?sv=2019-12-12&ss=b&srt=co&sp=rl&se=2025-08-25T23:33:47Z&st=2020-08-25T15:33:47Z&spr=https&sig=AaNv%2ByYkBWmIJHFitLlMSfbPBhYqmyokUO5MEwIC6bY%3D" Write-Host("Beginning file upload to " + $clusterCount + " storage containers. This can take a while.") For($i = 0; $i -lt $clusterCount; $i++){ @@ -51,4 +52,4 @@ For($i = 0; $i -lt $clusterCount; $i++){ Get-AzureStorageBlob -Context $contextSource -Container $sourceContainer -Blob "*.csv" | Start-AzureStorageBlobCopy -DestContext $contextDest -DestContainer $destContainerName Get-AzureStorageBlob -Context $contextSource -Container $sourceContainer -Blob "*.txt" | Start-AzureStorageBlobCopy -DestContext $contextDest -DestContainer $destContainerName } -Write-Host("File upload complete, and deployment operations are finished. If there are no errors, you are free to begin using the clusters.") -ForegroundColor Green \ No newline at end of file +Write-Host("File upload complete, and deployment operations are finished. If there are no errors, you are free to begin using the clusters.") -ForegroundColor Green