Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Deploy-LabEnvironment.ps1 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Setup/Scripts/Deploy-LabEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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++){
Expand All @@ -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
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