0

I don't know how to Get specific VM's name and details with filter of PublicPort 80 Endpoint in Microsoft Azure Cloud

This is the closet command that I'd found in Google but the filtering part is missing.

Get-AzureVM -ServiceName | Get-AzureEndpoint | Format-Table -AutoSize

Thanks Have a nice day :-)

pnuts
  • 58,317
  • 11
  • 87
  • 139
James
  • 875
  • 2
  • 15
  • 24

1 Answers1

0

This is basic powershell. Use a Where-Object (https://technet.microsoft.com/en-us/library/ee177028.aspx).

i.e. Get-AzureEndpoint | Where-Object {$_.PublicPort -eq 80}

theadriangreen
  • 2,218
  • 1
  • 14
  • 14
  • thanks it works now to me :-) !!! You know how can I get the VM name from the Get-AzureEndpoint because I have few servers on the same Cloud Service and I don't know who use this port ? – James Sep 12 '15 at 07:40