MLOpsPython icon indicating copy to clipboard operation
MLOpsPython copied to clipboard

Lack of documentation of task "ms-air-aiagility.vss-services-azureml.azureml-restApi-task.MLPublishedPipelineRestAPITask@0"

Open kawofong opened this issue 4 years ago • 3 comments
trafficstars

This feedback pertains to "ms-air-aiagility.vss-services-azureml.azureml-restApi-task.MLPublishedPipelineRestAPITask@0" used in our MLOpsPython sample https://github.com/microsoft/MLOpsPython/blob/master/.pipelines/diabetes_regression-ci.yml#L83

See existing UserVoice for other user feedbacks: https://feedback.azure.com/forums/257792-machine-learning/suggestions/40575718-document-azure-devops-machine-learning-tasks

kawofong avatar Feb 02 '21 18:02 kawofong

I have an ML workspace inside a private link and the above task fails with a Forbidden error. No way to debug I'm afraid. :( Cannot even locate the source code for this. I'd like to understand what value this task brings that cannot be done via CLI or SDK.

tcsatheesh avatar Feb 17 '21 19:02 tcsatheesh

Hi @tcsatheesh i had a similar issue with the task where i am using the private endpoints, so i replaced the task as follows, it works with this fine.

- task: AzureCLI@1
  inputs:
    azureSubscription: '$(WORKSPACE_SVC_CONNECTION)'
    scriptLocation: inlineScript
    workingDirectory: $(Build.SourcesDirectory)
    inlineScript: |
      set -e # fail on error
      az extension add -n azure-cli-ml
      RUN_ID_TEMP=$(az ml run submit-pipeline --experiment-name $(EXPERIMENT_NAME) --pipeline-id $(AMLPIPELINE_ID) --resource-group $(RESOURCE_GROUP) --workspace-name $(WORKSPACE_NAME) --parameters model_name="$(MODEL_NAME)")
      RUN_ID_FIRST_LINE=$(echo "$RUN_ID_TEMP" | head -n 1)
      RUN_ID=$(echo "$RUN_ID_FIRST_LINE" | awk '{print $3}')
      echo "RUN_ID          ::: $RUN_ID"
      az ml run update --run $RUN_ID --experiment-name  $(EXPERIMENT_NAME) --resource-group $(RESOURCE_GROUP) --workspace-name $(WORKSPACE_NAME) --add-tag BuildId="$(Build.BuildId)"                 
  displayName: 'Invoke ML pipeline'

bharath-t-reddy avatar May 21 '21 11:05 bharath-t-reddy

This for me is the recommended approach, and ms-air-aiagility... should be removed from the repo.

lokijota avatar Aug 03 '21 20:08 lokijota