locked
ResourceNotFound, The Resource Microsoft.DataFactory/factories/... under resource group '...' was not found. RRS feed

  • Question

  • hi,

    I was running following azure rest api call through the console given in web. Though we set up every thing correctly and try to retrieve pipelines in the data factory attached to a resource group gives following error. Please help me out to if anyone know how to get rid of this error.

    The Resource 'Microsoft.DataFactory/factories/avengersadf' under resource group 'ADFResourceGroup' was not found.

    Request Preview

    GET https://management.azure.com/subscriptions/efcb19ad-6d69-4a3f-a559-8b2ed772b420/resourceGroups/ADFResourceGroup/providers/Microsoft.DataFactory/factories/avengersadf/pipelines/Dotnet%20Helloworld?api-version=2018-06-01
    Authorization: 

    Response Code: 404

    cache-control: no-cache
    content-type: application/json; charset=utf-8
    expires: -1
    pragma: no-cache
    x-ms-correlation-request-id: aad8af0d-4fca-47df-ad48-2e627b402e87
    x-ms-failure-cause: gateway
    x-ms-request-id: aad8af0d-4fca-47df-ad48-2e627b402e87
    x-ms-routing-request-id: SOUTHEASTASIA:20180903T184319Z:aad8af0d-4fca-47df-ad48-2e627b402e87

    Body

    {
      "error": {
        "code": "ResourceNotFound",
        "message": "/avengersadf' under resource group 'ADFResourceGroup' was not found."
      }
    }

    


    Tuesday, September 4, 2018 4:40 AM

Answers

  • Hi, For V1 data factory, you need the following endpoint:

    GET https://management.azure.com/subscriptions/sub-id/resourceGroups/ADFResourceGroup/providers/Microsoft.DataFactory/datafactories/avengersadf/datapipelines/Dotnet%20Helloworld?api-version=2015-10-01

    BTW, you may want to remove the Authorization token from your post. It will expire in an hour. But it still contains lots of information.





    Tuesday, September 4, 2018 6:55 AM

All replies

  • Hi, For V1 data factory, you need the following endpoint:

    GET https://management.azure.com/subscriptions/sub-id/resourceGroups/ADFResourceGroup/providers/Microsoft.DataFactory/datafactories/avengersadf/datapipelines/Dotnet%20Helloworld?api-version=2015-10-01

    BTW, you may want to remove the Authorization token from your post. It will expire in an hour. But it still contains lots of information.





    Tuesday, September 4, 2018 6:55 AM
  • Great  Fang It works like a charm. Thanks for sharing your experience and for the advise given. A relief.

    I was trying do this with following c sharp code with DataFactoryManagementClient class. It authenticates properly and in bellow line of code gives the same error.

    DateTime today = DateTime.Now;
    
    DateTime lastWeek = DateTime.Now.AddDays(-7);
    
    RunFilterParameters prfp = 
    new RunFilterParameters(lastWeek, today); 
    
    var x = _dataFactoryManagementClient.PipelineRuns.QueryByFactory
    ("ADFResourceGroup", "avengersadf", prfp);

    Is there any specific setting that I need to change? Appreciate your input :)

    Thank You

    //Pubudu


     
    Tuesday, September 4, 2018 9:41 AM
  • Make sure you are using V1 SDK. You could reference this doc.

    Tuesday, September 4, 2018 9:50 AM