Skip to content

Bug: Missing hostname parameter #4305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public class AzureApplicationGatewayBackendHttpSettingsBase : NetworkBaseCmdlet
HelpMessage = "Flag if host header should be picked from the host name of the backend server.")]
public SwitchParameter PickHostNameFromBackendAddress { get; set; }

[Parameter(
Mandatory = false,
HelpMessage = "Sets host header to be sent to the backend servers.")]
public string HostName { get; set; }

[Parameter(
Mandatory = false,
HelpMessage = "Cookie name to use for the affinity cookie")]
Expand Down Expand Up @@ -148,6 +153,10 @@ public PSApplicationGatewayBackendHttpSettings NewObject()
{
backendHttpSettings.PickHostNameFromBackendAddress = true;
}
if(this.HostName != null)
{
backendHttpSettings.HostName = this.HostName;
}
if (this.AffinityCookieName != null)
{
backendHttpSettings.AffinityCookieName = this.AffinityCookieName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Adds back-end HTTP settings to an application gateway.

```
Add-AzureRmApplicationGatewayBackendHttpSettings -ApplicationGateway <PSApplicationGateway> -Name <String>
-Port <Int32> -Protocol <String> -CookieBasedAffinity <String> [-RequestTimeout <UInt32>]
-Port <Int32> -Protocol <String> -CookieBasedAffinity <String> [-RequestTimeout <Int32>]
[-ConnectionDraining <PSApplicationGatewayConnectionDraining>] [-ProbeId <String>]
[-Probe <PSApplicationGatewayProbe>]
[-AuthenticationCertificates <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayAuthenticationCertificate]>]
[-PickHostNameFromBackendAddress] [-AffinityCookieName <String>] [-ProbeEnabled] [-Path <String>]
[<CommonParameters>]
[-PickHostNameFromBackendAddress] [-HostName <String>] [-AffinityCookieName <String>] [-ProbeEnabled]
[-Path <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -115,6 +115,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -HostName
Sets host header to be sent to the backend servers.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
Specifies the name of the back-end HTTP settings which this cmdlet adds.

Expand Down Expand Up @@ -242,7 +257,7 @@ Accept wildcard characters: False
Specifies the request time-out value.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Adds a health probe to an Application Gateway.

```
Add-AzureRmApplicationGatewayProbeConfig -ApplicationGateway <PSApplicationGateway> -Name <String>
-Protocol <String> [-HostName <String>] -Path <String> -Interval <UInt32> -Timeout <UInt32>
-UnhealthyThreshold <UInt32> [-PickHostNameFromBackendHttpSettings] [-MinServers <UInt32>]
-Protocol <String> [-HostName <String>] -Path <String> -Interval <Int32> -Timeout <Int32>
-UnhealthyThreshold <Int32> [-PickHostNameFromBackendHttpSettings] [-MinServers <Int32>]
[-Match <PSApplicationGatewayProbeHealthResponseMatch>] [<CommonParameters>]
```

Expand Down Expand Up @@ -69,7 +69,7 @@ This is the time interval between two consecutive probes.
This value is between 1 second and 86400 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down Expand Up @@ -101,7 +101,7 @@ Minimum number of servers that are always marked healthy.
Default value is 0

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down Expand Up @@ -183,7 +183,7 @@ This cmdlet marks the probe as failed if a valid response is not received with t
Valid values are between 1 second and 86400 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand All @@ -200,7 +200,7 @@ The backend server is marked down after consecutive probe failure count reaches
Valid values are between 1 second and 20 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Creates back-end HTTP settings for an application gateway.

```
New-AzureRmApplicationGatewayBackendHttpSettings -Name <String> -Port <Int32> -Protocol <String>
-CookieBasedAffinity <String> [-RequestTimeout <UInt32>]
-CookieBasedAffinity <String> [-RequestTimeout <Int32>]
[-ConnectionDraining <PSApplicationGatewayConnectionDraining>] [-ProbeId <String>]
[-Probe <PSApplicationGatewayProbe>]
[-AuthenticationCertificates <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayAuthenticationCertificate]>]
[-PickHostNameFromBackendAddress] [-AffinityCookieName <String>] [-ProbeEnabled] [-Path <String>]
[<CommonParameters>]
[-PickHostNameFromBackendAddress] [-HostName <String>] [-AffinityCookieName <String>] [-ProbeEnabled]
[-Path <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -98,6 +98,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -HostName
Sets host header to be sent to the backend servers.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
Specifies the name of the back-end HTTP settings that this cmdlet creates.

Expand Down Expand Up @@ -225,7 +240,7 @@ Accept wildcard characters: False
Specifies a request time-out value.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Creates a new connection draining configuration for back-end HTTP settings.
## SYNTAX

```
New-AzureRmApplicationGatewayConnectionDraining -Enabled <Boolean> -DrainTimeoutInSec <UInt32>
New-AzureRmApplicationGatewayConnectionDraining -Enabled <Boolean> -DrainTimeoutInSec <Int32>
[<CommonParameters>]
```

Expand All @@ -35,7 +35,7 @@ The number of seconds connection draining is active.
Acceptable values are from 1 second to 3600 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Creates a health probe.

```
New-AzureRmApplicationGatewayProbeConfig -Name <String> -Protocol <String> [-HostName <String>] -Path <String>
-Interval <UInt32> -Timeout <UInt32> -UnhealthyThreshold <UInt32> [-PickHostNameFromBackendHttpSettings]
[-MinServers <UInt32>] [-Match <PSApplicationGatewayProbeHealthResponseMatch>] [<CommonParameters>]
-Interval <Int32> -Timeout <Int32> -UnhealthyThreshold <Int32> [-PickHostNameFromBackendHttpSettings]
[-MinServers <Int32>] [-Match <PSApplicationGatewayProbeHealthResponseMatch>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -52,7 +52,7 @@ This is the time interval between two consecutive probes.
This value is between 1 second and 86400 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down Expand Up @@ -84,7 +84,7 @@ Minimum number of servers that are always marked healthy.
Default value is 0

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down Expand Up @@ -165,7 +165,7 @@ This cmdlet marks the probe as failed if a valid response is not received with t
Valid values are between 1 second and 86400 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand All @@ -182,7 +182,7 @@ The backend server is marked down after consecutive probe failure count reaches
Valid values are between 1 second and 20 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Minimum version of Ssl protocol to be supported on application gateway
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: TLSv1_0, TLSv1_1, TLSv1_2

Required: False
Position: Named
Expand Down Expand Up @@ -106,6 +107,7 @@ Type of Ssl Policy
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Predefined, Custom

Required: False
Position: Named
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Updates back-end HTTP settings for an application gateway.

```
Set-AzureRmApplicationGatewayBackendHttpSettings -ApplicationGateway <PSApplicationGateway> -Name <String>
-Port <Int32> -Protocol <String> -CookieBasedAffinity <String> [-RequestTimeout <UInt32>]
-Port <Int32> -Protocol <String> -CookieBasedAffinity <String> [-RequestTimeout <Int32>]
[-ConnectionDraining <PSApplicationGatewayConnectionDraining>] [-ProbeId <String>]
[-Probe <PSApplicationGatewayProbe>]
[-AuthenticationCertificates <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayAuthenticationCertificate]>]
[-PickHostNameFromBackendAddress] [-AffinityCookieName <String>] [-ProbeEnabled] [-Path <String>]
[<CommonParameters>]
[-PickHostNameFromBackendAddress] [-HostName <String>] [-AffinityCookieName <String>] [-ProbeEnabled]
[-Path <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -116,6 +116,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -HostName
Sets host header to be sent to the backend servers.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
Specifies the name of the back-end HTTP settings object.

Expand Down Expand Up @@ -244,7 +259,7 @@ Accept wildcard characters: False
Specifies a request time-out value.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Modifies the connection draining configuration of a back-end HTTP settings objec

```
Set-AzureRmApplicationGatewayConnectionDraining -BackendHttpSettings <PSApplicationGatewayBackendHttpSettings>
-Enabled <Boolean> -DrainTimeoutInSec <UInt32> [<CommonParameters>]
-Enabled <Boolean> -DrainTimeoutInSec <Int32> [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -54,7 +54,7 @@ The number of seconds connection draining is active.
Acceptable values are from 1 second to 3600 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Sets the health probe configuration on an existing Application Gateway.

```
Set-AzureRmApplicationGatewayProbeConfig -ApplicationGateway <PSApplicationGateway> -Name <String>
-Protocol <String> [-HostName <String>] -Path <String> -Interval <UInt32> -Timeout <UInt32>
-UnhealthyThreshold <UInt32> [-PickHostNameFromBackendHttpSettings] [-MinServers <UInt32>]
-Protocol <String> [-HostName <String>] -Path <String> -Interval <Int32> -Timeout <Int32>
-UnhealthyThreshold <Int32> [-PickHostNameFromBackendHttpSettings] [-MinServers <Int32>]
[-Match <PSApplicationGatewayProbeHealthResponseMatch>] [<CommonParameters>]
```

Expand Down Expand Up @@ -69,7 +69,7 @@ This is the time interval between two consecutive probes.
This value is between 1 second and 86400 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down Expand Up @@ -101,7 +101,7 @@ Minimum number of servers that are always marked healthy.
Default value is 0

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down Expand Up @@ -182,7 +182,7 @@ This cmdlet marks the probe as failed if a valid response is not received with t
Valid values are between 1 second and 86400 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand All @@ -199,7 +199,7 @@ The backend server is marked down after consecutive probe failure count reaches
Valid values are between 1 second and 20 seconds.

```yaml
Type: UInt32
Type: Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Minimum version of Ssl protocol to be supported on application gateway
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: TLSv1_0, TLSv1_1, TLSv1_2

Required: False
Position: Named
Expand Down Expand Up @@ -124,6 +125,7 @@ Type of Ssl Policy
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Predefined, Custom

Required: False
Position: Named
Expand Down