Closed saugatapaul1010 closed 2 years ago
Thanks for posting your query. This azure-docs repository deals about feedback related to particular Azure document page (like correcting doc bugs, doc enhancements, product issues related to wrong doc instructions, etc.) so if issue is intended to update / correct / enhance anything in an Azure document then please share Azure document link / URL and share the feedback related to it.
Else, if you are looking for help with troubleshooting, how-to issues, I would suggest reaching out to the Microsoft Q&A and Stack Overflow communities with the relevant tags or opening a support ticket.
We will now close this issue. Please share the requested details about document url and tag me in a comment. I will reopen it and we will gladly continue the discussion.
@saugatapaul1010 did you manage to solve it? We are seeing same error.
HI,
I am trying to execute a CD pipeline in Azure DevOps, after successfully executing the CI pipeline which automatically triggers the CD pipeline. I have used Microsoft Self-Hosted Agent in both the cases - in the build pipeline and the release pipeline. During the deployment stage to the AKS cluster, I am getting a WebserviceExceptionerror & KubernetesDeploymentFailed with status code 400. I have used the below Azure CLI commands to create an AKS cluster and deploy the model to it. Incidentally, the same pipeline was running perfectly well when I executed this about two months back. Also, there have been 0 changes to the pipeline since. Not able to figure out why this would happen. Any pointers will be appreciated. Is this a version-related issue?
Specifically for this error -- "Error in entry script, ImportError: cannot import name 'Markup' from 'jinja2'", I have included Jinja2 as part of my dependencies both for the CI as well as the CD stage.
Create AKS Cluster:
az ml computetarget create aks -g $(ml.resourceGroup) -w $(ml.workspace) -n $(aks.clusterName) -s $(aks.vmSize) -a $(aks.agentCount) --cluster-purpose $(ml.clusterPurpose)
Deploy ML Model To AKS cluster:
az ml model deploy -g $(ml.resourceGroup) -w $(ml.workspace) -n $(aks_service_name) -f model.json --dc aksDeploymentConfig.yml --ic inferenceConfig.yml --ct $(aks.clusterName) --description "TicketPriority Classifier deployed in AKS" --overwrite
Please find below the error stack trace for the "Deploy ML Model To AKS cluster" task step:
Please find the Install Dependencies for CI stage.
I have also installed these packages as part of the build and release steps.
This the YAML file for the build stage (CI)