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