I have a site to site connection established in Azure to a machine, and I have created a shared folder in that machine and now I have created an application where I am trying to upload a file and when I am running from visual studio I am able to upload the file in to the specific server but when I am deploying to Azure cloud services, it is giving an error as \10.1.0.xxxx\abc path not found. what can be the issue.
Thanks in Advance.
Regards,
Suresh
I was confused a bit from your question. When you said 'site to site connection' did you mean you created a virtual network and point to site VPN between your virtual machine and your desktop?
Well if you are using windows azure virtual machine you should be able to create a shared folder and upload files from your local desktop. Just need to create a virtual network and build a VPN between that machine and your desktop. But it might be impossible if you wanted to upload file to your cloud service. You might be able to open the firewall port on your cloud service virtual machine through powershell and startup task but all files you uploaded will be cleared when your cloud service virtual machine was moved by azure fabric controller.
Related
So, I have an app service hosted on azure and I want that app service to upload the files to my local server's shared folder. Local server has some software configured which processes those uploaded files.
In development environment everything works fine using UNC path for e.g. 10.197.1.65/Public/MyFolder/ and my application can copy the files over the network but I am not sure about how can I do that from app service.
I have encountered few solutions during my research like creating an ASE and VNET , Mapping of Azure Storage with my local drive etc., but I am not sure that which would be the feasible and proper approach.Thanks a lot.
You can't use UNC path from your app service due to that applications cannot connect to anywhere using ports 445, 137, 138, and 139 in the Restricted Outgoing Ports of Azure Web App sandbox.
As far as I know, the App service with VNet Integration is good to access or talk to the resource from a Virtual network or your on-premise network but you may need to deploy a site to site VPN gateway for your local environment. In this way, It does not support mounting a drive, but you can directly access the local data from your application.
For a Windows Container on App Service, It is a preview feature that you can mount an Azure Files share to a directory in your App Service app, then transfer data into Azure Files from your local machine. There are many methods you can interact with Azure file shares.
What is the problem?
I have created a function app which creates some files under path D:\home\site\wwwroot\afolder. What I need is the function app to copy and paste these files to a remote server (VM in Azure) under a specific folder in the VM.
What I tried :
https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-vnet
Based on the above documentation, a function app can access resources in remote network with vnet integration - it is like declaring to the function app that it will be under the same vnet as the VM and then it would hopefully be able to access the resources / folder of the remote VM. (no luck)
Based on their documentation:
There are some things that VNet Integration doesn't support including: Mounting a drive
I am not sure if I can achieve what I need with the vnet integration after all.
So the question is: can I copy & paste the files created by the function app to a remote VM folder and if yes in which way?
I have an on-premises Windows Server and Azure File Storage.
From my Windows Server, I want to use "Map network drive" to map the Azure file storage folder to a drive letter.
There is an 'Express route' between my company's intranet and Azure.
I know how to do this within Azure Windows VM. I am struggling to get mapping done from on-Prem server.
First of all, you need to ensure that you have port 445 opened for the SMB protocol to work. This is easier in Azure VM but tough to get approval from any corporate IT security team. If you are through with this, this post on Microsoft Docs gives you required details.
can anyone help me with Microsoft Azure cloud service and Virtual machine connection? My nodejs app is running live on VM but not outside virtual machine. How can I deploy nodejs app to my cloud service using virtual machine?
Note : I have added endpoints as well. Please help. Thanks
All I did now is used port forwarding using endpoints in azure. Secondly I ran the nodejs app locally on VM, it is now accessible outside VM as well using VM's public IP address. Now I dont use cloud service anymore since there is no need. Thanks everyone
When we create a virtual machine in Azure manage portal From Gallery, after selecting image and VM size, it will ask us for creating a new cloud service or selecting an exist cloud service to contain the VM.
So when you create a new one, you can put it into an exist cloud service you want.
But once the VM created, we can’t move it to other cloud service.
However, we can capture your exist VM with node.js application and environment. Then you can create a new VM using this image into the destination cloud service without redeploy environment and applications.
For more information, we can see at Capture an image of a Windows virtual machine created with the classic deployment model and How to Capture a Linux Virtual Machine to Use as a Template
I have an Asp.Net web role which is running in Azure Cloud service.
Now I have created a virtual machine in Azure data center.
And also I have created a shared folder for storing my files(.xls,.csv .. files).
how can I access the shared folder files that are exists in the VM from my web-role ?
thanks
Arun.
Shared folders are mainly for on-premise environment and in cloud you would have to think quite different. In cloud environment, a machine is placed behind a very tightly closed network system and any port you will open in your VM will be configured for external user through firewall. Accessing a shared folder would require you to enable file sharing in your machine first and the configuring proper ports. Similar configuration is needed on other Cloud Service VM as well which is more complex. The fact is when you are in cloud you should think beyond shared folder approach.
What you really need is to use cloud storage i.e. Windows Azure Blob Storage to share content between multiple machines. Price wise it is about ~10 cents/GB/Month and if you keep your VM and Azure Storage in same datacenter there is no bandwidth cost. Once configured your Azure VM and Azure Cloud service can access the Azure Blob storage very easily over HTTP/HTTPS. Learn more about Azure Storage here.