Closed moeenkhurram closed 2 years ago
--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.
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
In Devops_deploy.txt only CLI commands for Deploy IRIS Model to Azure Container Instances are given