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 "tcp" -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