[AppService] Fail fast for az functionapp deploy outside AzureCloud with actionable guidance#33364
Draft
Copilot wants to merge 2 commits into
Draft
[AppService] Fail fast for az functionapp deploy outside AzureCloud with actionable guidance#33364Copilot wants to merge 2 commits into
az functionapp deploy outside AzureCloud with actionable guidance#33364Copilot wants to merge 2 commits into
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/1d8c08c8-57d9-48f1-8011-e9ddf0b4144b Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix az functionapp deploy error for Java FunctionApp
[AppService] Fail fast for May 12, 2026
az functionapp deploy outside AzureCloud with actionable guidance
Collaborator
|
AppService |
|
Please note that this does not fix the attached issue!
The attached issue is about the API failing in the Edit: Also, custom clouds exist, and they could implement this functionality. So the current scope (fail fast for any and all non-public clouds) seems ill-adviced. |
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.
Related command
az functionapp deployDescription
az functionapp deploycurrently reaches OneDeploy and can fail with a generic backend message (This API isn't available in this environment yet!) for non-public clouds. This change moves that failure to CLI validation with a deterministic, actionable error.validate_onedeploy_functionapp_params(cmd, namespace)to keep existing OneDeploy argument validation and add cloud gating for Function App deploy.AzureCloud, CLI now stops before OneDeploy call and returns guidance to useaz functionapp deployment source config-zip.functionapp deploycommand registration to use the new functionapp-specific validator;webapp deploypath is unchanged.AzureCloudTesting Guide
az functionapp deploy -g <rg> -n <app> --src-path <artifact> --type jarHistory Notes
[AppService]
az functionapp deploy: Add cloud-aware pre-validation and actionable guidance for non-AzureCloud environmentsThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
azcliprod.blob.core.windows.net/usr/bin/python python -m unittest azure.cli.command_modules.appservice.tests.latest.test_functionapp_commands_thru_mock(dns block)If you need me to access, download, or install something from one of these locations, you can either: