@@ -415,7 +415,7 @@ function Test-ApplicationGatewayCRUD2
415
415
$sslPolicy = New-AzureRmApplicationGatewaySslPolicy - PolicyType Custom - MinProtocolVersion TLSv1_1 - CipherSuite " TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , " TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , " TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , " TLS_RSA_WITH_AES_128_GCM_SHA256"
416
416
417
417
# Create Application Gateway
418
- $appgw = New-AzureRmApplicationGateway - Name $appgwName - ResourceGroupName $rgname - Location $location - Probes $probeHttp - BackendAddressPools $pool - BackendHttpSettingsCollection $poolSetting01 - FrontendIpConfigurations $fipconfig - GatewayIpConfigurations $gipconfig - FrontendPorts $fp01 , $fp02 - HttpListeners $listener01 , $listener02 - RedirectConfiguration $redirect01 - RequestRoutingRules $rule01 , $rule02 - Sku $sku - SslPolicy $sslPolicy - SslCertificates $sslCert01
418
+ $appgw = New-AzureRmApplicationGateway - Name $appgwName - ResourceGroupName $rgname - Location $location - Probes $probeHttp - BackendAddressPools $pool - BackendHttpSettingsCollection $poolSetting01 - FrontendIpConfigurations $fipconfig - GatewayIpConfigurations $gipconfig - FrontendPorts $fp01 , $fp02 - HttpListeners $listener01 , $listener02 - RedirectConfiguration $redirect01 - RequestRoutingRules $rule01 , $rule02 - Sku $sku - SslPolicy $sslPolicy - SslCertificates $sslCert01 - EnableHttp2
419
419
420
420
# Check get/set/remove for RedirectConfiguration
421
421
$redirect02 = Get-AzureRmApplicationGatewayRedirectConfiguration - ApplicationGateway $appgw - Name $redirect01Name
@@ -425,6 +425,9 @@ function Test-ApplicationGatewayCRUD2
425
425
$getgw = Add-AzureRmApplicationGatewayRedirectConfiguration - ApplicationGateway $getgw - Name $redirect03Name - RedirectType Permanent - TargetListener $listener01 - IncludePath $true
426
426
$getgw = Remove-AzureRmApplicationGatewayRedirectConfiguration - ApplicationGateway $getgw - Name $redirect03Name
427
427
428
+ # Check EnableHttp2 flag is true
429
+ Assert-AreEqual $getgw.EnableHttp2 $true
430
+
428
431
# Get for SslPolicy
429
432
$sslPolicy01 = Get-AzureRmApplicationGatewaySslPolicy - ApplicationGateway $getgw
430
433
Assert-AreEqual $sslPolicy.MinProtocolVersion $sslPolicy01.MinProtocolVersion
@@ -452,8 +455,12 @@ function Test-ApplicationGatewayCRUD2
452
455
$getgw = Add-AzureRmApplicationGatewaySslCertificate - ApplicationGateway $getgw - Name $sslCert02Name - CertificateFile $sslCert02Path - Password $pw02
453
456
454
457
# Modify existing application gateway with new configuration
458
+ $getgw.EnableHttp2 = $false
455
459
$getgw = Set-AzureRmApplicationGateway - ApplicationGateway $getgw
456
460
461
+ # Check EnableHttp2 flag is false
462
+ Assert-AreEqual $getgw.EnableHttp2 $false
463
+
457
464
Assert-AreEqual " Running" $getgw.OperationalState
458
465
459
466
# Check SSLCertificates again
0 commit comments