PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

VMs in an availablity set should use a load balancer or application gateway

Open BernieWhite opened this issue 6 years ago • 2 comments

Rule request

Suggested rule change

VMs in an availability set should use a load balancer or application gateway to distribute traffic as part of a backend pool.

Applies to the following

The rule applies to the following:

  • Resource type: Microsoft.Compute/virtualMachines

BernieWhite avatar Jul 01 '19 00:07 BernieWhite

@BernieWhite

So it will be that when properties.availabilitySet has an valid value, then we should check for that properties.networkProfile.networkInterfaceConfigurations.properties.ipConfigurations.properties.applicationGatewayBackendAddressPools or properties.networkProfile.networkInterfaceConfigurations.properties.ipConfigurations.properties.loadBalancerBackendAddressPools has an valid value?

After checking some quickstart templates I can see that it is possible to have this coming in from Microsoft.Network/networkInterfaces, hmm how to expand that..

BenjaminEngeset avatar Nov 11 '22 21:11 BenjaminEngeset

@BernieWhite Bump :)

BenjaminEngeset avatar Aug 10 '23 10:08 BenjaminEngeset