@@ -99,8 +99,8 @@ if (-not $TargetResourceGroup) {
9999 $TargetResourceGroup = " bvt-$UniqueId -tgt-rg"
100100}
101101
102- Write-Host " Source RG: $ ( Protect-Identifier - Value $SourceResourceGroup ) "
103- Write-Host " Target RG: $ ( Protect-Identifier - Value $TargetResourceGroup ) "
102+ Write-Host " Source RG: $ ( Protect-ResourceGroupName - Value $SourceResourceGroup ) "
103+ Write-Host " Target RG: $ ( Protect-ResourceGroupName - Value $TargetResourceGroup ) "
104104
105105# ---------------------------------------------------------------------------
106106# Helpers
@@ -159,9 +159,9 @@ function Invoke-Teardown {
159159 }
160160 }
161161
162- Write-Host " Deleting $ ( Protect-Identifier - Value $SourceResourceGroup ) ..."
162+ Write-Host " Deleting $ ( Protect-ResourceGroupName - Value $SourceResourceGroup ) ..."
163163 az group delete -- name $SourceResourceGroup -- yes -- no- wait 2> $null
164- Write-Host " Deleting $ ( Protect-Identifier - Value $TargetResourceGroup ) ..."
164+ Write-Host " Deleting $ ( Protect-ResourceGroupName - Value $TargetResourceGroup ) ..."
165165 az group delete -- name $TargetResourceGroup -- yes -- no- wait 2> $null
166166
167167 if ($HardDelete ) {
@@ -432,7 +432,7 @@ try {
432432 # Query APIM instance from resource group
433433 $apimName = az apim list -- resource- group $SourceResourceGroup -- query " [0].name" - o tsv 2> $null
434434 if (-not $apimName ) {
435- Write-Host " ❌ No APIM instance found in resource group $ ( Protect-Identifier - Value $SourceResourceGroup ) "
435+ Write-Host " ❌ No APIM instance found in resource group $ ( Protect-ResourceGroupName - Value $SourceResourceGroup ) "
436436 exit 2
437437 }
438438 $apimName
@@ -445,7 +445,7 @@ try {
445445 # Query APIM instance from resource group
446446 $apimName = az apim list -- resource- group $TargetResourceGroup -- query " [0].name" - o tsv 2> $null
447447 if (-not $apimName ) {
448- Write-Host " ❌ No APIM instance found in resource group $ ( Protect-Identifier - Value $TargetResourceGroup ) "
448+ Write-Host " ❌ No APIM instance found in resource group $ ( Protect-ResourceGroupName - Value $TargetResourceGroup ) "
449449 exit 2
450450 }
451451 $apimName
@@ -463,14 +463,14 @@ try {
463463 Write-Host " Cleaned previous extract output"
464464 }
465465
466- Write-Host " Source: $sourceName (sub: $ ( Protect-SubscriptionId - Value $sourceSubId ) , rg: $ ( Protect-Identifier - Value $sourceRg ) )"
466+ Write-Host " Source: $sourceName (sub: $ ( Protect-SubscriptionId - Value $sourceSubId ) , rg: $ ( Protect-ResourceGroupName - Value $sourceRg ) )"
467467 Write-Host " Output: $ExtractOutputDir "
468468
469469 $apiopsLogLevel = Get-ApiopsLogLevel - ScriptLogLevel $LogLevel
470470
471471 $extractExitCode = Invoke-MaskedApiopsCommand - Replacements @ {
472472 $sourceSubId = Protect-SubscriptionId - Value $sourceSubId
473- $sourceRg = Protect-Identifier - Value $sourceRg
473+ $sourceRg = Protect-ResourceGroupName - Value $sourceRg
474474 } - Command {
475475 npx apiops extract `
476476 -- subscription- id $sourceSubId `
@@ -600,12 +600,12 @@ loggers:
600600 Write-Phase " 📤" " PHASE 3 — Publish to target APIM"
601601 $publishTimer = [System.Diagnostics.Stopwatch ]::StartNew()
602602
603- Write-Host " Target: $targetName (sub: $ ( Protect-SubscriptionId - Value $targetSubId ) , rg: $ ( Protect-Identifier - Value $targetRg ) )"
603+ Write-Host " Target: $targetName (sub: $ ( Protect-SubscriptionId - Value $targetSubId ) , rg: $ ( Protect-ResourceGroupName - Value $targetRg ) )"
604604 Write-Host " Input: $ExtractOutputDir "
605605
606606 $publishExitCode = Invoke-MaskedApiopsCommand - Replacements @ {
607607 $targetSubId = Protect-SubscriptionId - Value $targetSubId
608- $targetRg = Protect-Identifier - Value $targetRg
608+ $targetRg = Protect-ResourceGroupName - Value $targetRg
609609 } - Command {
610610 npx apiops publish `
611611 -- subscription- id $targetSubId `
0 commit comments