$p = '19mNqNXIoZ4c3EriFNfzfkgpGNOvLjpOqqZnTFXKnzjxWJ5zURjgJQQJ99CBACAAAAAamI5kAAASAZDOAMPp'
$t = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(':' + $p))
$h = @{ Authorization = 'Basic ' + $t; 'Content-Type' = 'application/json' }
$base = 'https://dev.azure.com/CN-Squad/Invista%20FIDC%20-%20Nexus/_apis'

# Verificar oci-terraform
$vg = Invoke-RestMethod -Uri "$base/distributedtask/variablegroups/34?api-version=7.0" -Headers $h
Write-Host "=== oci-terraform ===" -ForegroundColor Cyan
$vg.variables.PSObject.Properties | ForEach-Object {
  $val = if ($_.Value.isSecret) { '(secret)' } else { $_.Value.value }
  Write-Host "  $($_.Name) = $val"
}

# Verificar ms-parameters-dev
$vg40 = Invoke-RestMethod -Uri "$base/distributedtask/variablegroups/40?api-version=7.0" -Headers $h
Write-Host "`n=== ms-parameters-dev (ID: 40) ===" -ForegroundColor Cyan
$vg40.variables.PSObject.Properties | ForEach-Object {
  $val = if ($_.Value.isSecret) { '(secret)' } else { $_.Value.value }
  Write-Host "  $($_.Name) = $val"
}
