From 833426e3984cf820cd9f88c07b0767b1d78fb42a Mon Sep 17 00:00:00 2001 From: Graham Zuber Date: Fri, 21 Feb 2020 16:45:03 -0800 Subject: [PATCH 1/2] Added error message to deployment source config-zip if rg/name is invalid. --- src/azure-cli/HISTORY.rst | 2 ++ src/azure-cli/azure/cli/command_modules/appservice/custom.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 8a1e5b8e3ec..c3b3a7dbbbc 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -4,7 +4,9 @@ Release History =============== **AppService** + az webapp create : Fixing issue when running the command with --runtime +functionapp: Added error message to deployment command if resource group/function name invalid 2.1.0 ++++++ diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index b9214a7d588..99ba609ea43 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -308,6 +308,9 @@ def update_azure_storage_account(cmd, resource_group_name, name, custom_id, stor def enable_zip_deploy_functionapp(cmd, resource_group_name, name, src, build_remote=False, timeout=None, slot=None): client = web_client_factory(cmd.cli_ctx) app = client.web_apps.get(resource_group_name, name) + if app is None: + raise CLIError('The function app \'{}\' was not found in resource group \'{}\'. ' + 'Please make sure these values are correct.'.format(name, resource_group_name)) parse_plan_id = parse_resource_id(app.server_farm_id) plan_info = None retry_delay = 10 # seconds From ed8d318389760ee66fb2428240bdac1c8430fa69 Mon Sep 17 00:00:00 2001 From: Graham Zuber Date: Mon, 24 Feb 2020 17:35:15 -0800 Subject: [PATCH 2/2] Fixed HISTORY.rst --- src/azure-cli/HISTORY.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index c3b3a7dbbbc..8a1e5b8e3ec 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -4,9 +4,7 @@ Release History =============== **AppService** - az webapp create : Fixing issue when running the command with --runtime -functionapp: Added error message to deployment command if resource group/function name invalid 2.1.0 ++++++