Improve publish error message when public network access is disabled#4807
Merged
liliankasem merged 4 commits intomainfrom Feb 24, 2026
Merged
Improve publish error message when public network access is disabled#4807liliankasem merged 4 commits intomainfrom
liliankasem merged 4 commits intomainfrom
Conversation
When public networking is disabled for an Azure Function App, deployments fail with the unhelpful 'The SSL connection could not be established, see inner exception.' message. This change: - Adds PublishNetworkingError constant with an improved message explaining the likely cause and an aka.ms link for guidance - Wraps publish operations in RunAsync() with an HttpRequestException catch that provides the improved error message while preserving the original error details Co-authored-by: liliankasem <2198905+liliankasem@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve publish action error message for deployments
Improve publish error message when public network access is disabled
Feb 23, 2026
liliankasem
reviewed
Feb 23, 2026
liliankasem
reviewed
Feb 23, 2026
Co-authored-by: liliankasem <2198905+liliankasem@users.noreply.github.com>
liliankasem
approved these changes
Feb 23, 2026
aishwaryabh
approved these changes
Feb 23, 2026
satvu
approved these changes
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deployments to Function Apps with public network access disabled (now the portal default) fail with the cryptic
The SSL connection could not be established, see inner exception.— no context, no remediation path.Changes
Constants.Errors.PublishNetworkingError— new constant with an actionable message pointing tohttps://learn.microsoft.com/azure/azure-functions/functions-networking-optionsPublishFunctionAppAction.RunAsync()— wrapsPublishFunctionApp/PublishLocalAppSettingsin atry/catch (HttpRequestException)that re-throws asCliExceptionwith the improved message + original error detailrelease_notes.md— added entry for this improvement referencing PR Improve publish error message when public network access is disabled #4807HttpRequestExceptionis only raised for transport-level failures (SSL, socket, DNS); HTTP 4xx/5xx are already caught upstream byCheckResponseStatusAsyncasCliException, so this catch is scoped correctly.Before:
After:
Pull request checklist
release_notes.mdAdditional information
The error message directs users to the official Azure Functions networking options documentation at
https://learn.microsoft.com/azure/azure-functions/functions-networking-options, which covers VNet integration, private endpoints, and IP restrictions.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.