Open klinki opened 4 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @surajmb, @aznetsuppgithub.
I include network team to look into it.
@klinki , I don't get this error while running the commands. Do you have autoscale configured in your Application Gateway?
And can you try updating your Azure PowerShell module and try using "Az" commands?
I have same issue, but Cannot change AGW min Scale Units to 2 as it has WAF Policy associated
Error: WebApplicationFirewallConfiguration cannot be changed when there is a WAF Policy
I also cannot figure out how to remove the Policy to allow me to change this.
I have a similar issue with the same script
Set-AzureRmApplicationGateway Firewall policy /subscriptions/{subscription-id}/resourceGroups/myRe
sourceGroup/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/WAFv2 cannot be removed from
Application Gateway, changing from one firewall policy to another is permitted
FYI. I fixed this by uninstalling the AzureRm package
Uninstall-AzureRm
and installing Az. packages
Install-Module -Name Az -AllowClobber
then using the Enable-AzureRmAlias -Scope Process
command instead of importing AzureRm. in my powershell script
Im trying to configure a Backend Pool on an Application Gateway using PowerShell im getting the same issue Set-AzApplicationGateway : 'MinCapacity' is less than minimum value of '2'. even if I try to change the SKU via the azure portal its saying that the policy is associated and wont let me change it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @surajmb, @appgwsuppgithub.
Description
I'm trying to automate Let's encrypt certificate renewal. I'm using following script: https://github.com/intelequia/letsencrypt-aw/blob/master/letsencryptaw_v2.ps1
to renew the certificate. Problem is when I call
Set-AzureRmApplicationGateway
- it fails with error message:I don't change the
MinCapacity
anywhere, I don't touch it.If I modify the gateway in Azure portal and set it to minimum scale to 2, as required, then it works and command succeeds.
Steps to reproduce
Module versions
It is Azure automation script. I couldn't run
Get-Module
because oferror so I copied data from portal shared modules: