srijiths / MLOps-IRIS

Create a fully automated, end-to-end IRIS Training and Deployment using Azure MLOps
60 stars 199 forks source link

Can someone share AKS CLI commands #8

Closed moeenkhurram closed 2 years ago

moeenkhurram commented 2 years ago

In Devops_deploy.txt only CLI commands for Deploy IRIS Model to Azure Container Instances are given

srijiths commented 2 years ago
  1. You can use the same deploy command and change the ACI configuration with aksDeploymentConfig.yml .
  2. Also you need to add an additional --ct parameter in the deploy command ( This is the AKS Cluster name which is created )

Make sure you have a AKS cluster created before this deploy step. In this repo , AKS creation step is not used in the pipeline assuming the deployment is ACI.

moeenkhurram commented 2 years ago

Create AKS cluster az ml computetarget create aks -g $(ml.resourceGroup) -w $(ml.workspace) -n $(aks.clusterName) -l eastus2 -s Standard_A2_v2 --verbose -a 1 --cluster-purpose DevTest

Deploy model to AKS for Production az ml model deploy --name $(service_name) -g $(ml.resourceGroup) -w $(ml.workspace) --ct $(aks.clusterName) -f model.json --ic inferenceConfig.yml --dc aksDeploymentConfig.yml --overwrite