From 54da6796c68a21ad20bb7f0c735b8afcc228f4db Mon Sep 17 00:00:00 2001 From: Jim Madge Date: Thu, 15 Feb 2024 11:33:26 +0000 Subject: [PATCH] Revert "Add loop for each storage container" This reverts commit 348561d4970ad40e834f96ce320fe1c619bee356. --- .../setup/Update_SRE_SAS_Tokens.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deployment/secure_research_environment/setup/Update_SRE_SAS_Tokens.ps1 b/deployment/secure_research_environment/setup/Update_SRE_SAS_Tokens.ps1 index 9e2d788c22..668c81ed0e 100644 --- a/deployment/secure_research_environment/setup/Update_SRE_SAS_Tokens.ps1 +++ b/deployment/secure_research_environment/setup/Update_SRE_SAS_Tokens.ps1 @@ -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 }