File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
secure_research_environment/setup Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if ($?) {
39
39
40
40
# Run remote diagnostic scripts
41
41
# -----------------------------
42
- Invoke-Expression - Command " $ ( Join-Path $PSScriptRoot ' ..' ' secure_research_environment' ' setup' ' Run_SRE_SRD_Remote_Diagnostics.ps1' ) -shmId $shmId -sreId $sreId -ipLastOctet $ipLastOctet "
42
+ & $ (Join-Path $PSScriptRoot ' ..' ' secure_research_environment' ' setup' ' Run_SRE_SRD_Remote_Diagnostics.ps1' ) - shmId $shmId - sreId $sreId - ipLastOctet $ipLastOctet
43
43
44
44
45
45
# Get LDAP secret from the Key Vault
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ $scriptPath = Join-Path $PSScriptRoot ".." "secure_research_environment" "setup"
83
83
if ($dryRun.IsPresent ) {
84
84
Add-LogMessage - Level Info " SRE data would be removed from the SHM by running: $scriptPath -shmId $shmId -sreId $sreId "
85
85
} else {
86
- Invoke-Expression - Command " $scriptPath -shmId $shmId -sreId $sreId "
86
+ & $scriptPath - shmId $shmId - sreId $sreId
87
87
}
88
88
89
89
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ foreach ($nsgName in $nsgs.Keys) {
110
110
# Ensure SRE is peered to correct mirror/proxy set
111
111
# ------------------------------------------------
112
112
# Unpeer any existing networks before (re-)establishing correct peering for SRE
113
- Invoke-Expression - Command " $ ( Join-Path $PSScriptRoot Unpeer_SRE_Package_Repositories.ps1) -shmId $shmId -sreId $sreId "
113
+ & $ (Join-Path $PSScriptRoot " Unpeer_SRE_Package_Repositories.ps1" ) - shmId $shmID - sreId $sreId
114
114
# Peer this SRE to the repository network
115
115
Add-LogMessage - Level Info " Ensuring SRE is peered to correct package repository..."
116
116
if (-not $config.sre.repositories.network.name ) {
@@ -146,8 +146,7 @@ $null = Set-AzContext -SubscriptionId $config.sre.subscriptionName -ErrorAction
146
146
147
147
# Block external DNS queries
148
148
# --------------------------
149
- Invoke-Expression - Command " $ ( Join-Path $PSScriptRoot " Configure_External_DNS_Queries.ps1" ) -shmId $shmId -sreId $sreId "
150
-
149
+ & $ (Join-Path $PSScriptRoot " Configure_External_DNS_Queries.ps1" ) - shmId $shmId - sreId $sreId
151
150
152
151
# Switch back to original subscription
153
152
# ------------------------------------
You can’t perform that action at this time.
0 commit comments