Skip to content

Commit 086f180

Browse files
fix issue with the script
1 parent fcd4cce commit 086f180

2 files changed

Lines changed: 2 additions & 199 deletions

File tree

scripts/powershell/arc-setup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Combined Azure Arc Evaluation and Onboarding Script
22
# Parameters are injected by Terraform via azurerm_virtual_machine_run_command
3-
# parameter / protected_parameter blocks no string interpolation in script text.
3+
# parameter / protected_parameter blocks - no string interpolation in script text.
44
param(
55
[string]$SubscriptionId,
66
[string]$TenantId,
@@ -79,7 +79,7 @@ try {
7979
try {
8080
$null = Invoke-RestMethod -Headers @{'Metadata' = 'true' } -Method GET `
8181
-Uri 'http://169.254.169.254/metadata/instance?api-version=2021-02-01' -TimeoutSec 5 -ErrorAction Stop # gitleaks:allow
82-
Write-Log "WARNING: IMDS is still accessible Arc onboarding may fail." "WARNING"
82+
Write-Log "WARNING: IMDS is still accessible - Arc onboarding may fail." "WARNING"
8383
} catch {
8484
Write-Log "IMDS is blocked as expected" "SUCCESS"
8585
}

scripts/powershell/arc-setup.ps1.tftpl

Lines changed: 0 additions & 197 deletions
This file was deleted.

0 commit comments

Comments
 (0)