Skip to content

Commit

Permalink
Add more feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Feb 21, 2024
1 parent 452100b commit cda5952
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ foreach ($receptacleName in $config.sre.storage.persistentdata.containers.Keys)
Add-LogMessage -Level Info "Retrieving list of SRD VMs..."
$VMs = Get-AzVM -ResourceGroupName $config.sre.srd.rg | `
Where-Object { $_.Name -like "*SRD*" }
Add-LogMessage -Level Success "SRD VMs identified: '$($Vms)'"

# Update blobfuse credentials on each SRD
# ---------------------------------------
Expand All @@ -54,6 +55,7 @@ $sasTokens.Keys | ForEach-Object {
}
$scriptPath = Join-Path $PSScriptRoot ".." "remote" "secure_research_desktop" "scripts" "write_sas_tokens.sh"
foreach ($VM in $Vms) {
Add-LogMessage -Level Info "Updating SAS tokens on '$($VM)'"
$null = Invoke-RemoteScript -VMName $VM.Name -ResourceGroupName $VM.ResourceGroupName -Shell "UnixShell" -ScriptPath $scriptPath -Parameter $sasTokensBase64
}

Expand Down

0 comments on commit cda5952

Please sign in to comment.