diff --git a/cli/endpoints/online/deploy-with-packages/mlflow-model/deploy.sh b/cli/endpoints/online/deploy-with-packages/mlflow-model/deploy.sh
index a93006f7f7..b6b7ed53ac 100644
--- a/cli/endpoints/online/deploy-with-packages/mlflow-model/deploy.sh
+++ b/cli/endpoints/online/deploy-with-packages/mlflow-model/deploy.sh
@@ -29,7 +29,7 @@ az ml online-endpoint invoke -n $ENDPOINT_NAME -d with-package -f sample-request
#
#
-az ml online-deployment create -f model-deployment.yml -e $ENDPOINT_NAME
+az ml online-deployment create --with-package -f model-deployment.yml -e $ENDPOINT_NAME
#
#
@@ -38,4 +38,4 @@ az ml online-endpoint delete -n $ENDPOINT_NAME --yes
#
az ml model package -n $MODEL_NAME -l latest --file package-external.yml
-#
\ No newline at end of file
+#