From 0b9d6d157d01c67026f3754117a76d1741694369 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 20:21:32 +0000 Subject: [PATCH 1/2] Initial plan From e22e3e41023bb7b65a4388aba0b73086590fbd6b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 20:23:28 +0000 Subject: [PATCH 2/2] Add FileNotFoundError handling for missing az CLI in deploy functions Co-authored-by: sbaidachni <10055252+sbaidachni@users.noreply.github.com> --- mlops/deployment_scripts/deploy_azure_functions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mlops/deployment_scripts/deploy_azure_functions.py b/mlops/deployment_scripts/deploy_azure_functions.py index bf8a7f8..f7ce1f0 100644 --- a/mlops/deployment_scripts/deploy_azure_functions.py +++ b/mlops/deployment_scripts/deploy_azure_functions.py @@ -166,6 +166,11 @@ def _deploy_functions( ], check=True, ) + except FileNotFoundError: + print( + "Error: 'az' CLI not found. Please install the Azure CLI and ensure it is on your PATH." + ) + raise except subprocess.CalledProcessError as e: print(f"Error deploying function app: {e}") raise @@ -229,6 +234,11 @@ def _deploy_functions_withslot( ], check=True, ) + except FileNotFoundError: + print( + "Error: 'az' CLI not found. Please install the Azure CLI and ensure it is on your PATH." + ) + raise except subprocess.CalledProcessError as e: print(f"Error deploying function app: {e}") raise