简体   繁体   中英

How to read data from azure VM data disk via app service which resides in same Vnet?

I am trying to read the data from azure VM data disk via app service, both are in the same Vnet and i have already configured the Vnet integration.

But I dont have any idea on how to access the vm from app service

Due to the App Service sandbox explicitly does not allow access to the ports necessary for SMB protocol (137/138/139/445), I am afraid we can not use network share in the app service. Check this article link that mentioned it under Restricted Outgoing Ports: https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox .

Alternatively, you can use Azure File Share and access using REST API.

You also could consider storing your data on Azure storage then either attaching Azure Storage to a Linux container App Service or attaching Azure Storage Files as a network share to a windows container in App Service .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM