Access file in a storage account residing in different tenant to ML Service in another tenant via IP based SAS restricted access

Himanshu Bajpai 1 Reputation point
2022-02-23T05:19:54.07+00:00

Hi,

I have a storage account residing in tenant-A and machine learning service in tenant-B. When I try to read file from storage account in tenant-A via SAS (with IP restriction) in the jupyter notebook running on compute in ML service in tenant-B, it is not accessible and failing with 403 (Forbidden).

But when I try to access the file without IP restriction, I am able to read it in the notebook.
Can you please help in understanding why it is happening and possible fix for the problem?

Please note, the public IP of ML compute is being used for whitelisting in SAS.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,585 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,455 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 42,406 Reputation points Microsoft Employee
    2022-02-23T13:50:27.507+00:00

    @Himanshu Bajpai I think you need to whitelist the IP ranges that fall under BatchNodeManagement.<region> and AzureMachineLearning.<region> from the list of Azure IPs for your region under the respective categories. The list of azure IPs can be downloaded from here.

    Depending on your region try whitelisting these IPs instead of the public IP of your compute and check if it works. For more details about setting up inbound and outbound network configuration for Azure ML, please refer this page.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.