PSRule.Rules.Azure
PSRule.Rules.Azure copied to clipboard
VMs in an availablity set should use a load balancer or application gateway
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
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..
@BernieWhite Bump :)