-
Notifications
You must be signed in to change notification settings - Fork 4.1k
PS cmdlets for application gateway L4 properties #18557
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
PS cmdlets for application gateway L4 properties #18557
Conversation
Add models and properties for TLS proxy Add new ps cmdlets for TLS proxy
…n Records,Help files for new commands
|
|
||
| namespace Microsoft.Azure.Commands.Network | ||
| { | ||
| [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationGatewayBackendSetting"), OutputType(typeof(PSApplicationGatewayBackendSettings))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this cmdlet will return ID like:
/subscriptions/{0}/resourceGroups/ResourceGroupNotSet/providers/Microsoft.Network/applicationGateways/ApplicationGatewayNameNotSet/{3}/{4}
can you please clarify in help message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
It seems like backend setting related cmdlets only manipulate the in-memory PSApplicationGateway object without sending any request except Add-AzApplicationGatewayBackendSetting, can you please confirm why these cmdlets are needed. |
Basically, the workflow to update BackendSettings would require to fetch the application gateway object and then use the new cmdlets to modify the backend settings in the application gateway object and at last update the Application Gateway Object using Set-AzApplicationGateway. Same is true for Listeners and RoutingRules. |
Example Commands: $backendSettingGet = Get-AzApplicationGatewayBackendSetting -ApplicationGateway $appgw -Name PoolSetting01Name Add-AzApplicationGatewayBackendSetting -ApplicationGateway $appgw -Name $poolSetting02Name -Port 1234 -Protocol TCP -Timeout 42 Set-AzApplicationGatewayBackendSetting -ApplicationGateway $appgw -Name $poolSetting02Name -Port 123 -Protocol TCP -Timeout 40 Remove-AzApplicationGatewayBackendSetting -ApplicationGateway $appgw -Name $poolSetting02Name $appgw = Set-AzApplicationGateway -ApplicationGateway $appgw And For New-AzApplicationGatewayBackendSetting it Outputs a PSApplicationGatewayBackendSettings which can be used to create a new ApplicationGateway. Below is an Example. $poolSetting01 = New-AzApplicationGatewayBackendSetting -Name $poolSetting01Name -Port 443 -Protocol TCP -Timeout 20 $appgw = New-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname -Location $location -BackendAddressPools $pool -BackendSettingsCollection $poolSetting01 -FrontendIpConfigurations $fipconfig -GatewayIpConfigurations $gipconfig -FrontendPorts $fp01 -Listeners $listener01 -RoutingRules $rule01 -Sku $sku -AutoscaleConfiguration $autoscaleConfig -Probe $probe |
make sense |
|
/azp run azure-powershell - security-tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…Priority field for routing rule.
|
/azp run azure-powershell - security-tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |

Description
PS cmdlets for application gateway L4 properties -> Added new comdlets for Listeners , BackendSettings, RoutingRules
Modified cmdlets.
New-AzApplicationGateway , Set-AzApplicationGatewayProbeConfig ,Add-AzApplicationGatewayProbeConfig ,New-AzApplicationGatewayProbeConfig
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be added