Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Add-AzureEndpoint to a Web Role instance for SMTP

$
0
0

I have a WebRole VM in my Azure Account, and I'm trying to open up port 25 for an email server that I installed on the VM. First, I used PowerShell to list the current endpoints:

PS C:\> Get-AzureVM -ServiceName "intouchemailsvc" -Name "InTouch-WebRole" | Get-AzureEndpoint

which showed that ports 80 and 3389 are open, then I tried:

PS C:\> Get-AzureVM -ServiceName "intouchemailsvc" -Name "InTouch-WebRole" | Add-AzureEndpoint -Name "SMTP" -Protocol "t
cp" -PublicPort 25 -LocalPort 25 | Update-AzureVM
VERBOSE: 2:42:17 PM - Completed Operation: Get Deployment
Add-AzureEndpoint : Object reference not set to an instance of an object.At line:1 char:70
+ Get-AzureVM -ServiceName "intouchemailsvc" -Name "InTouch-WebRole" | Add-AzureEn ...
+                                                                      ~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Add-AzureEndpoint], NullReferenceException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Endpoints.AddAzureEndpoint

Is it possible to open up port 25 on a Web Role?  

Thank you


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>