Azure / PSRule.Rules.Azure

Rules to validate Azure resources and infrastructure as code (IaC) using PSRule.
https://azure.github.io/PSRule.Rules.Azure/
MIT License
383 stars 84 forks source link

feat(new): Added Azure.ASE.AvailabilityZone #2985

Closed BenjaminEngeset closed 1 month ago

BenjaminEngeset commented 1 month ago

PR Summary

Fixes #2964

Added Azure.ASE.AvailabilityZone.

PR Checklist

BenjaminEngeset commented 1 month ago

Ready for review @BernieWhite.

I had to do some deployments to test this out.

When enabling it at environment level, all deployed plans within the environments will have the property set to true.

Setting zone redundancy at the App Service Environment (ASE) level ensures that all VMs pre-provisioned for the environment are distributed across different availability zones. The minimum configuration will be 3 VMs by default.

Since it's also inherited on the plan level, the minimum 3 default instances will be distributed across these VMs. Instance 1 on VM1 (AZ1), instance 2 on VM2 (AZ2), instance 3 on VM3 (AZ3) etc.

BenjaminEngeset commented 1 month ago

Thanks @BernieWhite. I agree with you, the custom reason is confusing. I have adjusted accordingly now.