Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 2.36 KB

service-fabric-powershell-open-port-in-load-balancer.md

File metadata and controls

43 lines (31 loc) · 2.36 KB
title description services author manager ms.service ms.topic ms.date ms.author ms.custom
Open application port in load balancer in PowerShell
Azure PowerShell Script Sample - Open a port in the Azure load balancer for a Service Fabric application.
service-fabric
athinanthny
chackdan
service-fabric
sample
05/18/2018
atsenthi
mvc, devx-track-azurepowershell

Open an application port in the Azure load balancer

A Service Fabric application running in Azure sits behind the Azure load balancer. This sample script opens a port in an Azure load balancer so that a Service Fabric application can communicate with external clients. Customize the parameters as needed. If your cluster is in a network security group, also add an inbound network security group rule to allow inbound traffic.

[!INCLUDE updated-for-az]

If needed, install the Service Fabric PowerShell module with the Service Fabric SDK.

Sample script

[!code-powershellmain]

Script explanation

This script uses the following commands. Each command in the table links to command-specific documentation.

Command Notes
Get-AzResource Gets an Azure resource.
Get-AzLoadBalancer Gets the Azure load balancer.
Add-AzLoadBalancerProbeConfig Adds a probe configuration to a load balancer.
Get-AzLoadBalancerProbeConfig Gets a probe configuration for a load balancer.
Add-AzLoadBalancerRuleConfig Adds a rule configuration to a load balancer.
Set-AzLoadBalancer Sets the goal state for a load balancer.

Next steps

For more information on the Azure PowerShell module, see Azure PowerShell documentation.

Additional PowerShell samples for Azure Service Fabric can be found in the Azure PowerShell samples.