Azure / mlops-v2

Azure MLOps (v2) solution accelerators. Enterprise ready templates to deploy your machine learning models on the Azure Platform.
https://learn.microsoft.com/en-us/azure/machine-learning/concept-model-management-and-deployment
MIT License
478 stars 225 forks source link

[QuickStart.md] Error when running deploy-infra pipeline due to changed folder structure #33

Open yvonnebarthp opened 2 years ago

yvonnebarthp commented 2 years ago

[QUICKSTART.md] When running the "tf-ado-deply-infra.yml" pipeline I receive this error: image

The reason might be due to changed folder structure in row 7 and 9 (tf-ado-deploy-infra.yml) :

- template: ../../config-infra-prod.yml
- template: ../../config-infra-dev.yml

Here we might need go one hierarchy level higher.

setuc commented 1 year ago

Reviewing the error and trying to reproduce

cindyweng commented 1 year ago

@setuc This is going to be because of the sparse checkout, or lack thereof. It should be working fine if the sparse checkout is run first.

nswitanek commented 1 year ago

The effects of the following lines from sparse_checkout.sh seem to be making it hard to keep the relative paths correct in Azure/mlops-project-template:

mv infrastructure/$infrastructure_version $infrastructure_version
rm -rf infrastructure
mv $infrastructure_version infrastructure

For instance, there's been back and forth here: https://github.com/Azure/mlops-project-template/commits/main/infrastructure/terraform/pipelines/tf-ado-deploy-infra.yml

And the current relative path in mlops-project-template doesn't work in an ADO pipeline after running sparse_checkout.sh