Note: you can bring your own certificate. We will use this certificate to configure FTP over SSL. $VM = $VM | Add-AzureEndpoint -Name “FTP-Data-$Port” -Protocol ‘TCP’ -LocalPort $Port -PublicPort $PortĪdd FTP to a website with in-built cert on Azure Windows VMĪzure Windows VMs have a built-in SSL certificate. $VM = Get-AzureVM -ServiceName “winscp-windows” -Name “winscp-windows”įor ($Port = 5000 $Port -le 5100 $Port ) Import-AzurePublishSettingsFile C:\Users\usernam\Documents\Bizspark-credentials.publishsettings Paste the following code to PowerShell console:.publishsettings file for your Windows Azure subscription. Enter Get-AzurePublishSettingsFile command to download the.Run Microsoft Azure PowerShell from a Start menu.Provision endpoints for FTP data connections according to the range you specified when setting up the FTP server:.Complete the wizard and wait for the endpoint to be configured.Proceed to Specify the details of the endpoint step and select FTP in Name box.On Add an endpoint to a virtual machine step, select Add a stand-alone endpoint.On Endpoints tab of your instance page on Azure Management Portal, click Add on bottom bar.Provision endpoint for FTP control connection:.Open the same ports on Azure firewall using the Classic Portal and Powershell Type port range in a format min-max (e.g.Create security rule for FTP data connections according to the range you specified:.Click the OK button and wait for the rule to be created.On the Inbound security rules page of the security group, click Add in the top bar.Create security rule for the FTP control connection:.On the Network security group page of the network interface, select its security group.On the Network interfaces page of your virtual machine, select its network interface.Open the same ports on Azure firewall using the Azure Portal Under FTP Server Passive, under Protocols and Ports settings, either note the default range of ports (1024-65535) or set your own default range (e.g 5000-5100 or similar). Verify that Windows Firewall has the right ports open Using the Add Roles and Features wizard, add the FTP Server Role That’s it! You can now connect using WinSCP Add FTP to a website on Azure Windows VM.Open the same ports on Azure firewall: Portal or Classic.Verify that Windows Firewall has the right ports open.
0 Comments
Leave a Reply. |