locked
Cannot update the Azure ML scoring model in the pipeline activity RRS feed

  • Question

  • Hi,

    I'm trying to retrain a ML experiment following step by step what it is written here: https://docs.microsoft.com/en-us/azure/data-factory/data-factory-azure-ml-batch-execution-activity 

    Unfortunately the Azure ML Update Resource activity always fail with the following message:

    "The service principal of your linked service is invalid to generate authentication token. Please re-deploy linked service 'updatableScoringEndpoint2' with correct servicePrincipalId, servicePrincipalKey and tenant. Error Details: 'AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided. Trace ID: 41c0afd3-16ed-42c6-b96b-96c6a79d3e00 Correlation ID: 6a1582a5-fca7-4992-807b-1cd5715780d2 Timestamp: 2017-07-13 12:32:50Z"

    The principal I have created is of type Web/Api and has the contributor role for the Scoring Web Service.

    Both the training and scoring experiments are published using the new portal.

    Any clue?

    Thanks in advance.

    Here below the code snippet of the linked service

    {
        "name": "updatableScoringEndpoint2",
        "properties": {
            "hubName": "retrainingdf_hub",
            "type": "AzureML",
            "typeProperties": {
                "mlEndpoint": "https://europewest.services.azureml.net/subscriptions/cf5895a409a645exxxxxxxxxx/services/de1f20ace25c47d3b93xxxxxxxxxxxxx/jobs?api-version=2.0",
                "apiKey": "**********",
                "updateResourceEndpoint": "https://management.azure.com/subscriptions/cf5895a4-09a6-45exxxxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.MachineLearning/webServices/RetrainDemoScoring?api-version=2016-05-01-preview",
                "servicePrincipalId": "2388d130-e86e-xxxxxxxxxxxxxxxx",
                "servicePrincipalKey": "**********",
                "tenant": "abb18969-ed9d-xxxxxxxxxxxxxxxxxxx"
            }
        }
    }



    • Edited by SG111273 Friday, July 14, 2017 12:30 PM
    Friday, July 14, 2017 11:29 AM