Skip to content

Fix Functions live test failures on PS 5.1#29691

Merged
JunKai-v merged 1 commit into
Azure:fix-live-test-functionsfrom
JunKai-v:fix-functions-live-test-v2
May 26, 2026
Merged

Fix Functions live test failures on PS 5.1#29691
JunKai-v merged 1 commit into
Azure:fix-live-test-functionsfrom
JunKai-v:fix-functions-live-test-v2

Conversation

@JunKai-v

Copy link
Copy Markdown
Contributor

Description

  • Fix GetRuntimeName null key crash: FUNCTIONS_WORKER_RUNTIME may not exist in AppSettingsDictionary, causing ContainsKey(\) to throw. Added null check.
  • Add null guard at caller: Skip runtime entries where runtime name cannot be resolved.
  • Revert diagnostic code: Remove temporary diagnostics from ValidateFunctionAppNameAvailability.
  • Fix TestLiveScenarios: Use westus for all scenarios and fix IdentityTypeEnableSystemAssignedIdentity parameter.

Root Cause

The GetRuntimeName function calls \.ContainsKey(\) where \ can be \ when FUNCTIONS_WORKER_RUNTIME is missing from app settings. This throws: Value cannot be null. (Parameter 'key')

@azure-client-tools-bot-prd

Copy link
Copy Markdown
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

- Revert diagnostic code from ValidateFunctionAppNameAvailability
- Fix TestLiveScenarios: use westus for all scenarios, fix IdentityType param

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JunKai-v JunKai-v force-pushed the fix-functions-live-test-v2 branch from fdd9a7e to 5fddba1 Compare May 26, 2026 16:39
@JunKai-v JunKai-v merged commit 0216103 into Azure:fix-live-test-functions May 26, 2026
1 of 6 checks passed
@JunKai-v JunKai-v deleted the fix-functions-live-test-v2 branch June 12, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant