Add-AzureEndpoint
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Add-AzureEndpoint
Adds a new endpoint to an Azure virtual machine.
Syntax
Parameter Set: NoLB
Add-AzureEndpoint [-Name] <String> [-Protocol] <String> [-LocalPort] <Int32> -VM <IPersistentVM> [-ACL <NetworkAclObject> ] [-DirectServerReturn <Boolean> ] [-IdleTimeoutInMinutes <Int32> ] [-InternalLoadBalancerName <String> ] [-LoadBalancerDistribution <String> ] [-PublicPort <Int32> ] [ <CommonParameters>]
Parameter Set: LBCustomProbe
Add-AzureEndpoint [-Name] <String> [-Protocol] <String> [-LocalPort] <Int32> -LBSetName <String> -ProbePort <Int32> -ProbeProtocol <String> -VM <IPersistentVM> [-ACL <NetworkAclObject> ] [-DirectServerReturn <Boolean> ] [-IdleTimeoutInMinutes <Int32> ] [-InternalLoadBalancerName <String> ] [-LoadBalancerDistribution <String> ] [-ProbeIntervalInSeconds <Int32> ] [-ProbePath <String> ] [-ProbeTimeoutInSeconds <Int32> ] [-PublicPort <Int32> ] [ <CommonParameters>]
Parameter Set: LBDefaultProbe
Add-AzureEndpoint [-Name] <String> [-Protocol] <String> [-LocalPort] <Int32> -DefaultProbe -LBSetName <String> -VM <IPersistentVM> [-ACL <NetworkAclObject> ] [-DirectServerReturn <Boolean> ] [-IdleTimeoutInMinutes <Int32> ] [-InternalLoadBalancerName <String> ] [-LoadBalancerDistribution <String> ] [-PublicPort <Int32> ] [ <CommonParameters>]
Parameter Set: LBNoProbe
Add-AzureEndpoint [-Name] <String> [-Protocol] <String> [-LocalPort] <Int32> -LBSetName <String> -NoProbe -VM <IPersistentVM> [-ACL <NetworkAclObject> ] [-DirectServerReturn <Boolean> ] [-IdleTimeoutInMinutes <Int32> ] [-InternalLoadBalancerName <String> ] [-LoadBalancerDistribution <String> ] [-PublicPort <Int32> ] [ <CommonParameters>]
Detailed Description
This topic describes the cmdlet in the 0.8.10 version of the Microsoft Azure PowerShell module. To get the version of the module you're using, in the Azure PowerShell console, type (Get-Module -Name Azure).Version.
The Add-AzureEndpoint cmdlet adds a new input endpoint to a virtual machine. You can specify a new endpoint that is not load balanced, which will be used only by this virtual machine, or you can specify a load-balanced endpoint, which other virtual machines running in the same cloud service can share to load-balance traffic.
When adding a load-balanced endpoint, you can also specify parameters for an endpoint probe. The probe will be used to check the health of endpoints and endpoint resources, probing for response every 15 seconds, and taking a resource out of rotation if no response is received within 31 seconds.
Parameters
-ACL<NetworkAclObject>
Specifies an access control list (ACL) to apply to the endpoint.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-DefaultProbe
Specifies whether to use the default load balancer probe.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-DirectServerReturn<Boolean>
Enables or disables Direct Server Return on the endpoint.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-IdleTimeoutInMinutes<Int32>
Specifies the TCP Idle timeout period, in minutes.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-InternalLoadBalancerName<String>
Specifies name of the internal load balancer.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-LBSetName<String>
Specifies the name of a load-balanced endpoint. Multiple virtual machines in the cloud service can use a load-balanced endpoint.
Aliases |
LoadBalancedEndpointSetName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-LoadBalancerDistribution<String>
Specifies the load balancer distribution algorithm. Valid values are:
-- sourceIP: 2 tuple affinity (Source IP, Destination IP)
-- sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol)
-- none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol)
The default value is none.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-LocalPort<Int32>
Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies the name of the endpoint.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-NoProbe
Specifies whether to use a load balancer probe.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProbeIntervalInSeconds<Int32>
Specifies the polling interval of the load balancer probe in seconds.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProbePath<String>
Required if ProbeProtocol is set to "http". Omit otherwise. Specifies the URI whose health will be probed.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProbePort<Int32>
Required. Specifies the public port that the probe will use.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProbeProtocol<String>
Specifies the protocol of the endpoint to be probed. Acceptable values are "http" or "tcp". If "tcp" is specified, a received ACK is required for the probe to be successful. If "http" is specified, a 200 OK response from the ProbePath URI is required.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProbeTimeoutInSeconds<Int32>
Specifies the timeout of the load balancer probe in seconds.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Protocol<String>
Specifies the protocol of the endpoint. Acceptable values are "udp" or "tcp".
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PublicPort<Int32>
Specifies the public port that the endpoint will use.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-VM<IPersistentVM>
Specifies the virtual machine object for which the endpoint will be created.
Aliases |
InputObject |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1
This command retrieves the configuration of a virtual machine and adds a new endpoint named "HttpIn" configured with public port 80 and local port 8080. The changed configuration is passed through the pipeline to Update-AzureVM to update the virtual machine.
C:\PS>Get-AzureVM -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 | Update-AzureVM
Example 2
This command retrieves the configuration of a virtual machine and adds a new endpoint named "HttpIn" configured with public port 80 and local port 8080. The endpoint belongs to the shared load-balanced group named "WebFarm" and its availability is monitored by an HTTP probe on port 80, path '/'. The changed configuration is pass through the pipeline to Update-AzureVM to update the virtual machine.
C:\PS>Get-AzureVM -ServiceName "myLBSvc" -Name "MyVM2" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 -LBSetName "WebFarm" -ProbePort 80 -ProbeProtocol "http" -ProbePath '/' | Update-AzureVM