File tree Expand file tree Collapse file tree 7 files changed +69
-8
lines changed
ApplicationGateway/Listener Expand file tree Collapse file tree 7 files changed +69
-8
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ public class AzureApplicationGatewayListenerBase : NetworkBaseCmdlet
81
81
[ ValidateNotNullOrEmpty ]
82
82
public string Protocol { get ; set ; }
83
83
84
+ [ Parameter (
85
+ HelpMessage = "Host names" ) ]
86
+ [ ValidateNotNullOrEmpty ]
87
+ public string [ ] HostNames { get ; set ; }
88
+
84
89
public override void ExecuteCmdlet ( )
85
90
{
86
91
base . ExecuteCmdlet ( ) ;
@@ -137,7 +142,12 @@ public PSApplicationGatewayListener NewObject()
137
142
{
138
143
listener . SslProfile = new PSResourceId ( ) ;
139
144
listener . SslProfile . Id = this . SslProfileId ;
140
- }
145
+ }
146
+
147
+ if ( this . HostNames != null )
148
+ {
149
+ listener . HostNames = this . HostNames ? . ToList ( ) ;
150
+ }
141
151
142
152
listener . Id = ApplicationGatewayChildResourceHelper . GetResourceNotSetId (
143
153
this . NetworkClient . NetworkManagementClient . SubscriptionId ,
Original file line number Diff line number Diff line change 24
24
* Updated cmdlet ` New-AzLoadBalancerBackendAddressPool ` to support managed IP based backend
25
25
* Added cmdlet ` New-AzSaaSNetworkVirtualAppliance ` for creating a NetworkVirtualAppliance of SaaS type.
26
26
* Added control knobs to virtual network gateways and ExpressRoute gateways as well to cmdlets operating on those.
27
+ * Updated cmdlets to add Hostnames property for Application gateway Listener Configuration
28
+ - `Set-AzApplicationGatewayListener`
29
+ - `Add-AzApplicationGatewayListener`
30
+ - `New-AzApplicationGatewayListener`
27
31
* Added cmdlet 'Remove-AzApplicationGatewayFirewallCustomRule' to support removing custom rule in Firewall Policy.
28
32
29
33
## Version 6.2.0
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public class PSApplicationGatewayListener : PSChildResource
31
31
public string Type { get ; set ; }
32
32
public PSResourceId SslProfile { get ; set ; }
33
33
34
+ public List < string > HostNames { get ; set ; }
35
+
34
36
[ JsonIgnore ]
35
37
public string FrontendIpConfigurationText
36
38
{
Original file line number Diff line number Diff line change 47
47
48
48
<Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
49
49
50
- </Project >
50
+ </Project >
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ Adds an listener to an application gateway.
17
17
Add-AzApplicationGatewayListener -ApplicationGateway <PSApplicationGateway> -Name <String>
18
18
[-FrontendIPConfiguration <PSApplicationGatewayFrontendIPConfiguration>]
19
19
[-FrontendPort <PSApplicationGatewayFrontendPort>] [-SslCertificate <PSApplicationGatewaySslCertificate>]
20
- [-SslProfile <PSApplicationGatewaySslProfile>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>]
20
+ [-SslProfile <PSApplicationGatewaySslProfile>] [-HostNames <String[]>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>]
21
21
[<CommonParameters>]
22
22
```
23
23
24
24
### SetByResourceId
25
25
```
26
26
Add-AzApplicationGatewayListener -ApplicationGateway <PSApplicationGateway> -Name <String>
27
27
[-FrontendIPConfigurationId <String>] [-FrontendPortId <String>] [-SslCertificateId <String>]
28
- [-SslProfileId <String>] - Protocol <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
28
+ [-SslProfileId <String>] [-HostNames <String[]>] - Protocol <String> [-DefaultProfile <IAzureContextContainer>] [-HostNames <String[] >] [<CommonParameters>]
29
29
```
30
30
31
31
## DESCRIPTION
@@ -133,6 +133,21 @@ Accept pipeline input: False
133
133
Accept wildcard characters : False
134
134
` ` `
135
135
136
+ ### -HostNames
137
+ Host names
138
+
139
+ ` ` ` yaml
140
+ Type : System.String[]
141
+ Parameter Sets : (All)
142
+ Aliases :
143
+
144
+ Required : False
145
+ Position : Named
146
+ Default value : None
147
+ Accept pipeline input : False
148
+ Accept wildcard characters : False
149
+ ` ` `
150
+
136
151
### -Name
137
152
The name of the Listener
138
153
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ Creates an TCP\TLS listener for an application gateway.
17
17
New-AzApplicationGatewayListener -Name <String>
18
18
[-FrontendIPConfiguration <PSApplicationGatewayFrontendIPConfiguration>]
19
19
[-FrontendPort <PSApplicationGatewayFrontendPort>] [-SslCertificate <PSApplicationGatewaySslCertificate>]
20
- [-SslProfile <PSApplicationGatewaySslProfile>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>]
20
+ [-SslProfile <PSApplicationGatewaySslProfile>] [-HostNames <String[]>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>]
21
21
[<CommonParameters>]
22
22
```
23
23
24
24
### SetByResourceId
25
25
```
26
26
New-AzApplicationGatewayListener -Name <String> [-FrontendIPConfigurationId <String>]
27
- [-FrontendPortId <String>] [-SslCertificateId <String>] [-SslProfileId <String>] -Protocol <String>
27
+ [-FrontendPortId <String>] [-SslCertificateId <String>] [-SslProfileId <String>] [-HostNames <String[]>] -Protocol <String>
28
28
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
29
29
```
30
30
@@ -125,6 +125,21 @@ Accept pipeline input: False
125
125
Accept wildcard characters : False
126
126
` ` `
127
127
128
+ ### -HostNames
129
+ Host names
130
+
131
+ ` ` ` yaml
132
+ Type : System.String[]
133
+ Parameter Sets : (All)
134
+ Aliases :
135
+
136
+ Required : False
137
+ Position : Named
138
+ Default value : None
139
+ Accept pipeline input : False
140
+ Accept wildcard characters : False
141
+ ` ` `
142
+
128
143
### -Name
129
144
The name of the Listener
130
145
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ Modifies a TCP\TLS listener for an application gateway.
17
17
Set-AzApplicationGatewayListener -ApplicationGateway <PSApplicationGateway> -Name <String>
18
18
[-FrontendIPConfiguration <PSApplicationGatewayFrontendIPConfiguration>]
19
19
[-FrontendPort <PSApplicationGatewayFrontendPort>] [-SslCertificate <PSApplicationGatewaySslCertificate>]
20
- [-SslProfile <PSApplicationGatewaySslProfile>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>]
20
+ [-SslProfile <PSApplicationGatewaySslProfile>] [-HostNames <String[]>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>]
21
21
[<CommonParameters>]
22
22
```
23
23
24
24
### SetByResourceId
25
25
```
26
26
Set-AzApplicationGatewayListener -ApplicationGateway <PSApplicationGateway> -Name <String>
27
27
[-FrontendIPConfigurationId <String>] [-FrontendPortId <String>] [-SslCertificateId <String>]
28
- [-SslProfileId <String>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
28
+ [-SslProfileId <String>] [-HostNames <String[]>] -Protocol <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
29
29
```
30
30
31
31
## DESCRIPTION
@@ -143,6 +143,21 @@ Accept pipeline input: False
143
143
Accept wildcard characters : False
144
144
` ` `
145
145
146
+ ### -HostNames
147
+ Host names
148
+
149
+ ` ` ` yaml
150
+ Type : System.String[]
151
+ Parameter Sets : (All)
152
+ Aliases :
153
+
154
+ Required : False
155
+ Position : Named
156
+ Default value : None
157
+ Accept pipeline input : False
158
+ Accept wildcard characters : False
159
+ ` ` `
160
+
146
161
### -Name
147
162
The name of the Listener
148
163
You can’t perform that action at this time.
0 commit comments