Description
I merged the latest changes from Main into my branch and tried to run the end to tend test, but it seems to hang. I left it for ~1 hour after running the command and the resource groups were created in Azure, but no resources in either the source or target resource groups.
Command line:
./run-roundtrip-test.ps1 -PublisherEmail phauge@microsoft.com -SkipTeardown
Log
🔐 Azure CLI authenticated: PHAUGE-BAMI-Mar-2026-Subscription (<REDACTED:subscription-id>)
🚀 PHASE 1 — Deploy source and target APIM instances (parallel)
[SRC] **********************
[SRC] PowerShell transcript start
[SRC] Start time: 20260605104733
[SRC] **********************
[SRC] VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\LogMasking.psm1'.
[SRC] VERBOSE: Importing function 'Invoke-MaskedApiopsCommand'.
[SRC] VERBOSE: Importing function 'Invoke-MaskedAzCommand'.
[SRC] VERBOSE: Importing function 'Invoke-MaskedProcess'.
[SRC] VERBOSE: Importing function 'Protect-ApimName'.
[SRC] VERBOSE: Importing function 'Protect-Identifier'.
[SRC] VERBOSE: Importing function 'Protect-LogLine'.
[SRC] VERBOSE: Importing function 'Protect-ResourceGroupName'.
[SRC] VERBOSE: Importing function 'Protect-SubscriptionId'.
[SRC] VERBOSE: Importing function 'Resolve-ApiopsInvocation'.
[SRC] VERBOSE: Importing function 'Resolve-NativeExecutable'.
[SRC] VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\ScriptRuntime.psm1'.
[SRC] VERBOSE: Importing function 'Add-ArgumentIfSet'.
[SRC] VERBOSE: Importing function 'Assert-AzCliLoggedIn'.
[SRC] VERBOSE: Importing function 'Get-BoundParameterValueOrNull'.
[SRC] VERBOSE: Importing function 'Set-ScriptLogPreferences'.
[SRC] VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\DeploymentOps.psm1'.
[SRC] VERBOSE: Importing function 'Wait-ApimActivation'.
[SRC] VERBOSE: Importing function 'Wait-ApimApiQueryable'.
[SRC] VERBOSE: Importing function 'Write-DeploymentFailureDetails'.
[SRC] 🔐 Verifying Azure CLI authentication...
[SRC] Subscription: PHAUGE-BAMI-Mar-2026-Subscription (<REDACTED:subscription-id>)
[SRC] 📋 Registering required resource providers...
[TGT] **********************
[TGT] PowerShell transcript start
[TGT] Start time: 20260605104734
[TGT] **********************
[TGT] VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\LogMasking.psm1'.
[TGT] VERBOSE: Importing function 'Invoke-MaskedApiopsCommand'.
[TGT] VERBOSE: Importing function 'Invoke-MaskedAzCommand'.
[TGT] VERBOSE: Importing function 'Invoke-MaskedProcess'.
[TGT] VERBOSE: Importing function 'Protect-ApimName'.
[TGT] VERBOSE: Importing function 'Protect-Identifier'.
[TGT] VERBOSE: Importing function 'Protect-LogLine'.
[TGT] VERBOSE: Importing function 'Protect-ResourceGroupName'.
[TGT] VERBOSE: Importing function 'Protect-SubscriptionId'.
[TGT] VERBOSE: Importing function 'Resolve-ApiopsInvocation'.
[TGT] VERBOSE: Importing function 'Resolve-NativeExecutable'.
[TGT] VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\ScriptRuntime.psm1'.
[TGT] VERBOSE: Importing function 'Add-ArgumentIfSet'.
[TGT] VERBOSE: Importing function 'Assert-AzCliLoggedIn'.
[TGT] VERBOSE: Importing function 'Get-BoundParameterValueOrNull'.
[TGT] VERBOSE: Importing function 'Set-ScriptLogPreferences'.
[TGT] VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\DeploymentOps.psm1'.
[TGT] VERBOSE: Importing function 'Wait-ApimActivation'.
[TGT] VERBOSE: Importing function 'Wait-ApimApiQueryable'.
[TGT] VERBOSE: Importing function 'Write-DeploymentFailureDetails'.
[TGT] Starting target APIM deployment...
[TGT] Subscription: PHAUGE-BAMI-Mar-2026-Subscription (<REDACTED:subscription-id>)
[TGT] Resource Group: bvt-...-brw-tgt-rg
[TGT] SKU: StandardV2
[TGT] Location: centralus
[TGT] Log Level: Verbose
[TGT] Creating resource group...
[SRC] Microsoft.ApiManagement already registered
[TGT] Deploying target-apim.bicep (this takes 30-45 minutes)...
[SRC] Microsoft.Insights already registered
[SRC] Microsoft.OperationalInsights already registered
[SRC] Microsoft.EventHub already registered
[SRC] Microsoft.KeyVault already registered
[SRC] Microsoft.AlertsManagement already registered
[SRC] Waiting for provider registration to complete...
[SRC] ✅ Resource providers ready
[SRC] 📦 Ensuring resource group 'bvt-...-brw-src-rg' exists in 'centralus'...
[SRC] 🚀 Deploying source-apim.bicep (this takes 30-45 minutes for APIM)...
[SRC] APIM Name: (auto-generated from resource group)
[SRC] SKU: StandardV2
❌ Source deployment failed:
VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\LogMasking.psm1'.
VERBOSE: Importing function 'Invoke-MaskedApiopsCommand'.
VERBOSE: Importing function 'Invoke-MaskedAzCommand'.
VERBOSE: Importing function 'Invoke-MaskedProcess'.
VERBOSE: Importing function 'Protect-ApimName'.
VERBOSE: Importing function 'Protect-Identifier'.
VERBOSE: Importing function 'Protect-LogLine'.
VERBOSE: Importing function 'Protect-ResourceGroupName'.
VERBOSE: Importing function 'Protect-SubscriptionId'.
VERBOSE: Importing function 'Resolve-ApiopsInvocation'.
VERBOSE: Importing function 'Resolve-NativeExecutable'.
VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\ScriptRuntime.psm1'.
VERBOSE: Importing function 'Add-ArgumentIfSet'.
VERBOSE: Importing function 'Assert-AzCliLoggedIn'.
VERBOSE: Importing function 'Get-BoundParameterValueOrNull'.
VERBOSE: Importing function 'Set-ScriptLogPreferences'.
VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\DeploymentOps.psm1'.
VERBOSE: Importing function 'Wait-ApimActivation'.
VERBOSE: Importing function 'Wait-ApimApiQueryable'.
VERBOSE: Importing function 'Write-DeploymentFailureDetails'.
🔐 Verifying Azure CLI authentication...
Subscription: PHAUGE-BAMI-Mar-2026-Subscription (<REDACTED:subscription-id>)
📋 Registering required resource providers...
Microsoft.ApiManagement already registered
Microsoft.Insights already registered
Microsoft.OperationalInsights already registered
Microsoft.EventHub already registered
Microsoft.KeyVault already registered
Microsoft.AlertsManagement already registered
Waiting for provider registration to complete...
✅ Resource providers ready
📦 Ensuring resource group 'bvt-...-brw-src-rg' exists in 'centralus'...
🚀 Deploying source-apim.bicep (this takes 30-45 minutes for APIM)...
APIM Name: (auto-generated from resource group)
SKU: StandardV2
========== Deployment failure details ==========
Resource group: bvt-...-brw-src-rg
Deployment: source-apim-20260605105245
Querying failed deployment operations (before teardown)...
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
================================================
❌ Target deployment failed:
VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\LogMasking.psm1'.
VERBOSE: Importing function 'Invoke-MaskedApiopsCommand'.
VERBOSE: Importing function 'Invoke-MaskedAzCommand'.
VERBOSE: Importing function 'Invoke-MaskedProcess'.
VERBOSE: Importing function 'Protect-ApimName'.
VERBOSE: Importing function 'Protect-Identifier'.
VERBOSE: Importing function 'Protect-LogLine'.
VERBOSE: Importing function 'Protect-ResourceGroupName'.
VERBOSE: Importing function 'Protect-SubscriptionId'.
VERBOSE: Importing function 'Resolve-ApiopsInvocation'.
VERBOSE: Importing function 'Resolve-NativeExecutable'.
VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\ScriptRuntime.psm1'.
VERBOSE: Importing function 'Add-ArgumentIfSet'.
VERBOSE: Importing function 'Assert-AzCliLoggedIn'.
VERBOSE: Importing function 'Get-BoundParameterValueOrNull'.
VERBOSE: Importing function 'Set-ScriptLogPreferences'.
VERBOSE: Loading module from path 'C:\Sources\apiops-cli\tests\integration\all-resource-types\modules\DeploymentOps.psm1'.
VERBOSE: Importing function 'Wait-ApimActivation'.
VERBOSE: Importing function 'Wait-ApimApiQueryable'.
VERBOSE: Importing function 'Write-DeploymentFailureDetails'.
Starting target APIM deployment...
Subscription: PHAUGE-BAMI-Mar-2026-Subscription (<REDACTED:subscription-id>)
Resource Group: bvt-...-brw-tgt-rg
SKU: StandardV2
Location: centralus
Log Level: Verbose
Creating resource group...
Deploying target-apim.bicep (this takes 30-45 minutes)...
========== Deployment failure details ==========
Resource group: bvt-...-brw-tgt-rg
Deployment: target-apim-20260605104801
Querying failed deployment operations (before teardown)...
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
================================================
Description
I merged the latest changes from Main into my branch and tried to run the end to tend test, but it seems to hang. I left it for ~1 hour after running the command and the resource groups were created in Azure, but no resources in either the source or target resource groups.
Command line:
./run-roundtrip-test.ps1 -PublisherEmail phauge@microsoft.com -SkipTeardownLog