Skip to content

Commit

Permalink
Revert "Add loop for each storage container"
Browse files Browse the repository at this point in the history
This reverts commit 348561d.
  • Loading branch information
JimMadge committed Feb 15, 2024
1 parent 348561d commit 54da679
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ $VMs = Get-AzVM -ResourceGroupName $config.sre.srd.rg | `
# ---------------------------------------
$scriptPath = Join-Path $PSScriptRoot ".." "remote" "secure_research_desktop" "scripts" "write_sas_tokens.sh"
foreach ($VM in $Vms) {
foreach ($receptacleName in $config.sre.storage.persistentdata.containers.Keys) {
$null = Invoke-RemoteScript -VMName $VM.Name -ResourceGroupName $VM.ResourceGroupName -Shell "UnixShell" -ScriptPath $scriptPath -Parameter $sasTokens[$receptacleName]
}
$null = Invoke-RemoteScript -VMName $VM.Name -ResourceGroupName $VM.ResourceGroupName -Shell "UnixShell" -ScriptPath $scriptPath -Parameter $sasTokens
}


Expand Down

0 comments on commit 54da679

Please sign in to comment.