none
Edit Linked Service (Azure ML) and Update Resource End Point *

    Question

  • Hello

    I am creating the automation for the azure ml web service. I use the DataFactory.

    The endpoint for .ilearner is correct and i see the refreshing of this file in Blob container.

    But next step must be updating of web service

    i tried to use the next suggested path to endpoint  "updateResourceEndpoint": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-MachineLearning-SouthCentralUS/providers/Microsoft.MachineLearning/webServices/myWebService?api-version=2.0"

    !! api 2.0 not 2016-05-01-preview

    This doesn't work

    And next problem is related to <label _ngcontent-c41="" style="font-family:'Segoe UI';color:rgba(0, 0, 0, 0.87);font-size:14px;">Service principal ID. Is this a subscription? or what</label>

    <label _ngcontent-c41="" style="font-family:'Segoe UI';color:rgba(0, 0, 0, 0.87);font-size:14px;">in azure example I see the suggestion </label>"servicePrincipalId": "fe200044-c008-4008-a005-94000000731"

    But I'm not sure what does that mean

    Thank you, if you will find a time to help me

    Erika

    <label _ngcontent-c41="" style="font-family:'Segoe UI';color:rgba(0, 0, 0, 0.87);font-size:14px;">
    </label>
    Friday, June 22, 2018 11:14 AM

All replies

  • Service principal ID is  Azure Active Directory (Azure AD) application ID. You could reference this doc.
    Friday, June 22, 2018 12:13 PM
  • The API Version should be 2016-05-01-preview instead of api 2.0, as we are using Azure Machine Learning ARM api to patch your web service.

    https://docs.microsoft.com/en-us/rest/api/machinelearning/webservices/patch

    Since it's an ARM (Azure Resource Management) endpoint, you might need an AAD application to complete authentication instead of the apiKey, as Fang mentioned above.

    Monday, June 25, 2018 2:52 AM
  • Hello

    Thank you for your help. I believe, that I passed few steps

    I have a support subscription also, but we cant complete my task

    I have the application id as service principal id and I have a key.

    But I am not sure that i connected to my certain web service created in ml studio.

    I granted the permissions to the app, but i still have a error>

    The client 'a78353df-52fc-407e-b4b2-18583500a1b3' with object id 'a78353df-52fc-407e-b4b2-18583500a1b3' does not have authorization to perform action 'Microsoft.MachineLearning/webservices/read' over scope 

    ......., please make sure web service endpoint and credentials are correct.

    The endpoint may be wrong myWebService

    What must be placed here?

    And have you more suggestion about what may be wrong

    Thank you

    Erika


    Tuesday, June 26, 2018 10:53 AM
  • Hi Erika,

    Please try below steps:

    1. Choose "All Resources" under your subscription

    2. Find the targeted AML web service (type: Machine Learning Studio web service)

    3. Choose the web service, in Access control (IAM) page, add permissions for your service principal.

    4. Save your change.

    Wednesday, June 27, 2018 8:21 AM